]>
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 | |
2a6da3c7 | 7 | version = 1.79.2 |
24613fea | 8 | release = 3 |
9b617772 SS |
9 | |
10 | groups = Applications/Text | |
2a6da3c7 | 11 | url = https://docbook.sourceforge.net/projects/xsl/ |
9b617772 SS |
12 | license = GPLv2+ |
13 | summary = Norman Walsh's XSL stylesheets for DocBook XML. | |
14 | ||
15 | description | |
16 | hese XSL stylesheets allow you to transform any DocBook XML document to | |
17 | other formats, such as HTML, FO, and XHMTL. They are highly customizable. | |
18 | end | |
19 | ||
2a6da3c7 | 20 | source_dl = https://github.com/docbook/xslt10-stylesheets/releases/download/release/%{version}/ |
9b617772 | 21 | |
2a6da3c7 | 22 | sources = %{thisapp}.tar.bz2 |
9b617772 SS |
23 | |
24 | build | |
5cd803df MT |
25 | arches = noarch |
26 | ||
2a6da3c7 SS |
27 | build |
28 | # Nothing to do. | |
9b617772 SS |
29 | end |
30 | ||
2a6da3c7 SS |
31 | install |
32 | # Create directory layout. | |
33 | mkdir -pv %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-ns-stylesheets-%{version} | |
9b617772 | 34 | |
2a6da3c7 SS |
35 | # Install catalog files. |
36 | cp -avf [[:lower:]]* %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/ | |
37 | cp -avf VERSION %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/VERSION.xsl | |
38 | ||
39 | ln -svf VERSION.xsl \ | |
40 | %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/VERSION | |
41 | ln -svf xsl-ns-stylesheets-%{version} \ | |
42 | %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-ns-stylesheets | |
43 | ||
44 | # Don't ship install shell script. | |
45 | rm -rvf %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh | |
9b617772 | 46 | |
9b617772 | 47 | # Remove buggy extensions. |
2a6da3c7 | 48 | rm -rfv %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-stylesheets-%{version}/extensions/* |
9b617772 SS |
49 | |
50 | # Remove unneeded tool for .epub formats. | |
2a6da3c7 | 51 | rm -rvf %{BUILDROOT}/%{datadir}/sgml/docbook/xsl-stylesheets-%{version}/epub |
24613fea SS |
52 | |
53 | # Fix directory permissions. | |
54 | find %{BUILDROOT}%{datadir} -type d -exec chmod 755 {} \; | |
55 | ||
56 | # Fix file permissions. | |
57 | find %{BUILDROOT}%{datadir} -type f -exec chmod 644 {} \; | |
9b617772 SS |
58 | end |
59 | end | |
60 | ||
61 | packages | |
62 | package %{name} | |
63 | requires | |
7fc5b511 | 64 | libxslt |
9b617772 SS |
65 | docbook-dtds |
66 | sgml-common | |
67 | end | |
68 | ||
4cc6d616 MT |
69 | prerequires |
70 | docbook-dtds | |
71 | libxml2 | |
9b617772 | 72 | sgml-common |
4cc6d616 | 73 | end |
9b617772 SS |
74 | |
75 | script postin | |
76 | # Install catalog files. | |
77 | /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ | |
78 | "http://docbook.sourceforge.net/release/xsl/%{version}" \ | |
2a6da3c7 | 79 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog |
9b617772 SS |
80 | |
81 | /usr/bin/xmlcatalog --noout --add "rewriteURI" \ | |
82 | "http://docbook.sourceforge.net/release/xsl/%{version}" \ | |
2a6da3c7 | 83 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog |
9b617772 SS |
84 | |
85 | /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ | |
86 | "http://docbook.sourceforge.net/release/xsl/current" \ | |
2a6da3c7 | 87 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog |
9b617772 SS |
88 | |
89 | /usr/bin/xmlcatalog --noout --add "rewriteURI" \ | |
90 | "http://docbook.sourceforge.net/release/xsl/current" \ | |
2a6da3c7 SS |
91 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog |
92 | ||
93 | /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ | |
94 | "http://docbook.sourceforge.net/release/xsl-ns/current" \ | |
95 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog | |
96 | ||
97 | /usr/bin/xmlcatalog --noout --add "rewriteURI" \ | |
98 | "http://docbook.sourceforge.net/release/xsl-ns/current" \ | |
99 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog | |
9b617772 SS |
100 | end |
101 | ||
102 | script preun | |
103 | # Uninstall catalog files. | |
104 | /usr/bin/xmlcatalog --noout --del \ | |
2a6da3c7 | 105 | "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" /etc/xml/catalog |
9b617772 SS |
106 | end |
107 | end | |
108 | end |