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: https://docbook.org/xml/%{version}/docbook-%{version}.zip
9 # Source0-md5: 2411c19ed4fb141f3fa3d389fae40736
10 Patch0: %{name}-catalog.patch
11 URL: https://docbook.org/
12 BuildRequires: libxml2-progs
13 BuildRequires: rpm-build >= 4.0.2-94
15 Requires(post,preun): /usr/bin/xmlcatalog
16 Requires: libxml2-progs >= 2.4.17-6
17 Requires: sgml-common >= 0.5
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define dtd_path %{_datadir}/sgml/docbook/xml-dtd-%{version}
22 %define xmlcat_file %{dtd_path}/catalog.xml
25 DocBook is an XML/SGML vocabulary particularly well suited to books
26 and papers about computer hardware and software (though it is by no
27 means limited to only these applications).
29 This package contains DocBook 5.0 XML DTD.
31 %description -l pl.UTF-8
32 DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
33 do tworzenia dokumentacji technicznej. Stosowany jest do pisania
34 podręczników systemowych, instrukcji jak i wielu innych ciekawych
37 Ten pakiet zawiera wersję DocBook 5.0 XML.
40 %setup -q -n docbook-5.0
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{dtd_path}
47 cp -p catalog.xml $RPM_BUILD_ROOT%{dtd_path}
48 cp -a dtd rng sch xsd $RPM_BUILD_ROOT%{dtd_path}
51 rm -rf $RPM_BUILD_ROOT
54 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
55 %xmlcat_add %{xmlcat_file}
60 if [ "$1" = "0" ] ; then
61 %xmlcat_del %{xmlcat_file}
65 %defattr(644,root,root,755)