Name: docbook-dtd42-xml
Version: 1.0
Release: 3
+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
+BuildRequires: unzip
+BuildRequires: rpm-build >= 4.0.2-94
BuildRequires: /usr/bin/xmlcatalog
PreReq: libxml2
PreReq: sgml-common
-Requires(post,preun): /usr/bin/install-catalog
-Requires(post,preun): /usr/bin/xmlcatalog
+Requires(post,preun): /usr/bin/install-catalog
+Requires(post,preun): /usr/bin/xmlcatalog
Requires: libxml2-progs >= 2.4.17-6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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).
+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 do
-tworzenia dokumentacji technicznej. Stosowany jest do pisania podrêczników
-systemowych, instrukcji jak i wielu innych ciekawych rzeczy.
+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
+rzeczy.
%prep
%setup -q -c
install -d $RPM_BUILD_ROOT%{dtd_path}
install *.{xml,dtd,mod} $RPM_BUILD_ROOT%{dtd_path}
-install *.ent $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xml-dtd-%{ver} || :
+install *.ent $RPM_BUILD_ROOT%{dtd_path} || :
cp -a ent $RPM_BUILD_ROOT%{dtd_path}
-%sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{ver}
+%docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{ver}
cat docbook.cat >> $RPM_BUILD_ROOT%{sgmlcat_file}
%sgmlcat_add /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
fi
-if ! grep -q %{dtd_path}/catalog.xml /etc/xml/catalog ; then
- %xmlcat_add %{dtd_path}/catalog.xml
+if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
+ %xmlcat_add %{xmlcat_file}
fi
if [ "$1" = "0" ] ; then
%sgmlcat_del /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
- %xmlcat_del %{dtd_path}/catalog.xml
+ %xmlcat_del %{xmlcat_file}
fi