From f6d37797694d3085f168d584ef86ab376ddaeec1 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 15:03:31 +0800 Subject: [PATCH] add doc package --- sed.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/sed.spec b/sed.spec index de50442..404be55 100644 --- a/sed.spec +++ b/sed.spec @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -%define anolis_release 1 +%define anolis_release 2 Summary: A GNU stream text editor Name: sed @@ -26,6 +26,14 @@ operations on the text and outputs the modified text. The operations that sed performs (substitutions, deletions, insertions, etc.) can be specified in a script file or from the command line. +%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 %setup -q @@ -54,11 +62,16 @@ rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir %files -f %{name}.lang %{!?_licensedir:%global license %%doc} %license COPYING -%doc BUGS NEWS THANKS README AUTHORS sedfaq.txt.gz %{_bindir}/sed %{_infodir}/sed.info* %{_mandir}/man1/sed.1* +%files doc +%doc BUGS NEWS THANKS README AUTHORS sedfaq.txt.gz + %changelog +* Sun Oct 09 2022 mgb01105731 - 4.8-2 +- add doc package + * Thu Mar 10 2022 zhang xianting - 4.8-1 - Initial build for Anolis v23 -- Gitee