]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - docbook-xsl/docbook-xsl.nm
docbook-xsl: New package.
[people/ms/ipfire-3.x.git] / docbook-xsl / docbook-xsl.nm
CommitLineData
9b617772
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = docbook-xsl
7version = 1.76.1
8release = 1
9arch = noarch
10
11groups = Applications/Text
12url = http://docbook.sourceforge.net/projects/xsl/
13license = GPLv2+
14summary = Norman Walsh's XSL stylesheets for DocBook XML.
15
16description
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.
19end
20
21source_dl = http://prdownloads.sourceforge.net/docbook/
22
23sources =\
24 %{thisapp}.tar.bz2 \
25 %{name}-doc-%{version}.tar.bz2
26
27build
28 prepare_cmds
29 cp -av %{DIR_SOURCE}/Makefile %{DIR_APP}/Makefile
30 end
31
32 build = # empty
33
34 make_install_targets +=\
35 BINDIR=%{BUILDROOT}/usr/bin \
36 DESTDIR=%{BUILDROOT}/usr/share/sgml/docbook/xsl-stylesheets-%{version}
37
38 install_cmds
39 # Remove buggy extensions.
40 rm -rfv %{BUILDROOT}/usr/share/sgml/docbook/xsl-stylesheets-%{version}/extensions/*
41
42 # Remove unneeded tool for .epub formats.
43 rm -rvf %{BUILDROOT}/usr/share/sgml/docbook/xsl-stylesheets-%{version}/epub
44 end
45end
46
47packages
48 package %{name}
49 requires
50 docbook-dtds
51 sgml-common
52 end
53
54 prerequires +=\
55 docbook-dtds \
56 libxml2 \
57 sgml-common
58
59 script postin
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
64
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
68
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
72
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
76 end
77
78 script preun
79 # Uninstall catalog files.
80 /usr/bin/xmlcatalog --noout --del \
81 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
82 end
83 end
84end