1 Summary: DocBook Slides document type and stylesheets
6 Group: Applications/Publishing/XML
7 Source0: http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.gz
8 # Source0-md5: 26e2083077454d7140f2b82ae3d66123
11 URL: http://sourceforge.net/projects/docbook
12 Requires(post,preun): /usr/bin/install-catalog
13 Requires(post,preun): /usr/bin/xmlcatalog
14 Requires: libxml2-progs >= 2.4.17-6
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define dtd_path %{_datadir}/sgml/docbook/slides/%{version}
20 %define xmlcat_file %{dtd_path}/catalog.xml
21 %define sgmlcat_file %{dtd_path}/catalog
24 DocBook Slides provides customization layers of the both the
25 Simplified and the full DocBook XML DTD, as well as the DocBook XSL
26 Stylesheets. This package contains the XML document type definition
27 and stylesheets for processing DocBook Slides XML. The slides doctype
28 and stylesheets are for generating presentations, primarily in HTML.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{dtd_path}
37 cp -a browser graphics schema xsl VERSION $RPM_BUILD_ROOT%{dtd_path}
39 install %{SOURCE1} $RPM_BUILD_ROOT%{xmlcat_file}
40 install %{SOURCE2} $RPM_BUILD_ROOT%{sgmlcat_file}
42 %docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{version}
45 http://www.oasis-open.org/docbook/xml/%{version} \
47 $RPM_BUILD_ROOT%{xmlcat_file}
50 rm -rf $RPM_BUILD_ROOT
53 if ! grep -q /etc/sgml/slides.cat /etc/sgml/catalog ; then
54 %sgmlcat_add /etc/sgml/slides.cat %{sgmlcat_file}
57 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
58 %xmlcat_add %{xmlcat_file}
63 if [ "$1" = "0" ] ; then
64 %sgmlcat_del /etc/sgml/slides.cat %{sgmlcat_file}
65 %xmlcat_del %{xmlcat_file}
69 %defattr(644,root,root,755)
70 %doc BUGS NEWS README RELEASE-NOTES.txt TODO doc
71 %dir %{_datadir}/sgml/docbook/slides