- cosmetics or minor fixes where necessary
[packages/docbook-dtd30-sgml.git] / docbook-dtd30-sgml.spec
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
4 Version:        1.0
5 Release:        16
6 License:        distributable
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/
12 BuildRequires:  unzip
13 Requires(post,postun):  sgml-common >= 0.5
14 Requires:       sgml-common >= 0.5
15 Provides:       docbook-dtd-sgml
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The DocBook Document Type Definition (DTD) describes the syntax of
21 technical documentation texts (articles, books and manual pages). This
22 syntax is SGML-compliant and is developed by the OASIS consortium.
23 This is the version 3.0 of this DTD.
24
25 %description -l pl
26 DocBook DTD jest zestawem definicji dokumentów przeznaczonych do
27 tworzenia dokumentacji programistycznej. Ten pakiet zawiera wersjê 3.0
28 DTD.
29
30 %prep
31 %setup -q -c
32 chmod -R a+rX,g-w,o-w .
33 cp %{SOURCE1} Makefile
34 %patch0 -p0
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38
39 %{__make} install DESTDIR=$RPM_BUILD_ROOT
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %triggerpostun -- docbook-dtd30-sgml < 1.0-15
45 if ! grep -q /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/catalog ; then
46         /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
47 fi
48
49 %post
50 if ! grep -q /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/catalog ; then
51         /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
52 fi
53
54 %postun
55 if [ "$1" = "0" ] ; then
56         /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc *.txt
62 %{_datadir}/sgml/docbook/sgml-dtd-3.0
This page took 0.098927 seconds and 3 git commands to generate.