1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 groups = Applications/Text
12 url = http://docbook.sourceforge.net/projects/xsl/
14 summary = Norman Walsh's XSL stylesheets for DocBook XML.
17 hese XSL stylesheets allow you to transform any DocBook XML document to
18 other formats, such as HTML, FO, and XHMTL. They are highly customizable.
21 source_dl = http://prdownloads.sourceforge.net/docbook/
25 %{name}-doc-%{version}.tar.bz2
29 cp -av %{DIR_SOURCE}/Makefile %{DIR_APP}/Makefile
34 make_install_targets +=\
35 BINDIR=%{BUILDROOT}/usr/bin \
36 DESTDIR=%{BUILDROOT}/usr/share/sgml/docbook/xsl-stylesheets-%{version}
39 # Remove buggy extensions.
40 rm -rfv %{BUILDROOT}/usr/share/sgml/docbook/xsl-stylesheets-%{version}/extensions/*
42 # Remove unneeded tool for .epub formats.
43 rm -rvf %{BUILDROOT}/usr/share/sgml/docbook/xsl-stylesheets-%{version}/epub
60 # Install catalog files.
61 /usr/bin/xmlcatalog --noout --add "rewriteSystem" \
62 "http://docbook.sourceforge.net/release/xsl/%{version}" \
63 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
65 /usr/bin/xmlcatalog --noout --add "rewriteURI" \
66 "http://docbook.sourceforge.net/release/xsl/%{version}" \
67 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
69 /usr/bin/xmlcatalog --noout --add "rewriteSystem" \
70 "http://docbook.sourceforge.net/release/xsl/current" \
71 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
73 /usr/bin/xmlcatalog --noout --add "rewriteURI" \
74 "http://docbook.sourceforge.net/release/xsl/current" \
75 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
79 # Uninstall catalog files.
80 /usr/bin/xmlcatalog --noout --del \
81 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog