]> git.ipfire.org Git - ipfire-3.x.git/blame - docbook-xsl/docbook-xsl.nm
docbook-utils: Make package work on x86_64.
[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
7fc5b511 8release = 2
9b617772
SS
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
7fc5b511 50 libxslt
9b617772
SS
51 docbook-dtds
52 sgml-common
53 end
54
55 prerequires +=\
56 docbook-dtds \
57 libxml2 \
58 sgml-common
59
60 script postin
61 # Install catalog files.
62 /usr/bin/xmlcatalog --noout --add "rewriteSystem" \
63 "http://docbook.sourceforge.net/release/xsl/%{version}" \
64 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
65
66 /usr/bin/xmlcatalog --noout --add "rewriteURI" \
67 "http://docbook.sourceforge.net/release/xsl/%{version}" \
68 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
69
70 /usr/bin/xmlcatalog --noout --add "rewriteSystem" \
71 "http://docbook.sourceforge.net/release/xsl/current" \
72 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
73
74 /usr/bin/xmlcatalog --noout --add "rewriteURI" \
75 "http://docbook.sourceforge.net/release/xsl/current" \
76 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
77 end
78
79 script preun
80 # Uninstall catalog files.
81 /usr/bin/xmlcatalog --noout --del \
82 "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog
83 end
84 end
85end