From d4951a0d06c4c1972f10046841535c1a39c2932a Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 10 Oct 2022 14:13:08 +0800 Subject: [PATCH] add doc package --- rpcbind.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/rpcbind.spec b/rpcbind.spec index f5c40bb..f5077ff 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # These are macros to be usable outside of the build section %global rpcbind_user_group rpc @@ -39,6 +39,14 @@ The rpcbind utility is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %autosetup -p1 @@ -105,7 +113,6 @@ fi %files %license COPYING %config(noreplace) /etc/sysconfig/rpcbind -%doc AUTHORS ChangeLog README %{_bindir}/rpcbind %{_bindir}/rpcinfo %{_sbindir}/rpcbind @@ -116,6 +123,12 @@ fi %{_tmpfilesdir}/%{name}.conf %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} +%files doc +%doc AUTHORS ChangeLog README + %changelog +* Mon Oct 10 2022 mgb01105731 - 1.2.6-2 +- add doc package + * Fri Mar 11 2022 Chunmei Xu - 1.2.6-1 - init from upstream 1.2.6 -- Gitee