Name: docbook-xsl Version: 1.79.2 Release: 1mamba Summary: Norman Walsh's XSL stylesheets for DocBook XML Group: Applications/Publishing Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://docbook.sourceforge.net/projects/xsl Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-%{version}.tar.bz2 Source1: %{name}.Makefile Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2 Patch0: docbook-xsl-marginleft.patch Patch1: docbook-xsl-listblock.patch License: Distributable ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END Requires(pre): libxml2-utils Requires: docbook-dtds >= 1.0 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %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. %prep %setup -q -a2 #%patch0 -p1 -b .marginleft #%patch1 -p1 -b .listblock #cp %{SOURCE1} Makefile %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" 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} install -d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version} for d in common docsrc eclipse epub extensions fo highlighting html \ htmlhelp images javahelp lib manpages params profiling roundtrip \ slides template tests website xhtml xhtml-1_1; do cp -a $d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version} done cp catalog.xml %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/catalog cp VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/VERSION.xsl ln -s VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/VERSION ln -s xsl-stylesheets-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets ln -s xsl-stylesheets-ns-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -ge 1 ]; then #new install or upgrade CATALOG=/etc/xml/catalog [ -e $CATALOG ] || /usr/bin/xmlcatalog --noout --create $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/%{version}" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/%{version}" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/current" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/current" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl-ns/current" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl-ns/current" \ "file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG fi exit 0 %postun if [ $1 -eq 0 ]; then #erase CATALOG=/etc/xml/catalog %{_bindir}/xmlcatalog --noout --del \ "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG %{_bindir}/xmlcatalog --noout --del \ "file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG fi exit 0 %files %defattr(-,root,root) %{_datadir}/sgml/docbook/xsl-stylesheets %dir %{_datadir}/sgml/docbook/xsl-stylesheets-%{version} %{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/* %{_datadir}/sgml/docbook/xsl-stylesheets-ns %dir %{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version} %{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/* %doc COPYING #%doc BUGS README RELEASE-NOTES.* TODO doc docsrc %changelog * Sat Dec 23 2017 Silvan Calarco 1.79.2-1mamba - update to 1.79.2 * Mon Jan 04 2016 Automatic Build System 1.79.1-1mamba - automatic version update by autodist * Sat Apr 27 2013 Silvan Calarco 1.78.1-2mamba - install VERSION as VERSION.xsl and add a compatibility symlink to VERSION * Mon Apr 22 2013 Automatic Build System 1.78.1-1mamba - automatic version update by autodist * Tue Nov 09 2010 Automatic Build System 1.76.1-1mamba - automatic update by autodist * Wed Aug 11 2010 Davide Madrisan 1.75.2-2mamba - create symlinks xsl-stylesheets and xsl-stylesheets in %{_datadir}/sgml/docbook * Mon Jul 27 2009 Automatic Build System 1.75.2-1mamba - automatic update by autodist * Fri Jul 03 2009 Automatic Build System 1.75.1-1mamba - automatic update by autodist * Sun Apr 26 2009 Silvan Calarco 1.74.3-2mamba - set libxml2-utils as PreReq * Fri Mar 06 2009 Silvan Calarco 1.74.3-1mamba - automatic update by autodist * Fri Sep 26 2008 Silvan Calarco 1.74.0-2mamba - don't use make install which won't install most needed files and directories * Tue Sep 23 2008 Silvan Calarco 1.74.0-1mamba - update to 1.74.0 * Fri Nov 04 2005 Stefano Cotta Ramusino 1.68.1-3qilnx - architecture changed to noarch * Wed Feb 23 2005 Silvan Calarco 1.68.1-2qilnx - create catalog if empty - fix libxml2 requirements * Tue Feb 22 2005 Silvan Calarco 1.68.1-1qilnx - update to version 1.68.1 by autospec * Tue Jul 27 2004 Davide Madrisan 1.65.1-1qilnx - initial build