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