re-add docbook5 support in docbook5-xsl subpackage [release 1.79.2-4mamba;Wed May 19 2021]
This commit is contained in:
parent
278529c3ef
commit
0ecf7e0e41
117
docbook-xsl.spec
117
docbook-xsl.spec
@ -1,6 +1,6 @@
|
|||||||
Name: docbook-xsl
|
Name: docbook-xsl
|
||||||
Version: 1.79.2
|
Version: 1.79.2
|
||||||
Release: 3mamba
|
Release: 4mamba
|
||||||
Summary: Norman Walsh's XSL stylesheets for DocBook XML
|
Summary: Norman Walsh's XSL stylesheets for DocBook XML
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -10,6 +10,8 @@ URL: https://github.com/docbook/xslt10-stylesheets
|
|||||||
Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2
|
Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2
|
||||||
Source1: docbook-xsl-Makefile
|
Source1: docbook-xsl-Makefile
|
||||||
Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-doc-%{version}.tar.bz2
|
Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-doc-%{version}.tar.bz2
|
||||||
|
# Docbook 5
|
||||||
|
Source3: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-%{version}.tar.bz2
|
||||||
Patch0: docbook-xsl-1.79.2-marginleft.patch
|
Patch0: docbook-xsl-1.79.2-marginleft.patch
|
||||||
Patch1: docbook-xsl-listblock.patch
|
Patch1: docbook-xsl-listblock.patch
|
||||||
Patch2: docbook-xsl-1.79.2-non-recursive-string-subst.patch
|
Patch2: docbook-xsl-1.79.2-non-recursive-string-subst.patch
|
||||||
@ -25,13 +27,32 @@ License: Distributable
|
|||||||
Requires(post): libxml2-utils
|
Requires(post): libxml2-utils
|
||||||
Requires(postun): libxml2-utils
|
Requires(postun): libxml2-utils
|
||||||
Requires: docbook-dtds >= 1.0
|
Requires: docbook-dtds >= 1.0
|
||||||
|
Requires: xml-common
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
These XSL stylesheets allow you to transform any DocBook XML document to other formats, such as HTML, FO, and XHMTL. They are highly customizable.
|
These XSL stylesheets allow you to transform any DocBook XML document to other formats, such as HTML, FO, and XHMTL. They are highly customizable.
|
||||||
|
|
||||||
|
%package -n docbook5-xsl
|
||||||
|
Group: Applications/Publishing
|
||||||
|
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
|
||||||
|
Requires(post): libxml2 >= 2.4.8
|
||||||
|
Requires(postun): libxml2 >= 2.4.8
|
||||||
|
Requires: docbook5-schemas >= 5.1
|
||||||
|
|
||||||
|
%description -n docbook5-xsl
|
||||||
|
These XSL stylesheets allow you to transform any DocBook 5 XML document to other formats, such as HTML, FO, and XHMTL. They are highly customizable.
|
||||||
|
|
||||||
|
%package -n docbook5-xsl-extensions
|
||||||
|
Group: Applications/Publishing
|
||||||
|
Summary: Norman Walsh's XSL stylesheets Java extensions for DocBook 5.X
|
||||||
|
Requires: docbook5-xsl = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description -n docbook5-xsl-extensions
|
||||||
|
This package contains Java extensions for XSL namespace aware stylesheets.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n docbook-xsl-nons-%{version} -a2
|
%setup -q -n docbook-xsl-nons-%{version} -a2 -a3
|
||||||
mv docbook-xsl-%{version}/doc .
|
mv docbook-xsl-%{version}/doc .
|
||||||
|
|
||||||
%patch0 -p1 -b .marginleft
|
%patch0 -p1 -b .marginleft
|
||||||
@ -57,6 +78,12 @@ for f in $(find -name "*'*"); do
|
|||||||
mv -v "$f" $(echo "$f" | tr -d "'")
|
mv -v "$f" $(echo "$f" | tr -d "'")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Docbook 5
|
||||||
|
cd %{name}-%{version}
|
||||||
|
rm -rf $(find -name '.gitignore' -type f)
|
||||||
|
#make ruby scripts executable
|
||||||
|
chmod +x epub/bin/dbtoepub
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -71,34 +98,22 @@ make install \
|
|||||||
cp -a VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
|
cp -a VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
|
||||||
ln -s xsl-stylesheets-%{version} \
|
ln -s xsl-stylesheets-%{version} \
|
||||||
%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets
|
%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets
|
||||||
|
|
||||||
# Don't ship the extensions (bug #177256).
|
# Don't ship the extensions (bug #177256).
|
||||||
rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/*
|
rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/*
|
||||||
|
|
||||||
:<< __OLD
|
|
||||||
install -d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
|
||||||
for d in common docsrc eclipse epub extensions fo highlighting html \
|
|
||||||
htmlhelp images javahelp lib manpages params profiling roundtrip \
|
|
||||||
slides template tests tools website xhtml; do
|
|
||||||
cp -a $d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
|
||||||
done
|
|
||||||
cp catalog.xml %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/catalog
|
|
||||||
cp VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
|
|
||||||
ln -s VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION
|
|
||||||
|
|
||||||
cd docbook-xsl-nons-%{version}
|
# Docbook 5
|
||||||
install -d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}
|
cd %{name}-%{version}
|
||||||
for d in common docsrc eclipse epub extensions fo highlighting html \
|
mkdir -p %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
|
||||||
htmlhelp images javahelp lib manpages params profiling roundtrip \
|
cp -a [[:lower:]]* %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
|
||||||
slides template tests website xhtml xhtml-1_1; do
|
cp -a VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION.xsl
|
||||||
cp -a $d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}
|
ln -s VERSION.xsl \
|
||||||
done
|
%{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION
|
||||||
cp catalog.xml %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/catalog
|
ln -s xsl-ns-stylesheets-%{version} \
|
||||||
cp VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/VERSION.xsl
|
%{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
||||||
ln -s VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/VERSION
|
|
||||||
|
|
||||||
ln -s xsl-stylesheets-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets
|
# Don't ship install shell script.
|
||||||
ln -s xsl-stylesheets-ns-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns
|
rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -136,15 +151,63 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
|
%post -n docbook5-xsl
|
||||||
|
CATALOG=%{_sysconfdir}/xml/catalog
|
||||||
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||||
|
"http://cdn.docbook.org/release/xsl/%{version}" \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||||
|
"http://cdn.docbook.org/release/xsl/%{version}" \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||||
|
"http://cdn.docbook.org/release/xsl/current/" \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||||
|
"http://cdn.docbook.org/release/xsl/current/" \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
|
||||||
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||||
|
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||||
|
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun -n docbook5-xsl
|
||||||
|
# remove entries only on removal of package
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
|
CATALOG=%{_sysconfdir}/xml/catalog
|
||||||
|
%{_bindir}/xmlcatalog --noout --del \
|
||||||
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/sgml/docbook/xsl-stylesheets
|
%{_datadir}/sgml/docbook/xsl-stylesheets
|
||||||
%dir %{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
%dir %{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
||||||
%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/*
|
%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/*
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
#%doc BUGS README RELEASE-NOTES.* TODO doc docsrc
|
|
||||||
|
%files -n docbook5-xsl
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
|
||||||
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/*
|
||||||
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
||||||
|
%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
|
||||||
|
%doc %{name}-%{version}/COPYING
|
||||||
|
|
||||||
|
%files -n docbook5-xsl-extensions
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
|
||||||
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions/*
|
||||||
|
%doc %{name}-%{version}/extensions/LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-4mamba
|
||||||
|
- re-add docbook5 support in docbook5-xsl subpackage
|
||||||
|
|
||||||
* Sat May 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-3mamba
|
* Sat May 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-3mamba
|
||||||
- rebuilt with Fedora patches and recipe
|
- rebuilt with Fedora patches and recipe
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user