]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - openjade/openjade.nm
sip: update to 4.18.1
[people/amarx/ipfire-3.x.git] / openjade / openjade.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = openjade
7 version = 1.3.2
8 release = 3
9
10 groups = Application/Text
11 url = http://openjade.sourceforge.net/
12 license = MIT
13 summary = A DSSSL implementation.
14
15 description
16 OpenJade is an implementation of the ISO/IEC 10179:1996 standard DSSSL
17 (Document Style Semantics and Specification Language).
18 end
19
20 source_dl = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
21
22 build
23 requires
24 gcc-c++
25 opensp-devel
26 perl
27 end
28
29 configure_options += \
30 --disable-static \
31 --disable-rpath \
32 --datadir=/usr/share/sgml/openjade-%{version} \
33 --enable-splibdir=%{libdir}
34
35 install_cmds
36 # Create symlink for jade
37 ln -s openjade %{BUILDROOT}/usr/bin/jade
38
39 # Install jade catalog
40 cp %{DIR_APP}/dsssl/catalog %{BUILDROOT}/usr/share/sgml/openjade-%{version}/
41 cp %{DIR_APP}/dsssl/{dsssl,style-sheet,fot}.dtd %{BUILDROOT}/usr/share/sgml/openjade-%{version}/
42
43 # Add unversioned/versioned catalog and symlink
44 mkdir -p %{BUILDROOT}/etc/sgml
45 touch %{BUILDROOT}/etc/sgml/openjade-%{version}.soc
46 ln -s openjade-%{version}.soc openjade.soc
47 end
48 end
49
50 packages
51 package %{name}
52 provides
53 jade
54 end
55
56 requires
57 docbook-dtds>=1.0-3
58 libxml2
59 opensp>=1.5.2-2
60 sgml-common
61 end
62
63 prerequires
64 docbook-dtds >= 1.0-3
65 libxml2
66 sgml-common
67 end
68
69 script postin
70 # Install catalog files on system.
71 /usr/bin/install-catalog --add /etc/sgml/openjade-%{version}.soc \
72 /usr/share/sgml/%{name}-%{version}/catalog >/dev/null 2>/dev/null
73
74 # Add openjade catalog to docbook catalogs.
75 for catalog in /etc/sgml/*-docbook-*.cat; do
76 /usr/bin/xmlcatalog --sgml --noout --add ${catalog} \
77 /usr/share/sgml/openjade-%{version}/catalog /dev/null 2>/dev/null
78 done
79 end
80
81 script preun
82 # Uninstall the catalog files.
83 /usr/bin/install-catalog --remove /etc/sgml/%{name}-%{version}.soc \
84 /usr/share/sgml/%{name}-%{version}/catalog >/dev/null 2>/dev/null
85
86 # Remove openjade catalog from docbook catalogs.
87 for catalog in /etc/sgml/*-docbook-*.cat; do
88 /usr/bin/xmlcatalog --sgml --noout --remove ${catalog} \
89 /usr/share/sgml/openjade-%{version}/catalog > /dev/null 2>/dev/null
90 done
91 end
92 end
93
94 package %{name}-devel
95 template DEVEL
96 end
97
98 package %{name}-debuginfo
99 template DEBUGINFO
100 end
101 end