gnutls.spec revision 17180
10668N/A#
10668N/A# License 2009 Sun Microsystems Inc.
10668N/A# This file and all modifications and additions to the pristine
16212N/A# package are under the same license as the package itself.
10668N/A#
10668N/A# Owner: jefftsai
10668N/A# bugdb: savannah.gnu.org
10668N/A#
10668N/A
17182N/A%define OSR 9490:2.4.x
17182N/A
17182N/AName: gnutls
10668N/ALicense: LGPL v2.1
10668N/AVersion: 2.8.3
10668N/ARelease: 1
16212N/AVendor: Sun Microsystems, Inc.
10668N/ADistribution: Java Desktop System
10668N/ACopyright: LGPL/GPL
10668N/ABuildRoot: %{_tmppath}/%{name}-%{version}-root
10668N/ADocdir: %{_datadir}/doc
16212N/AAutoreqprov: on
10668N/AURL: http://www.gnutls.org
10668N/ASource: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2
10668N/A%if %build_l10n
10668N/ASource1: l10n-configure.sh
10668N/A%endif
10668N/A
10668N/A# date:2009-05-31 owner:jefftsai type:branding
10668N/APatch1: gnutls-01-not-build-example.diff
10668N/A
10668N/A%define glib2_version 2.0
10668N/A%define libgcrypt_version 1.1.12
10668N/ABuildRequires: glibc-devel
10668N/ABuildRequires: libtool
10668N/ABuildRequires: glib2-devel >= %{glib2_version}
10668N/ABuildRequires: libgcrypt >= %{libgcrypt_version}
10668N/ASummary: The GnuTLS implements the proposed standards by the IETF's TLS working group (RFC2246, TLS 1.0).
10668N/AGroup: System Environment/Libraries
10668N/ARequires: libgcrypt >= %{libgcrypt_version}
10668N/ARequires: glib2 >= %{glib2_version}
10668N/A
10668N/A%description
10668N/A GnuTLS is a project that aims to develop a library which provides a
10668N/A secure layer, over a reliable transport layer. Currently the GnuTLS
10668N/A library implements the proposed standards by the IETF's TLS working
10668N/A group (RFC2246, TLS 1.0).
10668N/A
10668N/A%package -n gnutls-devel
10668N/ASummary: The GnuTLS implements the proposed standards by the IETF's TLS working group (RFC2246, TLS 1.0).
10668N/AGroup: Development/Libraries
10668N/ARequires: %{name} = %{version}-%{release}
10668N/ARequires: glib2-devel >= %{glib2_version}
10668N/ARequires: libgcrypt >= %{libgcrypt_version}
10668N/A
10668N/A%description -n gnutls-devel
10668N/A GnuTLS is a project that aims to develop a library which provides a
10668N/A secure layer, over a reliable transport layer. Currently the GnuTLS
10668N/A library implements the proposed standards by the IETF's TLS working
10668N/A group (RFC2246, TLS 1.0).
10668N/A
10668N/A%prep
10668N/A%setup -q -n %{name}-%{version}
10668N/A%patch1 -p1
10668N/A
10668N/A%build
10668N/A%ifos linux
10668N/Aif [ -x /usr/bin/getconf ]; then
10668N/A CPUS=`getconf _NPROCESSORS_ONLN`
10668N/Afi
10668N/A%else
10668N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10668N/A%endif
10668N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10668N/A CPUS=1
10668N/Afi
10668N/A
10668N/Aexport CFLAGS="%optflags"
10668N/Aexport CXXFLAGS="%cxx_optflags"
10668N/Aexport LDFLAGS="%_ldflags"
10668N/A
10668N/A%if %build_l10n
10668N/Ash %SOURCE1 --enable-copyright
10668N/A%endif
10668N/A
10668N/A./configure \
10668N/A --prefix=%{_prefix} \
10668N/A --libdir=%{_libdir} \
10668N/A --bindir=%{_bindir} \
10668N/A --sysconfdir=%{_sysconfdir} \
10668N/A --mandir=%{_mandir} \
16212N/A --infodir=%{_datadir}/info \
16212N/A --localstatedir=%{_localstatedir} \
10668N/A --enable-guile=no
10668N/A
make -j $CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post
ldconfig
%files
%defattr(-, root, root)
%doc lib/COPYING ChangeLog AUTHORS INSTALL NEWS README
%{_libdir}/lib*.so.*
%files -n gnutls-devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_includedir}/*
%changelog
* Web Aug 14 2009 - jeff.cai@sun.com
- Bump to 2.8.3
* Web Aug 11 2009 - jeff.cai@sun.com
- Bump to 2.8.2
* Fri Jun 12 2009 - jeff.cai@sun.com
- Bump to 2.8.1
* Mon Jun 01 2009 - jeff.cai@sun.com
- Ship lib/COPYING
* Mon May 31 2009 - jeff.cai@sun.com
- Bump to 2.8.0
- Add path -01-not-build-example to disable building of example
* Mon May 04 2009 - jeff.cai@sun.com
- Bump to 2.6.6
* Fri Apr 17 2009 - halton.huo@sun.com
- Bump to 2.6.5
* Thu Feb 12 2008 - jeff.cai@sun.com
- Bump to 2.6.4
- Remove patch -01-return-void, upstreamed
* Mon Feb 02 2008 - jeff.cai@sun.com
- Bump to 2.6.3
* Fri Dec 26 2008 - jeff.cai@sun.com
- Change the bug db.
* Thu Nov 13 2008 - jeff.cai@sun.com
- Bump to 2.6.2
- Add patch -01-return-void to fix
#106549
* 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