]>
Commit | Line | Data |
---|---|---|
b0e47e81 SS |
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 | |
b12a6a5e | 8 | release = 3 |
b0e47e81 SS |
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} \ | |
b12a6a5e | 33 | --enable-splibdir=%{libdir} |
b0e47e81 SS |
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 | ||
c26b3292 SS |
56 | requires |
57 | docbook-dtds>=1.0-3 | |
58 | libxml2 | |
59 | opensp>=1.5.2-2 | |
60 | sgml-common | |
61 | end | |
62 | ||
b12a6a5e MT |
63 | prerequires |
64 | docbook-dtds >= 1.0-3 | |
65 | libxml2 | |
1f9bc2f0 | 66 | sgml-common |
b12a6a5e | 67 | end |
31e07973 | 68 | |
b0e47e81 SS |
69 | script postin |
70 | # Install catalog files on system. | |
71 | /usr/bin/install-catalog --add /etc/sgml/openjade-%{version}.soc \ | |
31e07973 SS |
72 | /usr/share/sgml/%{name}-%{version}/catalog >/dev/null 2>/dev/null |
73 | ||
c26b3292 SS |
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 | |
31e07973 | 78 | done |
b0e47e81 SS |
79 | end |
80 | ||
81 | script preun | |
82 | # Uninstall the catalog files. | |
83 | /usr/bin/install-catalog --remove /etc/sgml/%{name}-%{version}.soc \ | |
31e07973 SS |
84 | /usr/share/sgml/%{name}-%{version}/catalog >/dev/null 2>/dev/null |
85 | ||
86 | # Remove openjade catalog from docbook catalogs. | |
c26b3292 SS |
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 | |
31e07973 | 90 | done |
b0e47e81 SS |
91 | end |
92 | end | |
93 | ||
94 | package %{name}-devel | |
95 | template DEVEL | |
96 | end | |
1f9bc2f0 MT |
97 | |
98 | package %{name}-debuginfo | |
99 | template DEBUGINFO | |
100 | end | |
b0e47e81 | 101 | end |