]> git.ipfire.org Git - ipfire-3.x.git/blame - docbook-dsssl/docbook-dsssl.nm
json-c: Update to version 0.17-20230812
[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 8release = 2
075b7114
SS
9
10groups = Applications/Text
e14a82a1 11url = https://docbook.sourceforge.net/
075b7114
SS
12license = GPLv2+
13summary = The DocBook DSSSL Stylesheets package contains DSSSL stylesheets.
14
15description
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.
18end
19
e14a82a1 20source_dl = https://prdownloads.sourceforge.net/docbook/
075b7114
SS
21
22build
5cd803df
MT
23 arches = noarch
24
075b7114
SS
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
075b7114
SS
39 # Remove empty conflicting file.
40 rm -rvf %{BUILDROOT}/etc/sgml/sgml-docbook.cat
41 end
42end
43
44packages
45 package %{name}
46 requires
469e9856 47 docbook-dtds
075b7114
SS
48 sgml-common
49 end
50
85271ff7
MT
51 prerequires
52 docbook-dtds
53 libxml2
469e9856 54 sgml-common
85271ff7 55 end
469e9856 56
075b7114
SS
57 script postin
58 # Install catalog files.
59 for centralized in /etc/sgml/*-docbook-*.cat; do
469e9856 60 /usr/bin/xmlcatalog --sgml --noout --add ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
075b7114 61 done
075b7114
SS
62 end
63
64 script preun
65 # Uninstall catalog files.
66 for centralized in /etc/sgml/*-docbook-*.cat; do
469e9856 67 /usr/bin/xmlcatalog --remove ${centralized} /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
075b7114 68 done
075b7114
SS
69 end
70 end
71end