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