]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - docbook-dsssl/docbook-dsssl.nm
Change how we make packages "noarch"
[people/pmueller/ipfire-3.x.git] / docbook-dsssl / docbook-dsssl.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = docbook-dsssl
7 version = 1.79
8 release = 2
9
10 groups = Applications/Text
11 url = http://docbook.sourceforge.net/
12 license = GPLv2+
13 summary = The DocBook DSSSL Stylesheets package contains DSSSL stylesheets.
14
15 description
16 The DocBook DSSSL Stylesheets package contains DSSSL stylesheets. These
17 are used by OpenJade or other tools to transform SGML and XML DocBook files.
18 end
19
20 source_dl = http://prdownloads.sourceforge.net/docbook/
21
22 build
23 arches = noarch
24
25 requires
26 sgml-common
27 end
28
29 build = # empty
30
31 install
32 mkdir -pv %{BUILDROOT}/usr/bin %{BUILDROOT}/usr/share/man/man1
33 install -v -m755 bin/collateindex.pl %{BUILDROOT}/usr/bin
34 install -v -m644 bin/collateindex.pl.1 %{BUILDROOT}/usr/share/man/man1
35
36 install -v -d -m755 %{BUILDROOT}/usr/share/sgml/docbook/dsssl-stylesheets-%{version}
37 cp -v -R * %{BUILDROOT}/usr/share/sgml/docbook/dsssl-stylesheets-%{version}
38
39 # Remove empty conflicting file.
40 rm -rvf %{BUILDROOT}/etc/sgml/sgml-docbook.cat
41 end
42 end
43
44 packages
45 package %{name}
46 requires
47 docbook-dtds
48 sgml-common
49 end
50
51 prerequires
52 docbook-dtds
53 libxml2
54 sgml-common
55 end
56
57 script postin
58 # Install catalog files.
59 for centralized in /etc/sgml/*-docbook-*.cat; do
60 /usr/bin/xmlcatalog --sgml --noout --add ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
61 done
62 end
63
64 script preun
65 # Uninstall catalog files.
66 for centralized in /etc/sgml/*-docbook-*.cat; do
67 /usr/bin/xmlcatalog --remove ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
68 done
69 end
70 end
71 end