]> git.pld-linux.org Git - packages/docbook-dtd30-sgml.git/blame - docbook-dtd30-sgml.spec
- raw RH version.
[packages/docbook-dtd30-sgml.git] / docbook-dtd30-sgml.spec
CommitLineData
a94d254a 1Name: docbook-dtd30-sgml
2Version: 1.0
3Release: 10
4Group: Applications/Text
5
6Summary: SGML document type definition for DocBook.
7
8License: Distributable
9URL: http://www.oasis-open.org/docbook/
10
11Provides: docbook-dtd-sgml
12Requires: sgml-common >= 0.5
13Requires(post,postun): sgml-common >= 0.5 fileutils
14
15BuildRoot: %{_tmppath}/%{name}-%{version}
16
17BuildArch: noarch
18Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
19Source1: %{name}-%{version}.Makefile
20Patch0: %{name}-%{version}.catalog.patch
21BuildRequires: unzip
22
23%description
24The DocBook Document Type Definition (DTD) describes the syntax of
25technical documentation texts (articles, books and manual pages).
26This syntax is SGML-compliant and is developed by the OASIS consortium.
27This is the version 3.0 of this DTD.
28
29
30%prep
31%setup -c -T
32unzip %{SOURCE0}
33if [ `id -u` -eq 0 ]; then
34 chown -R root.root .
35 chmod -R a+rX,g-w,o-w .
36fi
37cp %{SOURCE1} Makefile
38patch -b docbook.cat $RPM_SOURCE_DIR/%{name}-%{version}.catalog.patch
39
40%build
41
42
43%install
44DESTDIR=$RPM_BUILD_ROOT
45rm -rf $DESTDIR
46make install DESTDIR=$DESTDIR/usr/share/sgml/docbook/sgml-dtd-3.0
47
48
49%clean
50DESTDIR=$RPM_BUILD_ROOT
51rm -rf $DESTDIR
52
53
54%files
55%defattr (-,root,root)
56%doc *.txt
57/usr/share/sgml/docbook/sgml-dtd-3.0
58
59
60%post
61# Update the centralized catalog corresponding to this version of the DTD
62/usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null
63/usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
64
65# The following lines are for the case in which the style sheets were
66# installed after another DTD but before this DTD
67STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
68STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
69if [ "$STYLESHEETS" != "*" ]; then
70 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/openjade-1.3/catalog > /dev/null
71 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog > /dev/null
72fi
73
74# Update the link to the current version of the DTD
75ln -s -f /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/sgml-docbook.cat
76
77
78%postun
79# Update the centralized catalog corresponding to this version of the DTD
80/usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null
81/usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
82
83# The following lines are for the case in which the style sheets were
84# not uninstalled because there is still another DTD
85STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
86STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
87if [ "$STYLESHEETS" != "*" ]; then
88 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/openjade-1.3/catalog > /dev/null
89 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog > /dev/null
90fi
91
92# Update the link to the current version of the DTD
93if [ ! -e /etc/sgml/sgml-docbook-3.0.cat ]; then
94 rm -f /etc/sgml/sgml-docbook.cat
95 OTHERCAT=`ls /etc/sgml/sgml-docbook-?.?.cat 2> /dev/null | head --lines 1`
96 if [ -n "$OTHERCAT" ]; then ln -s $OTHERCAT /etc/sgml/sgml-docbook.cat; fi
97fi
98
99%changelog
100* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com>
101- Scripts require fileutils.
102- Make scripts quieter.
103
104* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
105- Don't play so many macro games.
106- Don't use 'rpm' in post scripts.
107- Make sure to own the sgml-dtd-3.0 directory.
108
109* Sun Jan 14 2001 Tim Waugh <twaugh@redhat.com>
110- Change requirement on /usr/bin/install-catalog to sgml-common.
111
112* Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com>
113- Change Copyright: to License:.
114- Remove Packager: line.
115
116* Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com>
117- Change group.
118- Use %%{_tmppath}.
119- rm before install.
120- openjade not jade.
121- Correct typo.
122- Build requires unzip.
123- Require install-catalog for post and postun.
124
125* Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com>
126- Based on Eric Bischoff's new-trials packages.
This page took 0.070002 seconds and 4 git commands to generate.