[docbook5-style-xsl: 1/2] include extensions in extensions subpackage (#1084491)

Ondrej Vasik ovasik at fedoraproject.org
Wed Jul 16 10:56:19 UTC 2014


commit 7f8b1eae202120fe98f059bd1bafd0e2c80d9509
Author: Ondřej Vašík <ovasik at redhat.com>
Date:   Wed Jul 16 12:55:13 2014 +0200

    include extensions in extensions subpackage (#1084491)

 docbook5-style-xsl.spec |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/docbook5-style-xsl.spec b/docbook5-style-xsl.spec
index 0923d1d..7f49dd5 100644
--- a/docbook5-style-xsl.spec
+++ b/docbook5-style-xsl.spec
@@ -1,6 +1,6 @@
 Name: docbook5-style-xsl
 Version: 1.78.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Applications/Text
 
 Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
@@ -27,6 +27,17 @@ 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 extensions
+Group: Applications/Text
+Summary: Norman Walsh's XSL stylesheets extensions for DocBook 5.X
+# Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
+# some .js files under ./slides/browser/ are licensed MPLv1.1
+License: MIT and ASL 2.0
+Requires: docbook-xsl-ns = %{version}
+
+%description extensions
+This package contains Java extensions for XSL namespace aware stylesheets.
+
 %prep
 %setup -q -n docbook-xsl-ns-%{version}
 #remove .gitignore files
@@ -46,8 +57,6 @@ $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION
 ln -s xsl-ns-stylesheets-%{version} \
  $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets
 
-# Don't ship the extensions.
-rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions
 # Don't ship install shell script.
 rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
 
@@ -59,6 +68,11 @@ rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
 %doc RELEASE-NOTES.*
 %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
 %{_datadir}/sgml/docbook/xsl-ns-stylesheets
+%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions
+
+%files extensions
+%doc extensions/README.txt extensions/LICENSE.txt
+%{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions
 
 %post
 CATALOG=%{_sysconfdir}/xml/catalog
@@ -85,6 +99,9 @@ if [ "$1" = 0 ]; then
 fi
 
 %changelog
+* Wed Jul 16 2014 Ondrej Vasik <ovasik at redhat.com> 1.78.1-2
+- include extensions in extensions subpackage (#1084491)
+
 * Mon Mar 18 2013 Ondrej Vasik <ovasik at redhat.com> 1.78.1-1
 - new upstream release 1.78.1
 


More information about the scm-commits mailing list