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