From fc2add2a619c563f66d0383f14824912ccbb679c Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Wed, 20 Jul 2022 10:50:24 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Zhao Hang --- openssl.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/openssl.spec b/openssl.spec index 1e0c070..c5ad475 100644 --- a/openssl.spec +++ b/openssl.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # For the curious: # 0.9.5a soversion = 0 # 0.9.6 soversion = 1 @@ -22,7 +24,7 @@ Summary: Utilities from the general purpose cryptography library with TLS implementation Name: openssl Version: 1.1.1k -Release: 6%{?dist} +Release: 6%{anolis_release}%{?dist} Epoch: 1 # We have to remove certain patented algorithms from the openssl source # tarball with the hobble-openssl script which is included below. @@ -151,6 +153,15 @@ OpenSSL is a toolkit for supporting cryptography. The openssl-perl package provides Perl scripts for converting certificates and keys from other formats to the formats used by the OpenSSL toolkit. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n %{name}-%{version} @@ -429,7 +440,6 @@ export LD_LIBRARY_PATH %files %{!?_licensedir:%global license %%doc} %license LICENSE -%doc FAQ NEWS README README.FIPS %{_bindir}/make-dummy-cert %{_bindir}/renew-dummy-cert %{_bindir}/openssl @@ -460,7 +470,6 @@ export LD_LIBRARY_PATH %attr(0755,root,root) %{_libdir}/engines-%{soversion} %files devel -%doc CHANGES doc/dir-locals.example.el doc/openssl-c-indent.el %{_prefix}/include/openssl %{_libdir}/*.so %{_mandir}/man3*/* @@ -483,11 +492,18 @@ export LD_LIBRARY_PATH %dir %{_sysconfdir}/pki/CA/crl %dir %{_sysconfdir}/pki/CA/newcerts +%files doc +%doc FAQ NEWS README README.FIPS +%doc CHANGES doc/dir-locals.example.el doc/openssl-c-indent.el + %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %changelog +* Wed Jul 20 2022 Zhao Hang - 1:1.1.1k-6.0.1 +- Add doc sub package + * Wed Mar 23 2022 Clemens Lang - 1:1.1.1k-6 - Fixes CVE-2022-0778 openssl: Infinite loop in BN_mod_sqrt() reachable when parsing certificates - Resolves: rhbz#2067144 -- Gitee