12494N/A#
12494N/A# Copyright 2010 Sun Microsystems Inc.
12494N/A# This file and all modifications and additions to the pristine
12494N/A# package are under the same license as the package itself.
12494N/A#
12494N/A%define owner jefftsai
12494N/A# bugdb: savannah.gnu.org
12494N/A#
12494N/A
12494N/A%define OSR 11423:3.0
12494N/A
12494N/AName: libtasn1
16372N/AVersion: 2.8
12494N/ARelease: 0
12494N/AVendor: gnu.org
12494N/ADistribution: Java Desktop System
12494N/ALicense: Library is LGPLv2.1, binaries are GPLv3
16159N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12494N/ADocdir: %{_datadir}/doc
12494N/AAutoreqprov: on
12494N/AURL: http://josefsson.org/libtasn1/
12494N/AEpoch: 2
15183N/ASource: ftp://ftp.gnutls.org/pub/gnutls/libtasn1/%{name}-%{version}.tar.gz
16353N/A
12519N/ASummary: Libtasn is a library C for manipulating ASN.1 objects.
12961N/A
12961N/A# date:2011-09-02 owner:qc161282 bugster:7085293 type:bug
16229N/APatch1: libtasn1-01-buffer-overflow.diff
16229N/A
16390N/A%description
16390N/ALibtasn is a library written in C for manipulating ASN.1 objects including
12494N/ADER/BER encoding and DER/BER decoding. Libtasn is used by GnuTLS to manipulate X.509 objects and by GNU Shishi to handle Kerberos V5 packets.
12494N/A%package -n libtasn1-devel
12494N/ASummary: Static libraries and header files for libtasn1
12519N/AGroup: Applications/Text
12961N/ARequires: libtasn1 => %{version}-%{release}
16229N/A
16390N/A
12494N/A%description -n libtasn1-devel
12494N/AThe libtasn1-devel package includes the static libraries and header
12494N/Afiles needed for tasn1 development.
12494N/A
12494N/A%files -n libtasn1-devel
12494N/A%defattr(-, root, root)
12494N/A%{_libdir}/*.so*
12494N/A%{_includedir}/*
12494N/A
12494N/A%prep
12494N/A%setup -q -n %{name}-%{version}
12494N/A%patch1 -p1
12495N/A
13796N/A%build
13796N/A%ifos linux
12495N/Aif [ -x /usr/bin/getconf ]; then
12495N/A CPUS=`getconf _NPROCESSORS_ONLN`
12494N/Afi
12494N/A%else
12494N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12494N/A%endif
12494N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12494N/A CPUS=1
12494N/Afi
12494N/A
12494N/A./configure --prefix=%{_prefix} \
12494N/A --bindir=%{_bindir} \
12494N/A --libdir=%{_libdir} \
12494N/A --sysconfdir=%{_sysconfdir} \
12494N/A --includedir=%{_includedir} \
12494N/A --mandir=%{_mandir} \
16390N/A --infodir=%{_infodir} \
16390N/A --disable-rpath \
16390N/A --disable-static \
16372N/A --enable-shared
16372N/A
16229N/A
16229N/A
16159N/Amake -j$CPUS
16159N/A
16144N/A%install
16144N/Amake install DESTDIR=$RPM_BUILD_ROOT mkdir_p="mkdir -p"
16037N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
16037N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
16037N/A
15866N/A%clean
15866N/Arm -rf $RPM_BUILD_ROOT
15755N/A
15755N/A%changelog
15614N/A* Fri Sep 02 2011 - jeff.cai@oracle.com
15614N/A- Add patch -01-buffer-overflow to fix security bug #7085293 and #7093667.
15588N/A* Thu Oct 28 2010 - jeff.cai@oracle.com
15588N/A- Bump to 2.8.
15588N/A* Wed Jun 02 2010 - brian.cameron@oracle.com
15579N/A- Bump to 2.7.
15579N/A* Fri May 14 2010 - jeff.cai@sun.com
15448N/A- Bump to 2.6.
15448N/A- Upstream patch -01-build
14537N/A* Tue Mar 17 2010 - jeff.cai@sun.com
14537N/A- Bump to 2.5.
14451N/A* Tue Jan 17 2010 - jeff.cai@sun.com
14451N/A- Bump to 2.4.
14451N/A* Tue Jan 12 2010 - jeff.cai@sun.com
14269N/A- Change OSR which contains GPLv3.
14269N/A* Sat Aug 15 2009 - christian.kelly@sun.com
14108N/A- Bump to 2.3.
14108N/A* Tue Jul 28 2009 - christian.kelly@sun.com
13938N/A- Bump to 2.2.
13938N/A* Mon Jan 19 2008 - jeff.cai@sun.com
13871N/A- Bump to 1.8.
13871N/A- Remove patch -01-asn1-deprecated, upstreamed.
13871N/A* Fri Dec 26 2008 - jeff.cai@sun.com
13796N/A- Change the bug db address
13796N/A* Thu Nov 13 2008 - jeff.cai@sun.com
13796N/A- Bump to 1.6.
13796N/A- Add patch -01-asn1-deprecated to
13796N/A fix #106548.
13655N/A* Fri Oct 31 2008 - jeff.cai@sun.com
13655N/A- Change the license tag.
13622N/A* Tue Jun 17 2008 - jeff.cai@sun.com
13622N/A- change it according to review result.
13503N/A* Mon Jun 16 2008 - jeff.cai@sun.com
13503N/A- change url.
13473N/A* Mon Jun 16 2008 - jeff.cai@sun.com
13473N/A- Move spec files from SFE.
13324N/A* Tue Mar 28 2007 - jeff.cai@sun.com
13324N/A- Split to two spec files.
13114N/A