]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - docbook-dsssl/docbook-dsssl.nm
Merge branch 'perl-Tk'
[people/arne_f/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
469e9856
SS
50 prerequires +=\
51 docbook-dtds \
52 libxml2 \
53 sgml-common
54
075b7114
SS
55 script postin
56 # Install catalog files.
57 for centralized in /etc/sgml/*-docbook-*.cat; do
469e9856 58 /usr/bin/xmlcatalog --sgml --noout --add ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
075b7114 59 done
075b7114
SS
60 end
61
62 script preun
63 # Uninstall catalog files.
64 for centralized in /etc/sgml/*-docbook-*.cat; do
469e9856 65 /usr/bin/xmlcatalog --remove ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
075b7114 66 done
075b7114
SS
67 end
68 end
69end