]> git.pld-linux.org Git - packages/docbook-dtd30-sgml.git/blob - docbook-dtd30-sgml.spec
014200dfec657dfdba85a3e2d804ffed5c2ddd23
[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:        15
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 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
17 Requires:       fileutils
18 BuildArch:      noarch
19 Provides:       docbook-dtd-sgml
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
28 %description -l pl
29 DocBook DTD jest zestawem definicji dokumentów przeznaczonych do
30 tworzenia dokumentacji programistycznej. Ten pakiet zawiera wersjê 3.0
31 DTD.
32
33 %prep
34 %setup -q -c
35 chmod -R a+rX,g-w,o-w .
36 cp %{SOURCE1} Makefile
37 %patch0 -p0
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install DESTDIR=$RPM_BUILD_ROOT
43
44 TMPFILE=`mktemp $(pwd)/tmpXXXXXX` || exit 1
45 for ent in `find $RPM_BUILD_ROOT -type f` ; do
46         cp $ent $TMPFILE
47         sgml-iso-ent-fix < $TMPFILE > $ent
48 done
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc *.txt
56 %{_datadir}/sgml/docbook/sgml-dtd-3.0
57
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
61 fi
62
63 %post
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
66 fi
67
68 %postun
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
71 fi
This page took 0.031454 seconds and 2 git commands to generate.