From 3aa131a318fcb0e71a1d0f300ec33833f758a0e7 Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Tue, 19 Jul 2022 10:37:08 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- libgcrypt.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libgcrypt.spec b/libgcrypt.spec index 7c5de9f..2bdeeef 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: libgcrypt Version: 1.8.5 -Release: 7%{?dist} +Release: 7%{anolis_release}%{?dist} URL: http://www.gnupg.org/ Source0: libgcrypt-%{version}-hobbled.tar.xz # The original libgcrypt sources now contain potentially patented ECC @@ -101,6 +103,14 @@ Libgcrypt is a general purpose crypto library based on the code used in GNU Privacy Guard. This package contains files needed to develop applications using libgcrypt. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q %{SOURCE3} @@ -228,7 +238,6 @@ exit 0 %{gcrylibdir}/.libgcrypt.so.*.hmac %{!?_licensedir:%global license %%doc} %license COPYING.LIB -%doc AUTHORS NEWS THANKS %files devel %{_bindir}/%{name}-config @@ -244,7 +253,13 @@ exit 0 %{!?_licensedir:%global license %%doc} %license COPYING +%files doc +%doc AUTHORS NEWS THANKS + %changelog +* Tue Jul 19 2022 DengXiewei - 1.8.5-7.0.1 +- Add doc sub package + * Tue Apr 05 2022 Jakub Jelen - 1.8.5-7 - Fix CVE-2021-33560 (#2018525) -- Gitee