From 7d5edbf7c4b0632fec534365c625550d9e01f9f2 Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Wed, 20 Jul 2022 11:07:16 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Zhao Hang --- openssl-pkcs11.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/openssl-pkcs11.spec b/openssl-pkcs11.spec index d16f40d..4da4482 100644 --- a/openssl-pkcs11.spec +++ b/openssl-pkcs11.spec @@ -1,5 +1,7 @@ +%define anolis_release .0.1 + Version: 0.4.10 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} # Define the directory where the OpenSSL engines are installed %global enginesdir %{_libdir}/engines-1.1 @@ -62,6 +64,14 @@ developing applications that use libp11. %endif +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p 1 -n libp11-%{version} @@ -100,7 +110,6 @@ make check %{?_smp_mflags} || if [ $? -ne 0 ]; then cat tests/*.log; exit 1; fi; %files %license COPYING -%doc NEWS %{_libdir}/libp11.so.* %{enginesdir}/*.so @@ -112,7 +121,13 @@ make check %{?_smp_mflags} || if [ $? -ne 0 ]; then cat tests/*.log; exit 1; fi; %{_includedir}/*.h %endif +%files doc +%doc NEWS README.md INSTALL.md + %changelog +* Wed Jul 20 2022 Zhao Hang - 0.4.10-2.0.1 +- Add doc sub package + * Thu Nov 28 2019 Anderson Sasaki - 0.4.10-2 - Set RSA_FLAG_FIPS_METHOD for RSA methods (#1777892) -- Gitee