]> git.pld-linux.org Git - packages/docbook-dtd45-xml.git/blob - docbook-dtd45-xml.spec
- mention DocBook version in descriptions
[packages/docbook-dtd45-xml.git] / docbook-dtd45-xml.spec
1 #
2 # todo:
3 # - use XML ISO entities from sgml-common
4 #
5 Summary:        XML/SGML DocBook DTD 4.5
6 Summary(pl.UTF-8):      XML/SGML DocBook DTD 4.5
7 %define ver     4.5
8 Name:           docbook-dtd45-xml
9 Version:        1.0
10 Release:        1
11 Vendor:         OASIS
12 License:        Free
13 Group:          Applications/Publishing/XML
14 Source0:        http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
15 # Source0-md5:  03083e288e87a7e829e437358da7ef9e
16 URL:            http://www.oasis-open.org/docbook/
17 BuildRequires:  libxml2-progs
18 BuildRequires:  rpm-build >= 4.0.2-94
19 BuildRequires:  unzip
20 Requires(post,preun):   /usr/bin/install-catalog
21 Requires(post,preun):   /usr/bin/xmlcatalog
22 Requires:       libxml2-progs >= 2.4.17-6
23 Requires:       sgml-common
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         dtd_path                %{_datadir}/sgml/docbook/xml-dtd-%{ver}
28 %define         xmlcat_file             %{dtd_path}/catalog.xml
29 %define         sgmlcat_file    %{dtd_path}/catalog
30
31 %description
32 DocBook is an XML/SGML vocabulary particularly well suited to books
33 and papers about computer hardware and software (though it is by no
34 means limited to only these applications).
35
36 This package contains DocBook 4.5 XML DTD.
37
38 %description -l pl.UTF-8
39 DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
40 do tworzenia dokumentacji technicznej. Stosowany jest do pisania
41 podręczników systemowych, instrukcji jak i wielu innych ciekawych
42 rzeczy.
43
44 Ten pakiet zawiera wersję DocBook 4.5 XML.
45
46 %prep
47 %setup -q -c
48 chmod -R a+rX *
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{dtd_path}
53
54 install *.{xml,dtd,mod} $RPM_BUILD_ROOT%{dtd_path}
55 install *.ent $RPM_BUILD_ROOT%{dtd_path} || :
56 cp -a ent $RPM_BUILD_ROOT%{dtd_path}
57
58 %docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{ver}
59
60 cat docbook.cat >> $RPM_BUILD_ROOT%{sgmlcat_file}
61
62 %xmlcat_add_rewrite \
63         http://www.oasis-open.org/docbook/xml/%{ver} \
64         file://%{dtd_path} \
65         $RPM_BUILD_ROOT%{xmlcat_file}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post
71 if ! grep -q /etc/sgml/xml-docbook-%{ver}.cat /etc/sgml/catalog ; then
72         %sgmlcat_add /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
73
74 fi
75 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
76         %xmlcat_add %{xmlcat_file}
77
78 fi
79
80 %preun
81 if [ "$1" = "0" ] ; then
82         %sgmlcat_del /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
83         %xmlcat_del %{xmlcat_file}
84 fi
85
86 %files
87 %defattr(644,root,root,755)
88 %doc README ChangeLog
89 %{dtd_path}
This page took 0.074459 seconds and 3 git commands to generate.