1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Application/Text
11 url = http://openjade.sourceforge.net/
13 summary = A DSSSL implementation.
16 OpenJade is an implementation of the ISO/IEC 10179:1996 standard DSSSL
17 (Document Style Semantics and Specification Language).
20 source_dl = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
29 configure_options += \
32 --datadir=/usr/share/sgml/openjade-%{version} \
33 --enable-splibdir=%{libdir}
36 # Create symlink for jade
37 ln -s openjade %{BUILDROOT}/usr/bin/jade
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}/
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
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
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
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
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
98 package %{name}-debuginfo