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 Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
9 Source1: %{name}-Makefile
10 Patch0: %{name}-catalog.patch
11 URL: http://www.oasis-open.org/docbook/
13 BuildRequires: sgml-common >= 0.5-9
14 Requires: sgml-common >= 0.5-9
15 Requires(post): sgml-common >= 0.5
16 Requires(postun): sgml-common >= 0.5
19 Provides: docbook-dtd-sgml
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The DocBook Document Type Definition (DTD) describes the syntax of
24 technical documentation texts (articles, books and manual pages). This
25 syntax is SGML-compliant and is developed by the OASIS consortium.
26 This is the version 3.0 of this DTD.
29 DocBook DTD jest zestawem definicji dokumentów przeznaczonych do
30 tworzenia dokumentacji programistycznej. Ten pakiet zawiera wersjê 3.0
35 chmod -R a+rX,g-w,o-w .
36 cp %{SOURCE1} Makefile
40 rm -rf $RPM_BUILD_ROOT
42 %{__make} install DESTDIR=$RPM_BUILD_ROOT
44 TMPFILE=`mktemp $(pwd)/tmpXXXXXX` || exit 1
45 for ent in `find $RPM_BUILD_ROOT -type f` ; do
47 sgml-iso-ent-fix < $TMPFILE > $ent
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{_datadir}/sgml/docbook/sgml-dtd-3.0
58 %triggerpostun -- docbook-dtd30-sgml < 1.0-15
59 if ! grep -q /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/catalog ; then
60 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
64 if ! grep -q /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/catalog ; then
65 /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
69 if [ "$1" = "0" ] ; then
70 /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null