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