]> git.pld-linux.org Git - packages/docbook-dtd42-xml.git/blame - docbook-dtd42-xml.spec
- if macros go to macros.sgml or something, we will think about sgmlcat_fix
[packages/docbook-dtd42-xml.git] / docbook-dtd42-xml.spec
CommitLineData
7b11e028 1
2#
3# todo:
4# - use XML ISO entities from sgml-common
5#
6
7Summary: XML/SGML DocBook DTD 4.2
8Summary(pl): XML/SGML DocBook DTD 4.2
99caf354 9%define ver 4.2
10Name: docbook-dtd42-xml
7b11e028 11Version: 1.0
99caf354 12Release: 1
13Vendor: OASIS
14License: Free
15Group: Applications/Publishing/XML
16URL: http://www.oasis-open.org/docbook/
7b11e028 17Source0: http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
18BuildRequires: unzip
19Requires(post,preun): /usr/bin/xmlcatalog
20Requires: libxml2-progs >= 2.4.17-6
99caf354 21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
7b11e028 24%define dtd_path %{_datadir}/sgml/docbook/xml-dtd-%{ver}
25%define xmlcat_file %{dtd_path}/catalog.xml
26%define sgmlcat_file %{dtd_path}/catalog
27
28#
29# I would put following macros into /usr/lib/rpm/macros.sgml.
30#
31%define xmlcat_add() /usr/bin/xmlcatalog --noout --add nextCatalog "" %1 /etc/xml/catalog
32%define xmlcat_del() /usr/bin/xmlcatalog --noout --del %1 /etc/xml/catalog
33%define xmlcat_add_rewrite /usr/bin/xmlcatalog --noout --add rewriteSystem
34%define sgmlcat_add() /usr/bin/install-catalog --add %1 %2 > /dev/null
35%define sgmlcat_del() /usr/bin/install-catalog --remove %1 %2 > /dev/null
36
99caf354 37%description
7b11e028 38DocBook is an XML/SGML vocabulary particularly well suited to books and papers
39about computer hardware and software (though it is by no means limited to only
40these applications).
99caf354 41
42%description -l pl
7b11e028 43