diff --git a/passwd.spec b/passwd.spec index b8dc80c61d9f3d6498b81719f79d7ea15382b734..fe083c3a8948eb5dda0696fdfd080df9961c67f3 100644 --- a/passwd.spec +++ b/passwd.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 %endif @@ -7,7 +8,7 @@ Summary: An utility for setting or changing passwords using PAM Name: passwd Version: 0.80 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} License: BSD or GPL+ Group: System Environment/Base URL: https://pagure.io/passwd @@ -34,6 +35,14 @@ This package contains a system utility (passwd) which sets or changes passwords, using PAM (Pluggable Authentication Modules) library. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .manpage @@ -71,12 +80,17 @@ done %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %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 +* Mon Jul 18 2022 Liwei Ge - 0.80-4.0.1 +- Add doc sub package + * Mon Feb 07 2022 Jiri Kucera - 0.80-4 - Rebuild due to migrated tests Related: #1841499