From 9bea0c172db66f01cfe4b726b379b9cb07e77a78 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Mon, 18 Jul 2022 19:17:31 +0800 Subject: [PATCH] spec: add doc sub package --- libedit.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libedit.spec b/libedit.spec index 80c4334..0e15a8f 100644 --- a/libedit.spec +++ b/libedit.spec @@ -1,10 +1,11 @@ +%define anolis_release .0.1 %global snap 20170329 %global dir_snap 20170329 Summary: The NetBSD Editline library Name: libedit Version: 3.1 -Release: 23.%{snap}cvs%{?dist} +Release: 23.%{snap}cvs%{anolis_release}%{?dist} License: BSD Group: System Environment/Libraries URL: http://www.thrysoee.dk/editline/ @@ -27,6 +28,15 @@ Requires: ncurses-devel%{?_isa} %description devel This package contains development files for %{name}. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} + %prep %setup -q -n %{name}-%{dir_snap}-%{version} @@ -60,7 +70,6 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/history.3* %files %{!?_licensedir:%global license %%doc} %license COPYING -%doc ChangeLog THANKS %{_mandir}/man5/editrc.5* %{_libdir}/%{name}.so.* @@ -74,7 +83,13 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/history.3* %dir %{_includedir}/editline %{_includedir}/editline/readline.h +%files doc +%doc ChangeLog THANKS + %changelog +* Fri Jul 15 2022 Chang Gao - 3.1-23.20170329cvs.0.1 +- Add doc sub package + * Sat Mar 3 2018 Jerry James - 3.1-23.20170329cvs - Add gcc BR - Build verbosely -- Gitee