]> git.pld-linux.org Git - packages/docbook-slides.git/blob - docbook-slides.spec
c0c9fc62938a66e17c870c36984ecee4a98291dd
[packages/docbook-slides.git] / docbook-slides.spec
1 Summary:        DocBook Slides document type and stylesheets
2 Name:           docbook-slides
3 Version:        3.4.0
4 Release:        1
5 License:        MIT
6 Group:          Applications/Publishing/XML
7 Source0:        http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.gz
8 # Source0-md5:  26e2083077454d7140f2b82ae3d66123
9 Source1:        %{name}.xml
10 Source2:        %{name}.cat
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
15 Requires:       sgml-common
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         dtd_path        %{_datadir}/sgml/docbook/slides/%{version}
20 %define         xmlcat_file     %{dtd_path}/catalog.xml
21 %define         sgmlcat_file    %{dtd_path}/catalog
22
23 %description
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.
29
30 %prep
31 %setup -q
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{dtd_path}
36
37 cp -a browser graphics schema xsl VERSION $RPM_BUILD_ROOT%{dtd_path}
38
39 install %{SOURCE1} $RPM_BUILD_ROOT%{xmlcat_file}
40 install %{SOURCE2} $RPM_BUILD_ROOT%{sgmlcat_file}
41
42 %docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{version}
43
44 %xmlcat_add_rewrite \
45         http://www.oasis-open.org/docbook/xml/%{version} \
46         file://%{dtd_path} \
47         $RPM_BUILD_ROOT%{xmlcat_file}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 if ! grep -q /etc/sgml/slides.cat /etc/sgml/catalog ; then
54         %sgmlcat_add /etc/sgml/slides.cat %{sgmlcat_file}
55
56 fi
57 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
58         %xmlcat_add %{xmlcat_file}
59
60 fi
61
62 %preun
63 if [ "$1" = "0" ] ; then
64         %sgmlcat_del /etc/sgml/slides.cat %{sgmlcat_file}
65         %xmlcat_del %{xmlcat_file}
66 fi
67
68 %files
69 %defattr(644,root,root,755)
70 %doc BUGS NEWS README RELEASE-NOTES.txt TODO doc
71 %dir %{_datadir}/sgml/docbook/slides
72 %{dtd_path}
This page took 0.08745 seconds and 2 git commands to generate.