gnutls.spec revision 12298
15341N/A#
15341N/A# License (c) 2003 Sun Microsystems Inc.
15341N/A# This file and all modifications and additions to the pristine
18540N/A# package are under the same license as the package itself.
15341N/A#
15341N/A# Owner: jefftsai
15341N/A# bugdb: https://savannah.gnu.org
17185N/A# Currently the security team will take over ownership of GnuTLS.
15341N/A# Therefore stop upgrading.
15341N/A#
18603N/AName: gnutls
15341N/AVersion: 1.6.3
15341N/ARelease: 1
15341N/AVendor: Sun Microsystems, Inc.
15341N/ADistribution: Java Desktop System
17575N/ACopyright: LGPL/GPL
15341N/ABuildRoot: %{_tmppath}/%{name}-%{version}-root
15341N/ADocdir: %{_datadir}/doc
18615N/AAutoreqprov: on
15341N/AURL: http://www.gnutls.org
15341N/ASource: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2
15955N/ASource1: l10n-configure.sh
16995N/A
16995N/A#date:2007-11-26 bugzilla:106074 owner:jefftsai type:bug
15531N/APatch1: gnutls-03-gplv3.diff
18179N/A#date:2007-11-28 bugzilla:106103 owner:jefftsai type:bug
15341N/A#Patch2: gnutls-02-ext-authz.diff
15341N/A
15341N/A%define glib2_version 2.0
15341N/A%define libgcrypt_version 1.1.12
17495N/ABuildRequires: glibc-devel
15406N/ABuildRequires: libtool
15341N/ABuildRequires: glib2-devel >= %{glib2_version}
15341N/ABuildRequires: libgcrypt >= %{libgcrypt_version}
15341N/ASummary: The GnuTLS implements the proposed standards by the IETF's TLS working group (RFC2246, TLS 1.0).
15341N/AGroup: System Environment/Libraries
15341N/ARequires: libgcrypt >= %{libgcrypt_version}
15341N/ARequires: glib2 >= %{glib2_version}
15341N/A
15341N/A%description
15341N/A GnuTLS is a project that aims to develop a library which provides a
15341N/A secure layer, over a reliable transport layer. Currently the GnuTLS
15341N/A library implements the proposed standards by the IETF's TLS working
15341N/A group (RFC2246, TLS 1.0).
15341N/A
15341N/A%package -n gnutls-devel
15341N/ASummary: The GnuTLS implements the proposed standards by the IETF's TLS working group (RFC2246, TLS 1.0).
15341N/AGroup: Development/Libraries
15341N/ARequires: %{name} = %{version}-%{release}
15341N/ARequires: glib2-devel >= %{glib2_version}
15341N/ARequires: libgcrypt >= %{libgcrypt_version}
15341N/A
15341N/A%description -n gnutls-devel
15341N/A GnuTLS is a project that aims to develop a library which provides a
15341N/A secure layer, over a reliable transport layer. Currently the GnuTLS
15341N/A library implements the proposed standards by the IETF's TLS working
15341N/A group (RFC2246, TLS 1.0).
15341N/A
15341N/A%prep
15341N/A%setup -q -n %{name}-%{version}
15341N/Abash -x %SOURCE1
15341N/A%patch1 -p1
15428N/A#%patch2 -p1
15428N/A
15341N/A%build
15341N/A%ifos linux
15341N/Aif [ -x /usr/bin/getconf ]; then
15341N/A CPUS=`getconf _NPROCESSORS_ONLN`
15341N/Afi
15341N/A%else
15341N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15341N/A%endif
15341N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15341N/A CPUS=1
15341N/Afi
15341N/A
15341N/Aexport CFLAGS="%optflags"
16120N/Aexport CXXFLAGS="%cxx_optflags"
15406N/Aexport LDFLAGS="%_ldflags"
15500N/A
16995N/Aaclocal $ACLOCAL_FLAGS
16995N/Aautoheader
15500N/Aautomake -a -f -c --gnu
15341N/Aautoconf
15500N/A
15341N/A./configure \
15341N/A --prefix=%{_prefix} \
15341N/A --libdir=%{_libdir} \
15341N/A --bindir=%{_bindir} \
15341N/A --sysconfdir=%{_sysconfdir} \
15341N/A --mandir=%{_mandir} \
15341N/A --infodir=%{_datadir}/info \
15341N/A --localstatedir=%{_localstatedir} \
15341N/A --disable-use-gplv3 \
15341N/A --with-included-libtasn1
15341N/A
15341N/Amake -j $CPUS
18791N/A
15341N/A%install
15341N/Amake install DESTDIR=$RPM_BUILD_ROOT
15341N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
15341N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
15341N/A
15341N/A%clean
15341N/Arm -rf $RPM_BUILD_ROOT
15341N/A
15341N/A%post
15341N/Aldconfig
15341N/A
15341N/A%files
15341N/A%defattr(-, root, root)
15406N/A%doc COPYING ChangeLog AUTHORS INSTALL NEWS README
15406N/A%{_libdir}/lib*.so.*
15406N/A
15406N/A%files -n gnutls-devel
15406N/A%defattr(-, root, root)
15406N/A%{_libdir}/lib*.so
15406N/A%{_includedir}/*
15406N/A
15406N/A%changelog
15406N/A* Wed Jan 30 2008 - jeff.cai@sun.com
15406N/A- Rollback to 1.6.3.
15406N/A
15341N/A* Wed Nov 28 2007 - jeff.cai@sun.com
15341N/A- Bump to 2.0.4
15341N/A- Add patch -02-ext-authz.diff. Fix build error #106103
15341N/A* Tue Nov 06 2007 - jeff.cai@sun.com
15341N/A- Back to 1.6.3
15341N/A* Mon Nov 05 2007 - jeff.cai@sun.com
15341N/A- Rename patch file name.
15341N/A* Mon Nov 05 2007 - jeff.cai@sun.com
15341N/A- Bump to 2.0.1
15341N/A- Add patch -02-inline.
15341N/A* Tue Jul 03 2007 - jeff.cai@sun.com
15341N/A- Bump to 1.6.3
15341N/A* Tue Mar 27 2007 - laca@sun.com
15341N/A- clean up
15341N/A* Tue Jan 16 2007 - jedy.wang@sun.com
15341N/A- Bump to 1.6.1.
15341N/A* Thu Apr 20 2006 - halton.huo@sun.com
15341N/A- Bump to 1.2.10.
15341N/A* Tue Apr 04 2006 - halton.huo@sun.com
15341N/A- Remove .a/.la files part in linux spec.
15341N/A* Thu Mar 30 2006 - halton.huo@sun.com
15341N/A- Alter "remove *.a/*.la files part" to SUNWgnutls.spec
15341N/A* Thu Dec 22 2005 - damien.carbery@sun.com
15341N/A- Bump to 1.2.9.
15341N/A* Wed Oct 26 2005 - halton.huo@sun.com
15341N/A- undelete files under /usr/bin to enable SSL in libsoup.
15341N/A* Mon Oct 10 2005 - halton.huo@sun.com
15341N/A- Bump to 1.2.8.
15341N/A* Tue Sep 6 2005 - halton.huo@sun.com
15341N/A- Bump to 1.2.6.
18179N/A- Fix Source error.
18179N/A* Wed Aug 31 2005 - halton.huo@sun.com
17687N/A- Correct URL and Source
17687N/A- Change Version to 1.1.23 (<1.0.0), or evolution2.x SSL will be disabled.
17575N/A- Change Distribution to Java Desktop System
17575N/A- Remove obsoleted patch gnutls-01-forte-build.diff
17575N/A* Tue Sep 21 2004 - ghee.teo@sun.com
16995N/A- moved spec file from spec-files to spec-files/Solaris/extra-specs.
16995N/A The patch also moved from spec-files/patches to spec-files/Solaris/patches
16995N/A Now Solaris and Linux uses different version of gnutls.
16995N/A* Sun Aug 29 2004 - laca@sun.com
15531N/A- remove unpackaged files
15531N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
15500N/A- added "-j $CPUS" to make to speed up builds
15500N/A