2007-01-15 23:15:20 +00:00
#
2011-06-16 07:57:04 +00:00
# spec file for package gnutls
2007-01-15 23:15:20 +00:00
#
2011-06-16 07:57:04 +00:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-15 23:15:20 +00:00
#
2008-11-02 14:41:35 +00:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2007-01-15 23:15:20 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-08-24 11:44:23 +00:00
2011-08-24 11:44:12 +00:00
%define gnutls_sover 28
%define gnutlsxx_sover 28
%define gnutls_ossl_sover 27
%define gnutls_extra_sover 28
2007-01-15 23:15:20 +00:00
Name : gnutls
2011-09-22 08:45:50 +00:00
Version : 3.0.3
Release : 1
2011-12-02 15:25:49 +00:00
License : LGPL-3.0+ ; GPL-3.0+
2007-01-15 23:15:20 +00:00
Summary : The GNU Transport Layer Security Library
2011-08-24 11:44:12 +00:00
Url : http://www.gnutls.org/
2007-01-15 23:15:20 +00:00
Group : Productivity/Networking/Security
2011-08-24 11:44:12 +00:00
Source0 : %{name} -%{version} .tar.xz
Source1 : baselibs.conf
2011-09-26 08:05:51 +00:00
# PATCH-FIX-UPSTREAM gnutls-fix-compression.patch vuntz@opensuse.org -- Taken from git, fix decompression/compression
Patch0 : gnutls-fix-compression.patch
2011-10-18 12:08:55 +00:00
# PATCH-FIX-UPSTREAM gnutls-fix-crash-on-strcat.patch bnc#724421 vuntz@opensuse.org -- Fix a crash because of badly used strcat, sent upstream by mail on 2011-10-17
Patch1 : gnutls-fix-crash-on-strcat.patch
2011-12-02 15:25:49 +00:00
Patch2 : CVE-2011-4128.patch
BuildRequires : automake
2011-08-24 11:44:12 +00:00
BuildRequires : gcc-c++
BuildRequires : libnettle-devel >= 2.2
BuildRequires : p11-kit-devel
2011-09-22 08:45:50 +00:00
BuildRequires : libidn-devel
2011-08-24 11:44:12 +00:00
BuildRequires : libtasn1-devel
BuildRequires : pkg-config
BuildRequires : xz
BuildRequires : zlib-devel
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2008-11-02 14:41:35 +00:00
# bug437293
%ifarch ppc64
Obsoletes : gnutls-64bit
%endif
2007-01-15 23:15:20 +00:00
%description
The GnuTLS project aims to develop a library that provides a secure
layer over a reliable transport layer. Currently the GnuTLS library
implements the proposed standards of the IETF's TLS working group.
2011-08-24 11:44:12 +00:00
%package -n libgnutls%{gnutls_sover}
2011-12-02 15:25:49 +00:00
License : LGPL-3.0+
2008-02-28 00:56:17 +00:00
Summary : The GNU Transport Layer Security Library
Group : Productivity/Networking/Security
2011-08-24 11:44:12 +00:00
%description -n libgnutls%{gnutls_sover}
2008-02-28 00:56:17 +00:00
The GnuTLS project aims to develop a library that provides a secure
layer over a reliable transport layer. Currently the GnuTLS library
implements the proposed standards of the IETF's TLS working group.
2011-08-24 11:44:12 +00:00
%package -n libgnutlsxx%{gnutlsxx_sover}
2011-12-02 15:25:49 +00:00
License : LGPL-3.0+
2011-08-24 11:44:12 +00:00
Summary : The GNU Transport Layer Security Library
Group : Productivity/Networking/Security
2008-02-28 00:56:17 +00:00
2011-08-24 11:44:12 +00:00
%description -n libgnutlsxx%{gnutlsxx_sover}
The GnuTLS project aims to develop a library that provides a secure
layer over a reliable transport layer. Currently the GnuTLS library
implements the proposed standards of the IETF's TLS working group.
2008-02-28 00:56:17 +00:00
2011-08-24 11:44:12 +00:00
%package -n libgnutls-extra%{gnutls_extra_sover}
2011-12-02 15:25:49 +00:00
License : GPL-3.0+
2007-10-25 16:10:26 +00:00
Summary : The GNU Transport Layer Security Library
Group : Productivity/Networking/Security
2011-08-24 11:44:12 +00:00
%description -n libgnutls-extra%{gnutls_extra_sover}
2007-10-25 16:10:26 +00:00
The GnuTLS project aims to develop a library that provides a secure
layer over a reliable transport layer. Currently the GnuTLS library
implements the proposed standards of the IETF's TLS working group.
2011-08-24 11:44:12 +00:00
%package -n libgnutls-openssl%{gnutls_ossl_sover}
2011-12-02 15:25:49 +00:00
License : GPL-3.0+
2011-08-24 11:44:12 +00:00
Summary : The GNU Transport Layer Security Library
Group : Productivity/Networking/Security
%description -n libgnutls-openssl%{gnutls_ossl_sover}
The GnuTLS project aims to develop a library that provides a secure
layer over a reliable transport layer. Currently the GnuTLS library
implements the proposed standards of the IETF's TLS working group.
2007-10-25 16:10:26 +00:00
%package -n libgnutls-devel
2011-12-02 15:25:49 +00:00
License : LGPL-3.0+
2007-01-15 23:15:20 +00:00
Summary : Development package for gnutls
2007-08-03 14:29:06 +00:00
Group : Development/Libraries/C and C++
2008-02-28 00:56:17 +00:00
PreReq : %install_info_prereq
2011-08-24 11:44:12 +00:00
Requires : glibc-devel
Requires : libgnutls%{gnutls_sover} = %{version}
2008-02-28 00:56:17 +00:00
%description -n libgnutls-devel
Files needed for software development using gnutls.
2011-08-24 11:44:12 +00:00
%package -n libgnutlsxx-devel
2011-12-02 15:25:49 +00:00
License : LGPL-3.0+
2011-08-24 11:44:12 +00:00
Summary : Development package for gnutls
Group : Development/Libraries/C and C++
PreReq : %install_info_prereq
Requires : libgnutlsxx%{gnutlsxx_sover} = %{version}
Requires : libgnutls-devel = %{version}
Requires : libstdc++-devel
%description -n libgnutlsxx-devel
Files needed for software development using gnutls.
%package -n libgnutls-openssl-devel
2011-12-02 15:25:49 +00:00
License : GPL-3.0+
2011-08-24 11:44:12 +00:00
Summary : Development package for gnutls
Group : Development/Libraries/C and C++
Requires : libgnutls-openssl%{gnutls_ossl_sover} = %{version}
Requires : libgnutls-devel = %{version}
%description -n libgnutls-openssl-devel
Files needed for software development using gnutls.
2008-02-28 00:56:17 +00:00
%package -n libgnutls-extra-devel
2011-12-02 15:25:49 +00:00
License : GPL-3.0+
2008-02-28 00:56:17 +00:00
Summary : The GNU Transport Layer Security Library
2008-07-24 22:38:45 +00:00
Group : Development/Libraries/C and C++
2011-08-24 11:44:12 +00:00
Requires : libgnutls-devel = %{version}
Requires : libgnutls-extra%{gnutls_extra_sover} = %{version}
2007-10-25 16:10:26 +00:00
# gnutls-devel last used in 10.3
2011-08-24 11:44:12 +00:00
Obsoletes : gnutls-devel < %{version}
Provides : gnutls-devel = %{version}
2008-11-02 14:41:35 +00:00
# bug437293
%ifarch ppc64
Obsoletes : gnutls-devel-64bit
%endif
#
2007-01-15 23:15:20 +00:00
2008-02-28 00:56:17 +00:00
%description -n libgnutls-extra-devel
The GnuTLS project aims to develop a library that provides a secure
layer over a reliable transport layer. Currently the GnuTLS library
implements the proposed standards of the IETF's TLS working group.
2007-01-15 23:15:20 +00:00
%prep
%setup -q
2011-09-26 08:05:51 +00:00
%patch0 -p1
2011-10-18 12:08:55 +00:00
%patch1 -p1
2011-12-02 15:25:49 +00:00
%patch2 -p1
2007-01-15 23:15:20 +00:00
%build
2011-08-24 11:44:12 +00:00
%configure \
--disable-static \
--with-pic \
2011-10-11 15:16:18 +00:00
--disable-rpath \
--disable-silent-rules \
--with-sysroot=/%{?_sysroot}
2010-02-05 13:05:07 +00:00
make %{?_smp_mflags}
2011-08-24 11:44:12 +00:00
# 17-ago-2011, Test suite passes in factory, just not
#in the build system due to some broken code requiring both networking
#and fixes.
#make check
2007-01-15 23:15:20 +00:00
%install
2011-08-24 11:44:12 +00:00
%make_install
2007-01-15 23:15:20 +00:00
rm -rf doc/examples/.deps doc/examples/.libs doc/examples/*.{o,lo,la} doc/examples/Makefile{,.in}
find doc/examples -perm -111 -exec rm {} \;
2011-08-24 11:44:12 +00:00
rm -rf %{buildroot} %{_datadir} /locale/en@{,bold}quot
2007-10-25 16:10:26 +00:00
# Do not package static libs and libtool files
2011-08-24 11:44:12 +00:00
rm -f %{buildroot} %{_libdir} /*.la
%find_lang libgnutls --all-name
2007-01-15 23:15:20 +00:00
%clean
2011-08-24 11:44:12 +00:00
rm -rf %{buildroot}
%post -n libgnutls%{gnutls_sover} -p /sbin/ldconfig
%postun -n libgnutls%{gnutls_sover} -p /sbin/ldconfig
%post -n libgnutls-extra%{gnutls_extra_sover} -p /sbin/ldconfig
2007-01-15 23:15:20 +00:00
2011-08-24 11:44:12 +00:00
%postun -n libgnutls-extra%{gnutls_extra_sover} -p /sbin/ldconfig
2008-02-28 00:56:17 +00:00
2011-08-24 11:44:12 +00:00
%post -n libgnutlsxx%{gnutlsxx_sover} -p /sbin/ldconfig
2008-02-28 00:56:17 +00:00
2011-08-24 11:44:12 +00:00
%postun -n libgnutlsxx%{gnutlsxx_sover} -p /sbin/ldconfig
%post -n libgnutls-openssl%{gnutls_ossl_sover} -p /sbin/ldconfig
%postun -n libgnutls-openssl%{gnutls_ossl_sover} -p /sbin/ldconfig
2007-01-15 23:15:20 +00:00
2007-10-25 16:10:26 +00:00
%post -n libgnutls-devel
2007-01-15 23:15:20 +00:00
%install _info --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
2011-08-24 11:44:12 +00:00
%install _info --info-dir=%{_infodir} %{_infodir}/pkcs11-vision.png.gz
2007-01-15 23:15:20 +00:00
2007-10-25 16:10:26 +00:00
%postun -n libgnutls-devel
2007-01-15 23:15:20 +00:00
%install _info_delete --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
2011-08-24 11:44:12 +00:00
%install _info_delete --info-dir=%{_infodir} %{_infodir}/pkcs11-vision.png.gz
2007-01-15 23:15:20 +00:00
2010-02-05 13:05:07 +00:00
%files -f libgnutls.lang
2007-01-15 23:15:20 +00:00
%defattr (-, root, root)
2010-02-05 13:05:07 +00:00
%doc THANKS README NEWS ChangeLog COPYING AUTHORS doc/TODO
2011-08-24 11:44:12 +00:00
%{_bindir} /certtool
2011-09-22 08:45:50 +00:00
%{_bindir} /crywrap
2011-08-24 11:44:12 +00:00
%{_bindir} /gnutls-cli
%{_bindir} /gnutls-cli-debug
%{_bindir} /gnutls-serv
%{_bindir} /psktool
%{_bindir} /p11tool
%{_bindir} /srptool
%{_mandir} /man1/*
%files -n libgnutls%{gnutls_sover}
%defattr (-,root,root)
%{_libdir} /libgnutls.so.%{gnutls_sover} *
%files -n libgnutls-extra%{gnutls_extra_sover}
2008-02-28 00:56:17 +00:00
%defattr (-,root,root)
2011-08-24 11:44:12 +00:00
%{_libdir} /libgnutls-extra.so.%{gnutls_extra_sover} *
2008-02-28 00:56:17 +00:00
2011-08-24 11:44:12 +00:00
%files -n libgnutls-openssl%{gnutls_ossl_sover}
2007-10-25 16:10:26 +00:00
%defattr (-,root,root)
2011-08-24 11:44:12 +00:00
%{_libdir} /libgnutls-openssl.so.%{gnutls_ossl_sover} *
%files -n libgnutlsxx%{gnutlsxx_sover}
%defattr (-,root,root)
%{_libdir} /libgnutlsxx.so.%{gnutlsxx_sover} *
2007-10-25 16:10:26 +00:00
%files -n libgnutls-devel
2007-01-15 23:15:20 +00:00
%defattr (-, root, root)
2011-08-24 11:44:12 +00:00
%dir %{_includedir} /%{name}
%{_includedir} /%{name} /abstract.h
%{_includedir} /%{name} /crypto.h
%{_includedir} /%{name} /compat.h
%{_includedir} /%{name} /dtls.h
%{_includedir} /%{name} /gnutls.h
%{_includedir} /%{name} /openpgp.h
%{_includedir} /%{name} /pkcs11.h
%{_includedir} /%{name} /pkcs12.h
%{_includedir} /%{name} /x509.h
%{_libdir} /libgnutls.so
%{_libdir} /pkgconfig/gnutls.pc
%{_mandir} /man3/*
%{_infodir} /*.*
2007-01-15 23:15:20 +00:00
%doc doc/examples doc/gnutls.html doc/*.png doc/gnutls.pdf doc/reference/html/*
2008-02-28 00:56:17 +00:00
2011-08-24 11:44:12 +00:00
%files -n libgnutlsxx-devel
%defattr (-, root, root)
%{_libdir} /libgnutlsxx.so
%dir %{_includedir} /%{name}
%{_includedir} /%{name} /gnutlsxx.h
%files -n libgnutls-openssl-devel
%defattr (-, root, root)
%{_libdir} /libgnutls-openssl.so
%dir %{_includedir} /%{name}
%{_includedir} /%{name} /openssl.h
2008-02-28 00:56:17 +00:00
%files -n libgnutls-extra-devel
%defattr (-, root, root)
2011-08-24 11:44:12 +00:00
%dir %{_includedir} /%{name}
%{_includedir} /%{name} /extra.h
%{_libdir} /libgnutls-extra.so
%{_libdir} /pkgconfig/gnutls-extra.pc
2008-02-28 00:56:17 +00:00
2007-04-16 22:33:13 +00:00
%changelog