From 0a4ce5469d1c2ed3090618ceaeb5a01cabe5eed8 Mon Sep 17 00:00:00 2001 From: fu-shanqing Date: Mon, 19 Sep 2022 09:52:54 +0800 Subject: [PATCH] detach the sub package gnutls-utils and gnutls-dane from gnutls --- gnutls.spec | 64 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 16 deletions(-) diff --git a/gnutls.spec b/gnutls.spec index 6c693e1..a6ee602 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -1,6 +1,6 @@ Name: gnutls Version: 3.7.2 -Release: 5 +Release: 6 Summary: The GNU Secure Communication Protocol Library License: LGPLv2.1+ and GPLv3+ @@ -36,12 +36,8 @@ Requires: crypto-policies, p11-kit-trust, libtasn1, nettle Recommends: trousers >= 0.3.11.2 Provides: bundled(gnulib) = 20130424 -Provides: gnutls-utils = %{version}-%{release} Provides: gnutls-c++ = %{version}-%{release} -Provides: gnutls-dane = %{version}-%{release} -Obsoletes: gnutls-utils < %{version}-%{release} Obsoletes: gnutls-c++ < %{version}-%{release} -Obsoletes: gnutls-dane < %{version}-%{release} %description GnuTLS is a secure communications library implementing the SSL, TLS and DTLS @@ -64,6 +60,34 @@ This package contains files needed for developing applications with %{name}. %package_help +%package utils +License:GPLv3+ +Summary:Command line tools for TLS protocol +Requires:%{name}%{?_isa} = %{version}-%{release} + +%description utils +GnuTLS is a secure communications library implementing the SSL, TLS and DTLS +protocols and technologies around them. It provides a simple C language +application programming interface (API) to access the secure communications +protocols as well as APIs to parse and write X.509, PKCS #12, and other +required structures. +This package contains command line TLS client and servers and certificate manipulation tools. + +%if %{with dane} +%package dane +Summary: A DANE protocol implementation for GnuTLS +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description dane +GnuTLS is a secure communications library implementing the SSL, TLS and DTLS +protocols and technologies around them. It provides a simple C language +application programming interface (API) to access the secure communications +protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and +other required structures. +This package contains library that implements the DANE protocol for verifying +TLS certificates through DNSSEC. +%endif + %if %{with guile} %package guile Summary: Guile bindings for the GNUTLS library @@ -158,17 +182,6 @@ make check %{?_smp_mflags} %defattr(-,root,root) %doc README.md AUTHORS %license LICENSE doc/COPYING doc/COPYING.LESSER -%{_bindir}/certtool -%{_bindir}/tpmtool -%{_bindir}/ocsptool -%{_bindir}/psktool -%{_bindir}/p11tool -%{_bindir}/srptool -%{_bindir}/gnutls* -%if %{with dane} -%{_bindir}/danetool -%{_libdir}/libgnutls-dane.so.* -%endif %{_libdir}/libgnutls.so.30* %{_libdir}/libgnutlsxx.so.* %if %{with fips} @@ -181,6 +194,22 @@ make check %{?_smp_mflags} %{_libdir}/libgnutls*.so %{_includedir}/* +%files utils +%{_bindir}/certtool +%{_bindir}/tpmtool +%{_bindir}/ocsptool +%{_bindir}/psktool +%{_bindir}/p11tool +%{_bindir}/srptool +%{_bindir}/gnutls* + +%if %{with dane} +%files dane +%defattr(-,root,root,-) +%{_bindir}/danetool +%{_libdir}/libgnutls-dane.so.* +%endif + %files help %defattr(-,root,root) %doc NEWS THANKS doc/certtool.cfg @@ -201,6 +230,9 @@ make check %{?_smp_mflags} %endif %changelog +* Mon Sep 19 2022 fushanqing - 3.7.2-6 +- detach the sub package gnutls-utils and gnutls-dane from gnutls + * Mon Aug 29 2022 dongyuzhen - 3.7.2-5 - fix CVE-2022-2509 -- Gitee