2007-01-16 00:15:20 +01:00
|
|
|
#
|
2011-06-16 09:57:04 +02:00
|
|
|
# spec file for package gnutls
|
2007-01-16 00:15:20 +01:00
|
|
|
#
|
2013-02-07 10:20:28 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:20 +01:00
|
|
|
#
|
2008-11-02 15:41:35 +01: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-16 00:15:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-08-24 13:44:23 +02:00
|
|
|
|
2011-08-24 13:44:12 +02:00
|
|
|
%define gnutls_sover 28
|
|
|
|
%define gnutlsxx_sover 28
|
|
|
|
%define gnutls_ossl_sover 27
|
2007-01-16 00:15:20 +01:00
|
|
|
|
|
|
|
Name: gnutls
|
2013-07-01 15:54:42 +02:00
|
|
|
Version: 3.2.1
|
2012-05-21 10:25:22 +02:00
|
|
|
Release: 0
|
2007-01-16 00:15:20 +01:00
|
|
|
Summary: The GNU Transport Layer Security Library
|
2013-07-01 15:54:42 +02:00
|
|
|
License: LGPL-2.1+ and GPL-3.0+
|
2007-01-16 00:15:20 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2012-05-21 10:25:22 +02:00
|
|
|
Url: http://www.gnutls.org/
|
2013-07-01 15:54:42 +02:00
|
|
|
Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/%{name}-%{version}.tar.xz
|
|
|
|
# signature is checked by source services.
|
|
|
|
Source1: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: %name.keyring
|
|
|
|
Source3: baselibs.conf
|
2013-07-05 20:37:07 +02:00
|
|
|
# https://gitorious.org/gnutls/gnutls/commit/7613c3251430a212fe5d6001863045f20eca7563
|
|
|
|
# PATCH-UPSTREAM lnussel@suse.de -- fix reading ca-certificates # via pkcs11 interface
|
|
|
|
Patch1: gnutls-3.2.1-pkcs11.diff
|
2013-07-01 15:54:42 +02:00
|
|
|
|
2012-05-31 17:04:51 +02:00
|
|
|
Patch2: automake-1.12.patch
|
2012-11-28 10:29:35 +01:00
|
|
|
# PATCH-FIX-OPENSUSE gnutls-3.0.26-skip-test-fwrite.patch andreas.stieger@gmx.de -- skip a failing test
|
|
|
|
Patch3: gnutls-3.0.26-skip-test-fwrite.patch
|
2013-07-01 15:54:42 +02:00
|
|
|
|
|
|
|
# https://gitorious.org/gnutls/gnutls/commit/b12040aeab5fbaf02677571db1d8bf1995bd5ee0?format=patch
|
|
|
|
# PATCH-UPSTREAM gnutls-32bit.patch meissner@suse.de -- avoid dates after 2037 with 32bit time_t
|
|
|
|
Patch4: gnutls-32bit.patch
|
|
|
|
|
|
|
|
# Disable elliptic curves for reasons. - meissner&cfarrell
|
|
|
|
Patch5: gnutls-3.2.1-noecc.patch
|
|
|
|
|
2011-12-02 16:25:49 +01:00
|
|
|
BuildRequires: automake
|
2011-08-24 13:44:12 +02:00
|
|
|
BuildRequires: gcc-c++
|
2011-09-22 10:45:50 +02:00
|
|
|
BuildRequires: libidn-devel
|
2013-07-01 15:54:42 +02:00
|
|
|
BuildRequires: libnettle-devel >= 2.7
|
2012-11-28 10:29:35 +01:00
|
|
|
BuildRequires: libtasn1-devel >= 2.14
|
2012-05-31 17:04:51 +02:00
|
|
|
BuildRequires: libtool
|
2013-07-01 15:54:42 +02:00
|
|
|
BuildRequires: valgrind
|
2013-04-26 15:50:26 +02:00
|
|
|
%if %suse_version >= 1230
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
%endif
|
2012-05-21 10:25:22 +02:00
|
|
|
BuildRequires: p11-kit-devel >= 0.11
|
2011-08-24 13:44:12 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-11-02 15:41:35 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gnutls-64bit
|
|
|
|
%endif
|
2007-01-16 00:15:20 +01: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 13:44:12 +02:00
|
|
|
%package -n libgnutls%{gnutls_sover}
|
2008-02-28 01:56:17 +01:00
|
|
|
Summary: The GNU Transport Layer Security Library
|
2013-07-01 15:54:42 +02:00
|
|
|
License: LGPL-2.1+
|
2008-02-28 01:56:17 +01:00
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
|
2011-08-24 13:44:12 +02:00
|
|
|
%description -n libgnutls%{gnutls_sover}
|
2008-02-28 01:56:17 +01: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 13:44:12 +02:00
|
|
|
%package -n libgnutlsxx%{gnutlsxx_sover}
|
|
|
|
Summary: The GNU Transport Layer Security Library
|
2013-07-01 15:54:42 +02:00
|
|
|
License: LGPL-2.1+
|
2011-08-24 13:44:12 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2008-02-28 01:56:17 +01:00
|
|
|
|
2011-08-24 13:44:12 +02: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 01:56:17 +01:00
|
|
|
|
|
|
|
|
2011-08-24 13:44:12 +02:00
|
|
|
%package -n libgnutls-openssl%{gnutls_ossl_sover}
|
|
|
|
Summary: The GNU Transport Layer Security Library
|
2012-05-21 10:25:22 +02:00
|
|
|
License: GPL-3.0+
|
2011-08-24 13:44:12 +02:00
|
|
|
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 18:10:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
%package -n libgnutls-devel
|
2007-01-16 00:15:20 +01:00
|
|
|
Summary: Development package for gnutls
|
2013-07-01 15:54:42 +02:00
|
|
|
License: LGPL-2.1+
|
2007-08-03 16:29:06 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-02-28 01:56:17 +01:00
|
|
|
PreReq: %install_info_prereq
|
2011-08-24 13:44:12 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libgnutls%{gnutls_sover} = %{version}
|
2012-05-22 10:11:29 +02:00
|
|
|
Provides: gnutls-devel = %{version}-%{release}
|
2008-02-28 01:56:17 +01:00
|
|
|
|
|
|
|
%description -n libgnutls-devel
|
|
|
|
Files needed for software development using gnutls.
|
|
|
|
|
2011-08-24 13:44:12 +02:00
|
|
|
%package -n libgnutlsxx-devel
|
|
|
|
Summary: Development package for gnutls
|
2013-07-01 15:54:42 +02:00
|
|
|
License: LGPL-2.1+
|
2011-08-24 13:44:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
Requires: libgnutls-devel = %{version}
|
2012-05-21 10:25:22 +02:00
|
|
|
Requires: libgnutlsxx%{gnutlsxx_sover} = %{version}
|
2011-08-24 13:44:12 +02:00
|
|
|
Requires: libstdc++-devel
|
|
|
|
|
|
|
|
%description -n libgnutlsxx-devel
|
|
|
|
Files needed for software development using gnutls.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libgnutls-openssl-devel
|
|
|
|
Summary: Development package for gnutls
|
2012-05-21 10:25:22 +02:00
|
|
|
License: GPL-3.0+
|
2011-08-24 13:44:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libgnutls-devel = %{version}
|
2012-05-21 10:25:22 +02:00
|
|
|
Requires: libgnutls-openssl%{gnutls_ossl_sover} = %{version}
|
2011-08-24 13:44:12 +02:00
|
|
|
|
|
|
|
%description -n libgnutls-openssl-devel
|
|
|
|
Files needed for software development using gnutls.
|
2008-02-28 01:56:17 +01:00
|
|
|
|
|
|
|
|
2007-01-16 00:15:20 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-07-01 15:54:42 +02:00
|
|
|
%patch1 -p1
|
2012-05-31 17:04:51 +02:00
|
|
|
%patch2 -p1
|
2012-11-28 10:29:35 +01:00
|
|
|
%patch3
|
2013-07-01 15:54:42 +02:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2007-01-16 00:15:20 +01:00
|
|
|
|
|
|
|
%build
|
2012-10-03 07:23:38 +02:00
|
|
|
autoreconf -if
|
2013-07-01 15:54:42 +02:00
|
|
|
# echde explicitly disabled - meissner&cfarrell
|
2011-08-24 13:44:12 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
2011-10-11 17:16:18 +02:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-silent-rules \
|
2013-07-05 20:37:07 +02:00
|
|
|
--with-default-trust-store-pkcs11=pkcs11: \
|
2013-07-01 15:54:42 +02:00
|
|
|
--disable-ecdhe \
|
2011-10-11 17:16:18 +02:00
|
|
|
--with-sysroot=/%{?_sysroot}
|
2012-11-28 10:29:35 +01:00
|
|
|
%__make %{?_smp_mflags}
|
2007-01-16 00:15:20 +01:00
|
|
|
|
|
|
|
%install
|
2011-08-24 13:44:12 +02:00
|
|
|
%make_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/en@{,bold}quot
|
2007-10-25 18:10:26 +02:00
|
|
|
# Do not package static libs and libtool files
|
2011-08-24 13:44:12 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2012-11-28 10:29:35 +01:00
|
|
|
|
|
|
|
# install docs
|
|
|
|
%__mkdir -p %{buildroot}%{_docdir}/libgnutls-devel/
|
|
|
|
%__cp doc/gnutls.html doc/*.png doc/gnutls.pdf %{buildroot}%{_docdir}/libgnutls-devel/
|
|
|
|
%__mkdir -p %{buildroot}%{_docdir}/libgnutls-devel/reference
|
|
|
|
%__cp doc/reference/html/* %{buildroot}%{_docdir}/libgnutls-devel/reference/
|
|
|
|
%__mkdir -p %{buildroot}%{_docdir}/libgnutls-devel/examples
|
|
|
|
%__cp doc/examples/*.{c,h} %{buildroot}%{_docdir}/libgnutls-devel/examples/
|
|
|
|
|
2011-08-24 13:44:12 +02:00
|
|
|
%find_lang libgnutls --all-name
|
2007-01-16 00:15:20 +01:00
|
|
|
|
2012-11-28 10:29:35 +01:00
|
|
|
%check
|
2012-12-03 09:36:19 +01:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2012-11-28 10:29:35 +01:00
|
|
|
%__make check
|
2012-12-03 09:36:19 +01:00
|
|
|
%endif
|
2012-11-28 10:29:35 +01:00
|
|
|
|
2007-01-16 00:15:20 +01:00
|
|
|
%clean
|
2011-08-24 13:44:12 +02:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -n libgnutls%{gnutls_sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libgnutls%{gnutls_sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libgnutlsxx%{gnutlsxx_sover} -p /sbin/ldconfig
|
2008-02-28 01:56:17 +01:00
|
|
|
|
2011-08-24 13:44:12 +02: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-16 00:15:20 +01:00
|
|
|
|
2007-10-25 18:10:26 +02:00
|
|
|
%post -n libgnutls-devel
|
2007-01-16 00:15:20 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
|
2011-08-24 13:44:12 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/pkcs11-vision.png.gz
|
2007-01-16 00:15:20 +01:00
|
|
|
|
2007-10-25 18:10:26 +02:00
|
|
|
%postun -n libgnutls-devel
|
2007-01-16 00:15:20 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
|
2011-08-24 13:44:12 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/pkcs11-vision.png.gz
|
2007-01-16 00:15:20 +01:00
|
|
|
|
2010-02-05 14:05:07 +01:00
|
|
|
%files -f libgnutls.lang
|
2007-01-16 00:15:20 +01:00
|
|
|
%defattr(-, root, root)
|
2012-11-28 10:29:35 +01:00
|
|
|
%doc THANKS README NEWS ChangeLog COPYING COPYING.LESSER AUTHORS doc/TODO
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_bindir}/certtool
|
2011-09-22 10:45:50 +02:00
|
|
|
%{_bindir}/crywrap
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_bindir}/gnutls-cli
|
|
|
|
%{_bindir}/gnutls-cli-debug
|
|
|
|
%{_bindir}/gnutls-serv
|
2012-05-21 10:25:22 +02:00
|
|
|
%{_bindir}/ocsptool
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_bindir}/psktool
|
|
|
|
%{_bindir}/p11tool
|
|
|
|
%{_bindir}/srptool
|
2013-07-01 15:54:42 +02:00
|
|
|
%{_bindir}/danetool
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files -n libgnutls%{gnutls_sover}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libgnutls.so.%{gnutls_sover}*
|
2013-07-01 15:54:42 +02:00
|
|
|
%{_libdir}/libgnutls-xssl.so.*
|
2011-08-24 13:44:12 +02:00
|
|
|
|
|
|
|
%files -n libgnutls-openssl%{gnutls_ossl_sover}
|
2007-10-25 18:10:26 +02:00
|
|
|
%defattr(-,root,root)
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_libdir}/libgnutls-openssl.so.%{gnutls_ossl_sover}*
|
|
|
|
|
|
|
|
%files -n libgnutlsxx%{gnutlsxx_sover}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libgnutlsxx.so.%{gnutlsxx_sover}*
|
|
|
|
|
2007-10-25 18:10:26 +02:00
|
|
|
%files -n libgnutls-devel
|
2007-01-16 00:15:20 +01:00
|
|
|
%defattr(-, root, root)
|
2011-08-24 13:44:12 +02: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
|
2012-05-21 10:25:22 +02:00
|
|
|
%{_includedir}/%{name}/ocsp.h
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_includedir}/%{name}/pkcs11.h
|
|
|
|
%{_includedir}/%{name}/pkcs12.h
|
|
|
|
%{_includedir}/%{name}/x509.h
|
2013-07-01 15:54:42 +02:00
|
|
|
%{_includedir}/%{name}/tpm.h
|
|
|
|
%{_includedir}/%{name}/xssl.h
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_libdir}/libgnutls.so
|
2013-07-01 15:54:42 +02:00
|
|
|
%{_libdir}/libgnutls-xssl.so
|
2011-08-24 13:44:12 +02:00
|
|
|
%{_libdir}/pkgconfig/gnutls.pc
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_infodir}/*.*
|
2012-11-28 10:29:35 +01:00
|
|
|
%doc %{_docdir}/libgnutls-devel
|
2008-02-28 01:56:17 +01:00
|
|
|
|
2011-08-24 13:44:12 +02: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
|
|
|
|
|
2007-04-17 00:33:13 +02:00
|
|
|
%changelog
|