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
62 # Install catalog files.
63 /usr/bin/xmlcatalog --noout --add "rewriteSystem" \
64 "http://docbook.sourceforge.net/release/xsl/%{version}" \
65 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
67 /usr/bin/xmlcatalog --noout --add "rewriteURI" \
68 "http://docbook.sourceforge.net/release/xsl/%{version}" \
69 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
71 /usr/bin/xmlcatalog --noout --add "rewriteSystem" \
72 "http://docbook.sourceforge.net/release/xsl/current" \
73 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
75 /usr/bin/xmlcatalog --noout --add "rewriteURI" \
76 "http://docbook.sourceforge.net/release/xsl/current" \
77 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
81 # Uninstall catalog files.
82 /usr/bin/xmlcatalog --noout --del \
83 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog