From 6391e08f221c6b55cfcefccd49c4f45602f4722c Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 30 Sep 2022 15:55:59 +0800 Subject: [PATCH] add doc package --- libSM.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/libSM.spec b/libSM.spec index 25815ef..eb7d4d8 100644 --- a/libSM.spec +++ b/libSM.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Summary: X.Org X11 SM runtime library Name: libSM Version: 1.2.3 @@ -20,6 +20,14 @@ BuildRequires: xmlto %description The X.Org X11 SM (Session Management) runtime library. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package devel Summary: X.Org X11 SM development package Requires: %{name} = %{version}-%{release} @@ -51,10 +59,13 @@ rm -rf $RPM_BUILD_ROOT%{_docdir} %ldconfig_postun %files -%doc AUTHORS COPYING ChangeLog +%doc COPYING %{_libdir}/libSM.so.6 %{_libdir}/libSM.so.6.* +%files doc +%doc AUTHORS ChangeLog + %files devel %dir %{_includedir}/X11/SM %{_includedir}/X11/SM/SM.h @@ -64,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT%{_docdir} %{_libdir}/pkgconfig/sm.pc %changelog +* Fri Sep 30 2022 mgb01105731 - 1.2.3-2 +- add doc package + * Wed Apr 06 2022 mgb01105731 - 1.2.3-1 - Init from upstream version 1.2.3 -- Gitee