]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - docbook-dsssl/docbook-dsssl.nm
Merge remote-tracking branch 'stevee/ppp-update'
[people/ms/ipfire-3.x.git] / docbook-dsssl / docbook-dsssl.nm
CommitLineData
075b7114
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = docbook-dsssl
7version = 1.79
469e9856
SS
8release = 2
9arch = noarch
075b7114
SS
10
11groups = Applications/Text
12url = http://docbook.sourceforge.net/
13license = GPLv2+
14summary = The DocBook DSSSL Stylesheets package contains DSSSL stylesheets.
15
16description
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.
19end
20
469e9856 21source_dl = http://prdownloads.sourceforge.net/docbook/
075b7114
SS
22
23build
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
075b7114
SS
38 # Remove empty conflicting file.
39 rm -rvf %{BUILDROOT}/etc/sgml/sgml-docbook.cat
40 end
41end
42
43packages
44 package %{name}
45 requires
469e9856 46 docbook-dtds
075b7114
SS
47 sgml-common
48 end
49
85271ff7
MT
50 prerequires
51 docbook-dtds
52 libxml2
469e9856 53 sgml-common
85271ff7 54 end
469e9856 55
075b7114
SS
56 script postin
57 # Install catalog files.
58 for centralized in /etc/sgml/*-docbook-*.cat; do
469e9856 59 /usr/bin/xmlcatalog --sgml --noout --add ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
075b7114 60 done
075b7114
SS
61 end
62
63 script preun
64 # Uninstall catalog files.
65 for centralized in /etc/sgml/*-docbook-*.cat; do
469e9856 66 /usr/bin/xmlcatalog --remove ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
075b7114 67 done
075b7114
SS
68 end
69 end
70end