9a00144267
- Updated to version 3.0.20: libgnutls: Corrected bug which prevented the parsing of handshake packets spanning multiple records. libgnutls: Check key identifiers when checking for an issuer. libgnutls: Added gnutls_pubkey_verify_hash2() libgnutls: Added gnutls_certificate_set_x509_system_trust() that loads the trusted CA certificates from system locations (e.g. trusted storage in windows and CA bundle files in other systems). certtool: Added support for the URI subject alternative name type in certtool. certtool: Increase to 128 the maximum number of distinct options (e.g. dns_names) allowed. gnutls-cli: If --print-cert is given, print the certificate, even on verification failure. ** API and ABI modifications: gnutls_pk_to_sign: Added gnutls_pubkey_verify_hash2: Added gnutls_certificate_set_x509_system_trust: Added OBS-URL: https://build.opensuse.org/request/show/125757 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnutls?expand=0&rev=50
236 lines
7.3 KiB
RPMSpec
236 lines
7.3 KiB
RPMSpec
#
|
|
# spec file for package gnutls
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define gnutls_sover 28
|
|
%define gnutlsxx_sover 28
|
|
%define gnutls_ossl_sover 27
|
|
|
|
Name: gnutls
|
|
Version: 3.0.20
|
|
Release: 0
|
|
Summary: The GNU Transport Layer Security Library
|
|
License: LGPL-3.0+ ; GPL-3.0+
|
|
Group: Productivity/Networking/Security
|
|
Url: http://www.gnutls.org/
|
|
Source0: http://ftp.gnu.org/gnu/gnutls/%{name}-%{version}.tar.xz
|
|
Source1: baselibs.conf
|
|
# suse specific, add support for certificate directories -- lnussel
|
|
Patch1: gnutls-implement-trust-store-dir.diff
|
|
Patch2: automake-1.12.patch
|
|
BuildRequires: automake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libidn-devel
|
|
BuildRequires: libnettle-devel >= 2.2
|
|
BuildRequires: libtasn1-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: p11-kit-devel >= 0.11
|
|
BuildRequires: pkg-config
|
|
BuildRequires: xz
|
|
BuildRequires: zlib-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: gnutls-64bit
|
|
%endif
|
|
|
|
%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.
|
|
|
|
%package -n libgnutls%{gnutls_sover}
|
|
Summary: The GNU Transport Layer Security Library
|
|
License: LGPL-3.0+
|
|
Group: Productivity/Networking/Security
|
|
|
|
%description -n libgnutls%{gnutls_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.
|
|
|
|
%package -n libgnutlsxx%{gnutlsxx_sover}
|
|
Summary: The GNU Transport Layer Security Library
|
|
License: LGPL-3.0+
|
|
Group: Productivity/Networking/Security
|
|
|
|
%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.
|
|
|
|
|
|
%package -n libgnutls-openssl%{gnutls_ossl_sover}
|
|
Summary: The GNU Transport Layer Security Library
|
|
License: GPL-3.0+
|
|
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.
|
|
|
|
|
|
%package -n libgnutls-devel
|
|
Summary: Development package for gnutls
|
|
License: LGPL-3.0+
|
|
Group: Development/Libraries/C and C++
|
|
PreReq: %install_info_prereq
|
|
Requires: glibc-devel
|
|
Requires: libgnutls%{gnutls_sover} = %{version}
|
|
Provides: gnutls-devel = %{version}-%{release}
|
|
|
|
%description -n libgnutls-devel
|
|
Files needed for software development using gnutls.
|
|
|
|
%package -n libgnutlsxx-devel
|
|
Summary: Development package for gnutls
|
|
License: LGPL-3.0+
|
|
Group: Development/Libraries/C and C++
|
|
PreReq: %install_info_prereq
|
|
Requires: libgnutls-devel = %{version}
|
|
Requires: libgnutlsxx%{gnutlsxx_sover} = %{version}
|
|
Requires: libstdc++-devel
|
|
|
|
%description -n libgnutlsxx-devel
|
|
Files needed for software development using gnutls.
|
|
|
|
|
|
%package -n libgnutls-openssl-devel
|
|
Summary: Development package for gnutls
|
|
License: GPL-3.0+
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libgnutls-devel = %{version}
|
|
Requires: libgnutls-openssl%{gnutls_ossl_sover} = %{version}
|
|
|
|
%description -n libgnutls-openssl-devel
|
|
Files needed for software development using gnutls.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
echo %{_includedir}/%{name}/abstract.h
|
|
|
|
%build
|
|
autoreconf -i
|
|
%configure \
|
|
--disable-static \
|
|
--with-pic \
|
|
--disable-rpath \
|
|
--disable-silent-rules \
|
|
--with-default-trust-store-dir=/etc/ssl/certs \
|
|
--with-sysroot=/%{?_sysroot}
|
|
make %{?_smp_mflags}
|
|
|
|
# 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
|
|
|
|
%install
|
|
%make_install
|
|
rm -rf doc/examples/.deps doc/examples/.libs doc/examples/*.{o,lo,la} doc/examples/Makefile{,.in}
|
|
find doc/examples -perm -111 -exec rm {} \;
|
|
rm -rf %{buildroot}%{_datadir}/locale/en@{,bold}quot
|
|
# Do not package static libs and libtool files
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
%find_lang libgnutls --all-name
|
|
|
|
%clean
|
|
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
|
|
|
|
%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
|
|
|
|
%post -n libgnutls-devel
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/pkcs11-vision.png.gz
|
|
|
|
%postun -n libgnutls-devel
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/pkcs11-vision.png.gz
|
|
|
|
%files -f libgnutls.lang
|
|
%defattr(-, root, root)
|
|
%doc THANKS README NEWS ChangeLog COPYING AUTHORS doc/TODO
|
|
%{_bindir}/certtool
|
|
%{_bindir}/crywrap
|
|
%{_bindir}/gnutls-cli
|
|
%{_bindir}/gnutls-cli-debug
|
|
%{_bindir}/gnutls-serv
|
|
%{_bindir}/ocsptool
|
|
%{_bindir}/psktool
|
|
%{_bindir}/p11tool
|
|
%{_bindir}/srptool
|
|
%{_mandir}/man1/*
|
|
|
|
%files -n libgnutls%{gnutls_sover}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgnutls.so.%{gnutls_sover}*
|
|
|
|
%files -n libgnutls-openssl%{gnutls_ossl_sover}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgnutls-openssl.so.%{gnutls_ossl_sover}*
|
|
|
|
%files -n libgnutlsxx%{gnutlsxx_sover}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgnutlsxx.so.%{gnutlsxx_sover}*
|
|
|
|
%files -n libgnutls-devel
|
|
%defattr(-, root, root)
|
|
%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}/ocsp.h
|
|
%{_includedir}/%{name}/pkcs11.h
|
|
%{_includedir}/%{name}/pkcs12.h
|
|
%{_includedir}/%{name}/x509.h
|
|
%{_libdir}/libgnutls.so
|
|
%{_libdir}/pkgconfig/gnutls.pc
|
|
%{_mandir}/man3/*
|
|
%{_infodir}/*.*
|
|
%doc doc/examples doc/gnutls.html doc/*.png doc/gnutls.pdf doc/reference/html/*
|
|
|
|
%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
|
|
|
|
%changelog
|