]>
Commit | Line | Data |
---|---|---|
9b617772 SS |
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 | |
4cc6d616 | 8 | release = 3 |
9b617772 SS |
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 | |
7fc5b511 | 50 | libxslt |
9b617772 SS |
51 | docbook-dtds |
52 | sgml-common | |
53 | end | |
54 | ||
4cc6d616 MT |
55 | prerequires |
56 | docbook-dtds | |
57 | libxml2 | |
9b617772 | 58 | sgml-common |
4cc6d616 | 59 | end |
9b617772 SS |
60 | |
61 | script postin | |
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 | |
66 | ||
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 | |
70 | ||
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 | |
74 | ||
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 | |
78 | end | |
79 | ||
80 | script preun | |
81 | # Uninstall catalog files. | |
82 | /usr/bin/xmlcatalog --noout --del \ | |
83 | "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" /etc/xml/catalog | |
84 | end | |
85 | end | |
86 | end |