base-specs/gnutls.spec
author qc161282
Fri, 26 Dec 2008 08:51:58 +0000
changeset 14822 844a6be513e1
parent 14589 f9ccf5371e44
child 14997 a5488bc88d24
permissions -rw-r--r--
2008-12-26 Jeff Cai <[email protected]> * base-specs/gnutls.spec:change the bug db. * base-specs/libgcrypt.spec:change the bug db. * base-specs/libtasn1.spec:change the bug db.

#
# License (c) 2003 Sun Microsystems Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: jefftsai
# bugdb: savannah.gnu.org
#
Name:     	gnutls
License:	LGPL v2.1
# NOTE: DO NOT BUMP. The security team will take over ownership of GnuTLS.
# Therefore stop upgrading.
Version: 	2.6.2
Release:        1
Vendor:		Sun Microsystems, Inc.
Distribution:	Java Desktop System
Copyright:	LGPL/GPL
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Docdir:         %{_datadir}/doc
Autoreqprov:    on
URL:		http://www.gnutls.org
Source: 	ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2
%if %build_l10n
Source1: 	l10n-configure.sh
%endif

# date:2008-11-13 bugzilla:106549 owner:jefftsai type:bug
Patch1:		gnutls-01-return-void.diff

%define glib2_version 2.0
%define libgcrypt_version 1.1.12
BuildRequires:	glibc-devel
BuildRequires:	libtool
BuildRequires:	glib2-devel >= %{glib2_version}
BuildRequires:	libgcrypt >= %{libgcrypt_version}
Summary:	The GnuTLS implements the proposed standards by the IETF's TLS working group (RFC2246, TLS 1.0).
Group:		System Environment/Libraries
Requires:	libgcrypt >= %{libgcrypt_version}
Requires:	glib2 >= %{glib2_version}

%description
    GnuTLS is a project that aims to develop a library which provides a
    secure layer, over a reliable transport layer. Currently the GnuTLS
    library implements the proposed standards by the IETF's TLS working
    group (RFC2246, TLS 1.0).

%package -n gnutls-devel
Summary:	The GnuTLS implements the proposed standards by the IETF's TLS working group (RFC2246, TLS 1.0).
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	glib2-devel >= %{glib2_version}
Requires:       libgcrypt >= %{libgcrypt_version}

%description -n gnutls-devel
    GnuTLS is a project that aims to develop a library which provides a
    secure layer, over a reliable transport layer. Currently the GnuTLS
    library implements the proposed standards by the IETF's TLS working
    group (RFC2246, TLS 1.0).

%prep
%setup  -q -n %{name}-%{version}
%patch1 -p1

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

export CFLAGS="%optflags"
export CXXFLAGS="%cxx_optflags"
export LDFLAGS="%_ldflags"

%if %build_l10n
sh %SOURCE1 --enable-copyright
%endif
./configure \
    --prefix=%{_prefix} \
    --libdir=%{_libdir} \
    --bindir=%{_bindir} \
    --sysconfdir=%{_sysconfdir} \
    --mandir=%{_mandir} \
    --infodir=%{_datadir}/info \
    --localstatedir=%{_localstatedir} \
    --enable-guile=no

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 COPYING ChangeLog AUTHORS INSTALL NEWS README
%{_libdir}/lib*.so.*

%files -n gnutls-devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_includedir}/*

%changelog
* Fri Dec 26 2008 - [email protected]
- Change the bug db.
* Thu Nov 13 2008 - [email protected]
- Bump to 2.6.2
- Add patch -01-return-void to fix
  #106549
* Fri Oct 31 2008 - [email protected]
- Change the license tag.
* Mon Jul 31 2008 - [email protected]
- Use the libtasn1 in the system
* Mon Jun 16 2008 - [email protected]
- Bump to 2.2.5.
* Thu Jun 12 2008 - [email protected]
- Add an option to disable guile
* Thu Jun 06 2008 - [email protected]
- Bump to 2.2.4.
* Thu Jan 31 2008 - [email protected]
- Remove patches for 2.2
* Wed Jan 30 2008 - [email protected]
- Currently the security team will take over ownership of GnuTLS. Therefore
  rollback to 1.6.3 and stop upgrading.
* Wed Nov 28 2007 - [email protected]
- Bump to 2.0.4
- Add patch -02-ext-authz.diff. Fix build error #106103
* Tue Nov 06 2007 - [email protected]
- Back to 1.6.3
* Mon Nov 05 2007 - [email protected]
- Rename patch file name.
* Mon Nov 05 2007 - [email protected]
- Bump to 2.0.1
- Add patch -02-inline.
* Tue Jul 03 2007 - [email protected]
- Bump to 1.6.3
* Tue Mar 27 2007 - [email protected]
- clean up
* Tue Jan 16 2007 - [email protected]
- Bump to 1.6.1.
* Thu Apr 20 2006 - [email protected]
- Bump to 1.2.10.
* Tue Apr 04 2006 - [email protected]
- Remove .a/.la files part in linux spec. 
* Thu Mar 30 2006 - [email protected]
- Alter "remove *.a/*.la files part" to SUNWgnutls.spec
* Thu Dec 22 2005 - [email protected]
- Bump to 1.2.9.
* Wed Oct 26 2005 - [email protected]
- undelete files under /usr/bin to enable SSL in libsoup.
* Mon Oct 10 2005 - [email protected]
- Bump to 1.2.8.
* Tue Sep 6 2005 - [email protected]
- Bump to 1.2.6.
- Fix Source error.
* Wed Aug 31 2005 - [email protected]
- 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 - [email protected]
- 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 - [email protected]
- remove unpackaged files
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds