diff --git a/patch.spec b/patch.spec index f94f3464b1cacb96db8a7993a1a29b53c39a421b..77380bd14899ca59d65aa74ac7e6f903beaeeb1b 100644 --- a/patch.spec +++ b/patch.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %global gnulib_ver 20180203 Summary: Utility for modifying/upgrading files Name: patch Version: 2.7.6 -Release: 11%{?dist} +Release: 11%{anolis_release}%{?dist} License: GPLv3+ URL: http://www.gnu.org/software/patch/patch.html Group: Development/Tools @@ -33,6 +34,14 @@ original file (patching the file). Patch should be installed because it is a common way of upgrading applications. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q @@ -78,11 +87,16 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %license COPYING -%doc NEWS README %{_bindir}/* %{_mandir}/*/* +%files doc +%doc NEWS README + %changelog +* Mon Jul 18 2022 Liwei Ge - 2.7.6-11.0.1 +- Add doc sub package + * Tue Nov 19 2019 Than Ngo - 2.7.6-11 - Related: #1733565, apply the patch correctly