From 4ada2e71045696902f972862757e5b4924add5ad Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 18 Jul 2022 16:29:28 +0800 Subject: [PATCH] Add doc sub package --- libXrandr.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libXrandr.spec b/libXrandr.spec index 3d2c755..a80f01e 100644 --- a/libXrandr.spec +++ b/libXrandr.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global tarball libXrandr #global gitdate 20130524 %global gitversion c90f74497 @@ -5,7 +6,7 @@ Summary: X.Org X11 libXrandr runtime library Name: libXrandr Version: 1.5.2 -Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{anolis_release}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.x.org @@ -31,6 +32,15 @@ BuildRequires: pkgconfig(x11) >= 1.6.0 %description X.Org X11 libXrandr runtime library +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: X.Org X11 libXrandr development package Group: Development/Libraries @@ -58,10 +68,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %ldconfig_postun %files -%doc AUTHORS COPYING %{_libdir}/libXrandr.so.2 %{_libdir}/libXrandr.so.2.2.0 +%files doc +%doc AUTHORS COPYING + %files devel %{_includedir}/X11/extensions/Xrandr.h %{_libdir}/libXrandr.so @@ -70,6 +82,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{_mandir}/man3/*.3* %changelog +* Mon Jul 17 2022 mgb01105731 - 1.5.2-1.0.1 +- Add doc sub package + * Thu Jun 04 2020 Benjamin Tissoires - 1.5.2-1 - libXrandr 1.5.2 -- Gitee