1 Summary: XML DocBook DTD 5.0
2 Summary(pl.UTF-8): XML DocBook DTD 5.0
3 Name: docbook-dtd50-xml
7 Group: Applications/Publishing/XML
8 Source0: http://docbook.org/xml/%{version}/docbook-%{version}.zip
9 # Source0-md5: 2411c19ed4fb141f3fa3d389fae40736
10 URL: http://docbook.org/
11 BuildRequires: libxml2-progs
12 BuildRequires: rpm-build >= 4.0.2-94
14 Requires(post,preun): /usr/bin/xmlcatalog
15 Requires: libxml2-progs >= 2.4.17-6
16 Requires: sgml-common >= 0.5
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define dtd_path %{_datadir}/sgml/docbook/xml-dtd-%{version}
21 %define xmlcat_file %{dtd_path}/catalog.xml
24 DocBook is an XML/SGML vocabulary particularly well suited to books
25 and papers about computer hardware and software (though it is by no
26 means limited to only these applications).
28 This package contains DocBook 5.0 XML DTD.
30 %description -l pl.UTF-8
31 DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
32 do tworzenia dokumentacji technicznej. Stosowany jest do pisania
33 podręczników systemowych, instrukcji jak i wielu innych ciekawych
36 Ten pakiet zawiera wersję DocBook 5.0 XML.
39 %setup -q -n docbook-5.0
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{dtd_path}
46 cp -p catalog.xml $RPM_BUILD_ROOT%{dtd_path}
47 cp -a dtd rng sch xsd $RPM_BUILD_ROOT%{dtd_path}
51 http://docbook.org/xml/%{version} \
53 $RPM_BUILD_ROOT%{xmlcat_file}
57 rm -rf $RPM_BUILD_ROOT
60 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
61 %xmlcat_add %{xmlcat_file}
66 if [ "$1" = "0" ] ; then
67 %xmlcat_del %{xmlcat_file}
71 %defattr(644,root,root,755)