1 Summary: SGML document type definition for DocBook 3.0
2 Summary(pl): DTD dla dokumentów DocBook 3.0
3 Name: docbook-dtd30-sgml
7 Group: Applications/Text
8 Group(de): Applikationen/Text
9 Group(pl): Aplikacje/Tekst
10 Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
11 Source1: %{name}-Makefile
12 Patch0: %{name}-catalog.patch
13 URL: http://www.oasis-open.org/docbook/
15 Requires: sgml-common >= 0.5
16 Requires(post): sgml-common >= 0.5
17 Requires(postun): sgml-common >= 0.5
20 Provides: docbook-dtd-sgml
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The DocBook Document Type Definition (DTD) describes the syntax of
25 technical documentation texts (articles, books and manual pages). This
26 syntax is SGML-compliant and is developed by the OASIS consortium.
27 This is the version 3.0 of this DTD.
30 DocBook DTD jest zestawem definicji dokumentów przeznaczonych do
31 tworzenia dokumentacji programistycznej. Ten pakiet zawiera wersjê
37 chmod -R a+rX,g-w,o-w .
38 cp %{SOURCE1} Makefile
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{_datadir}/sgml/docbook/sgml-dtd-3.0
57 # Update the centralized catalog corresponding to this version of the DTD
58 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null
59 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
61 # The following lines are for the case in which the style sheets were
62 # installed after another DTD but before this DTD
63 STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
64 STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
65 if [ "$STYLESHEETS" != "*" ]; then
66 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/openjade-1.3/catalog > /dev/null
67 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog > /dev/null
70 # Update the link to the current version of the DTD
71 ln -sf /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/sgml-docbook.cat
74 # Update the centralized catalog corresponding to this version of the DTD
75 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null
76 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
78 # The following lines are for the case in which the style sheets were
79 # not uninstalled because there is still another DTD
80 STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
81 STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
82 if [ "$STYLESHEETS" != "*" ]; then
83 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/openjade-1.3/catalog > /dev/null
84 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog > /dev/null
87 # Update the link to the current version of the DTD
88 if [ ! -e /etc/sgml/sgml-docbook-3.0.cat ]; then
89 rm -f /etc/sgml/sgml-docbook.cat
90 OTHERCAT=`ls /etc/sgml/sgml-docbook-?.?.cat 2> /dev/null | head --lines 1`
91 if [ -n "$OTHERCAT" ]; then ln -s $OTHERCAT /etc/sgml/sgml-docbook.cat; fi