From 366c35f88f058e56a1985768671de9cb905d052d Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Wed, 20 Jul 2022 11:19:59 +0800 Subject: [PATCH] add doc sub package --- libXcursor.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/libXcursor.spec b/libXcursor.spec index a4d3759..46a3e3a 100644 --- a/libXcursor.spec +++ b/libXcursor.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global tarball libXcursor #global gitdate 20130524 %global gitversion 8f677eaea @@ -5,7 +6,7 @@ Summary: Cursor management library Name: libXcursor Version: 1.1.15 -Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{anolis_release}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.x.org @@ -43,6 +44,14 @@ Requires: %{name} = %{version}-%{release} %description devel libXcursor development package. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} iconv --from=ISO-8859-2 --to=UTF-8 COPYING > COPYING.new && \ @@ -76,7 +85,6 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %ldconfig_postun %files -%doc AUTHORS COPYING README %{_libdir}/libXcursor.so.1 %{_libdir}/libXcursor.so.1.0.2 %dir %{_datadir}/icons/default @@ -93,7 +101,13 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la #%dir %{_mandir}/man3x %{_mandir}/man3/Xcursor*.3* +%files doc +%doc AUTHORS COPYING README + %changelog +* Wed Jul 20 2022 Xiaoping Liu - 1.1.15-3.0.1 +- Add doc sub package + * Thu Jul 05 2018 Adam Jackson - 1.1.15-3 - Drop useless %%defattr -- Gitee