From 39704f32aaec9d00d8178c445016437af40149f8 Mon Sep 17 00:00:00 2001 From: Weisson Date: Sun, 17 Jul 2022 17:30:08 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Weisson --- libgpg-error.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libgpg-error.spec b/libgpg-error.spec index cd14cb9..9475695 100644 --- a/libgpg-error.spec +++ b/libgpg-error.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Library for error values used by GnuPG components Name: libgpg-error Version: 1.31 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} URL: https://www.gnupg.org/related_software/libgpg-error/ Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig @@ -15,6 +16,8 @@ BuildRequires: texinfo %if 0%{?fedora} > 13 BuildRequires: gettext-autopoint %endif +Requires: glibc +Provides: /usr/bin/gpg-error %description This is a library that defines common error values for all GnuPG @@ -34,6 +37,14 @@ components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, pinentry, SmartCard Daemon and possibly more in the future. This package contains files necessary to develop applications using libgpg-error. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch1 -p1 -b .multilib @@ -76,7 +87,6 @@ exit 0 %defattr(-,root,root) %{!?_licensedir:%global license %%doc} %license COPYING COPYING.LIB -%doc AUTHORS README NEWS ChangeLog %{_bindir}/gpg-error %{_libdir}/libgpg-error.so.0* %{_datadir}/libgpg-error @@ -94,7 +104,14 @@ exit 0 %{_infodir}/gpgrt.info* %{_mandir}/man1/gpg-error-config.* +%files doc +%doc AUTHORS README NEWS ChangeLog + + %changelog +* Fri Jul 15 2022 Weisson - 1.31-1.0.1 +- Add doc sub package + * Mon Jun 11 2018 Tomáš Mráz 1.31-1 - new upstream release 1.31 -- Gitee