-
#
# todo:
# - use XML ISO entities from sgml-common
#
-
-Summary: XML/SGML DocBook DTD 4.2
-Summary(pl): XML/SGML DocBook DTD 4.2
%define ver 4.2
+Summary: DocBook XML 4.2 DTD
+Summary(pl.UTF-8): DTD dla dokumentów DocBook XML 4.2
Name: docbook-dtd42-xml
Version: 1.0
-Release: 3
+Release: 6
Epoch: 1
-Vendor: OASIS
License: Free
Group: Applications/Publishing/XML
-URL: http://www.oasis-open.org/docbook/
Source0: http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
-BuildRequires: unzip
+# Source0-md5: 73fe50dfe74ca631c1602f558ed8961f
+URL: http://www.oasis-open.org/docbook/
+BuildRequires: libxml2-progs
BuildRequires: rpm-build >= 4.0.2-94
-BuildRequires: /usr/bin/xmlcatalog
-PreReq: libxml2
-PreReq: sgml-common
+BuildRequires: unzip
Requires(post,preun): /usr/bin/install-catalog
Requires(post,preun): /usr/bin/xmlcatalog
Requires: libxml2-progs >= 2.4.17-6
+Requires: sgml-common
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define dtd_path %{_datadir}/sgml/docbook/xml-dtd-%{ver}
-%define xmlcat_file %{dtd_path}/catalog.xml
-%define sgmlcat_file %{dtd_path}/catalog
+%define dtd_path %{_datadir}/sgml/docbook/xml-dtd-%{ver}
+%define xmlcat_file %{dtd_path}/catalog.xml
+%define sgmlcat_file %{dtd_path}/catalog
%description
DocBook is an XML/SGML vocabulary particularly well suited to books
and papers about computer hardware and software (though it is by no
means limited to only these applications).
-%description -l pl
-DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
+%description -l pl.UTF-8
+DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
do tworzenia dokumentacji technicznej. Stosowany jest do pisania
-podrêczników systemowych, instrukcji jak i wielu innych ciekawych
+podręczników systemowych, instrukcji jak i wielu innych ciekawych
rzeczy.
%prep
%post
if ! grep -q /etc/sgml/xml-docbook-%{ver}.cat /etc/sgml/catalog ; then
- %sgmlcat_add /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
+ %sgmlcat_add /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
fi
if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
- %xmlcat_add %{xmlcat_file}
+ %xmlcat_add %{xmlcat_file}
fi
%preun
if [ "$1" = "0" ] ; then
- %sgmlcat_del /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
-
- %xmlcat_del %{xmlcat_file}
-
+ %sgmlcat_del /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
+ %xmlcat_del %{xmlcat_file}
fi
%files