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