Don't ship Java extensions on Fedora until compiled from sources

This commit is contained in:
Ondřej Vašík 2014-09-05 17:15:42 +02:00
parent 463ed7ab94
commit 91ba9e47b6

View File

@ -1,6 +1,6 @@
Name: docbook5-style-xsl Name: docbook5-style-xsl
Version: 1.78.1 Version: 1.78.1
Release: 5%{?dist} Release: 6%{?dist}
Group: Applications/Text Group: Applications/Text
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
@ -27,6 +27,11 @@ DocBook 5 document to other formats, such as HTML, manpages, FO,
XHMTL and other formats. They are highly customizable. For more XHMTL and other formats. They are highly customizable. For more
information see W3C page about XSL. information see W3C page about XSL.
#Don't ship Java extensions in Fedora as they are not compiled from the source
#Shiping sources instead of binary jars was requested by
#https://lists.oasis-open.org/archives/docbook-apps/201408/msg00008.html
#Sources available in the docbook stylesheets svn repository, but not packaged.
%if 0%{?rhel} >= 7
%package extensions %package extensions
Group: Applications/Text Group: Applications/Text
Summary: Norman Walsh's XSL stylesheets extensions for DocBook 5.X Summary: Norman Walsh's XSL stylesheets extensions for DocBook 5.X
@ -37,6 +42,7 @@ Requires: docbook-xsl-ns = %{version}
%description extensions %description extensions
This package contains Java extensions for XSL namespace aware stylesheets. This package contains Java extensions for XSL namespace aware stylesheets.
%endif
%prep %prep
%setup -q -n docbook-xsl-ns-%{version} %setup -q -n docbook-xsl-ns-%{version}
@ -70,9 +76,11 @@ rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
%{_datadir}/sgml/docbook/xsl-ns-stylesheets %{_datadir}/sgml/docbook/xsl-ns-stylesheets
%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions %exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
%if 0%{?rhel} >= 7
%files extensions %files extensions
%doc extensions/README.txt extensions/LICENSE.txt %doc extensions/README.txt extensions/LICENSE.txt
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
%endif
%post %post
CATALOG=%{_sysconfdir}/xml/catalog CATALOG=%{_sysconfdir}/xml/catalog
@ -99,6 +107,10 @@ if [ "$1" = 0 ]; then
fi fi
%changelog %changelog
* Fri Sep 05 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-6
- Don't ship Java extensions on Fedora until compiled from
sources
* Wed Jul 16 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-5 * Wed Jul 16 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-5
- fix the extensions inclusion - fix the extensions inclusion