From 2d8fab6c724806a949a35e9f4d806077ee7161d3 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sat, 8 Oct 2022 16:46:45 +0800 Subject: [PATCH] add doc package --- passwd.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/passwd.spec b/passwd.spec index 2d1bb68..7b8e109 100644 --- a/passwd.spec +++ b/passwd.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Name: passwd Version: 0.80 @@ -27,6 +27,14 @@ BuildRequires: audit-libs-devel This package contains a system utility (passwd) which sets or changes passwords, using PAM (Pluggable Authentication Modules) library. +%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 @@ -41,12 +49,17 @@ install -m 644 passwd.pamd -D %{buildroot}%{_sysconfdir}/pam.d/passwd %files -f %{name}.lang %license COPYING -%doc AUTHORS ChangeLog NEWS %config(noreplace) %{_sysconfdir}/pam.d/passwd %attr(4755,root,root) %{_bindir}/passwd %{_mandir}/man1/passwd.1* +%files doc +%doc AUTHORS ChangeLog NEWS + %changelog +* Sat Oct 08 2022 mgb01105731 - 0.80-3 +- add doc package + * Wed Mar 23 2022 Chunmei Xu - 0.80-2 - remove requires of library -- Gitee