]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - docbook-xsl/docbook-xsl.nm
173494e03e5f1c92788617a7de58cdf51a2bed95
[people/amarx/ipfire-3.x.git] / docbook-xsl / docbook-xsl.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = docbook-xsl
7 version = 1.76.1
8 release = 1
9 arch = noarch
10
11 groups = Applications/Text
12 url = http://docbook.sourceforge.net/projects/xsl/
13 license = GPLv2+
14 summary = Norman Walsh's XSL stylesheets for DocBook XML.
15
16 description
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.
19 end
20
21 source_dl = http://prdownloads.sourceforge.net/docbook/
22
23 sources =\
24 %{thisapp}.tar.bz2 \
25 %{name}-doc-%{version}.tar.bz2
26
27 build
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
45 end
46
47 packages
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
84 end