diff --git a/which.spec b/which.spec index 2a3e19b1505af4df904dbd0d601ccc1fc9d1ff0a..9e6072c01f6abeb15db1b7ec1c854526af25eec4 100644 --- a/which.spec +++ b/which.spec @@ -1,6 +1,7 @@ +%define anolis_release 2 Name: which Version: 2.21 -Release: 1%{?dist} +Release: %{anolis_release}%{?dist} Summary: Displays where a particular program in your path is located License: GPLv3 @@ -15,6 +16,14 @@ BuildRequires: make gcc readline-devel The which command shows the full pathname of a specified program, if the specified program is in your PATH. +%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 @@ -34,13 +43,17 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %files %license COPYING -%doc EXAMPLES README AUTHORS NEWS %attr(0644,root,root) %{_sysconfdir}/profile.d/which2.* %{_bindir}/which %{_infodir}/which.info* %{_mandir}/man1/which.1* +%files doc +%doc EXAMPLES README AUTHORS NEWS %changelog +* Sat Oct 08 2022 mgb01105731 - 2.21-2 +- add doc package + * Thu Mar 10 2022 forrest_ly - 2.21-1 - Init for Anolis OS 23