From 69de39e6ae1d6d4f64a00ad9762d3927369d38e9 Mon Sep 17 00:00:00 2001 From: happy_orange Date: Mon, 13 Feb 2023 19:59:08 +0800 Subject: [PATCH] add doc package --- docbook5-style-xsl.spec | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/docbook5-style-xsl.spec b/docbook5-style-xsl.spec index 1aceec8..bb5c776 100644 --- a/docbook5-style-xsl.spec +++ b/docbook5-style-xsl.spec @@ -1,4 +1,5 @@ -%define anolis_release 1 +%define anolis_release 2 + Name: docbook5-style-xsl Version: 1.79.2 Epoch: 1 @@ -28,6 +29,14 @@ DocBook 5 document to other formats, such as HTML, manpages, FO, XHMTL and other formats. They are highly customizable. For more information see W3C page about XSL. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n docbook-xsl-%{version} #remove .gitignore files @@ -50,15 +59,6 @@ ln -s xsl-ns-stylesheets-%{version} \ # Don't ship install shell script. rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh -%files -%doc BUGS -%doc README COPYING -%doc TODO NEWS -%doc RELEASE-NOTES.* -%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version} -%{_datadir}/sgml/docbook/xsl-ns-stylesheets -%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions - %post CATALOG=%{_sysconfdir}/xml/catalog %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ @@ -89,6 +89,21 @@ if [ "$1" = 0 ]; then "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG fi +%files +%license COPYING +%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version} +%{_datadir}/sgml/docbook/xsl-ns-stylesheets +%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions + +%files doc +%doc BUGS +%doc README +%doc TODO NEWS +%doc RELEASE-NOTES.* + %changelog +* Mon Feb 13 2023 happy_orange - 1:1.79.2-2 +- add doc package + * Sat May 7 2022 Chunmei Xu - 1:1.79.2-1 - init from upstream -- Gitee