- sorted BRs
Changed files:
docbook-dtd42-xml.spec -> 1.16
#
# todo:
# - use XML ISO entities from sgml-common
#
#
# 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: XML/SGML DocBook DTD 4.2
Summary(pl): XML/SGML DocBook DTD 4.2
%define ver 4.2
URL: http://www.oasis-open.org/docbook/
Source0: http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
# Source0-md5: 73fe50dfe74ca631c1602f558ed8961f
URL: http://www.oasis-open.org/docbook/
Source0: http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
# Source0-md5: 73fe50dfe74ca631c1602f558ed8961f
-BuildRequires: unzip
-BuildRequires: rpm-build >= 4.0.2-94
BuildRequires: libxml2-progs
BuildRequires: libxml2-progs
+BuildRequires: rpm-build >= 4.0.2-94
+BuildRequires: unzip
PreReq: libxml2
PreReq: sgml-common
Requires(post,preun): /usr/bin/install-catalog
PreReq: libxml2
PreReq: sgml-common
Requires(post,preun): /usr/bin/install-catalog
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
%description
DocBook is an XML/SGML vocabulary particularly well suited to books
%post
if ! grep -q /etc/sgml/xml-docbook-%{ver}.cat /etc/sgml/catalog ; then
%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
fi
if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
- %xmlcat_add %{xmlcat_file}
+ %xmlcat_add %{xmlcat_file}
fi
%preun
if [ "$1" = "0" ] ; then
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}