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
9 URL: http://sourceforge.net/projects/docbook
10 Requires(post,preun): /usr/bin/install-catalog
11 Requires(post,preun): /usr/bin/xmlcatalog
12 Requires: libxml2-progs >= 2.4.17-6
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dtd_path %{_datadir}/sgml/docbook/slides/%{version}
18 %define xmlcat_file %{dtd_path}/catalog.xml
19 %define sgmlcat_file %{dtd_path}/catalog
22 DocBook Slides provides customization layers of the both the
23 Simplified and the full DocBook XML DTD, as well as the DocBook XSL
24 Stylesheets. This package contains the XML document type definition
25 and stylesheets for processing DocBook Slides XML. The slides doctype
26 and stylesheets are for generating presentations, primarily in HTML.
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{dtd_path}
35 cp -a browser graphics schema xsl VERSION $RPM_BUILD_ROOT%{dtd_path}
37 install catalog.xml $RPM_BUILD_ROOT%{xmlcat_file}
38 install catalog $RPM_BUILD_ROOT%{sgmlcat_file}
40 %docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{version}
43 http://www.oasis-open.org/docbook/xml/%{version} \
45 $RPM_BUILD_ROOT%{xmlcat_file}
48 rm -rf $RPM_BUILD_ROOT
51 if ! grep -q /etc/sgml/slides.cat /etc/sgml/catalog ; then
52 %sgmlcat_add /etc/sgml/slides.cat %{sgmlcat_file}
55 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
56 %xmlcat_add %{xmlcat_file}
61 if [ "$1" = "0" ] ; then
62 %sgmlcat_del /etc/sgml/slides.cat %{sgmlcat_file}
63 %xmlcat_del %{xmlcat_file}
67 %defattr(644,root,root,755)
68 %doc BUGS NEWS README RELEASE-NOTES.txt TODO doc
69 %dir %{_datadir}/sgml/docbook/slides