]>
Commit | Line | Data |
---|---|---|
7b11e028 | 1 | |
2 | # | |
3 | # todo: | |
4 | # - use XML ISO entities from sgml-common | |
5 | # | |
6 | ||
7 | Summary: XML/SGML DocBook DTD 4.2 | |
8 | Summary(pl): XML/SGML DocBook DTD 4.2 | |
99caf354 | 9 | %define ver 4.2 |
10 | Name: docbook-dtd42-xml | |
7b11e028 | 11 | Version: 1.0 |
99caf354 | 12 | Release: 1 |
13 | Vendor: OASIS | |
14 | License: Free | |
15 | Group: Applications/Publishing/XML | |
16 | URL: http://www.oasis-open.org/docbook/ | |
7b11e028 | 17 | Source0: http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip |
18 | BuildRequires: unzip | |
19 | Requires(post,preun): /usr/bin/xmlcatalog | |
20 | Requires: libxml2-progs >= 2.4.17-6 | |
99caf354 | 21 | BuildArch: noarch |
22 | BuildRoot: %{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 | 38 | DocBook is an XML/SGML vocabulary particularly well suited to books and papers |
39 | about computer hardware and software (though it is by no means limited to only | |
40 | these applications). | |
99caf354 | 41 | |
42 | %description -l pl | |
7b11e028 | 43 |