]> git.pld-linux.org Git - packages/docbook-slides.git/blame - docbook-slides.spec
- new, catalog files from fedora
[packages/docbook-slides.git] / docbook-slides.spec
CommitLineData
8554fb90
JR
1Summary: DocBook Slides document type and stylesheets
2Name: docbook-slides
3Version: 3.4.0
4Release: 1
5License: MIT
6Group: Applications/Publishing/XML
7Source0: http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.gz
8# Source0-md5: 26e2083077454d7140f2b82ae3d66123
9Source1: %{name}.xml
10Source2: %{name}.cat
11URL: http://sourceforge.net/projects/docbook
12Requires(post,preun): /usr/bin/install-catalog
13Requires(post,preun): /usr/bin/xmlcatalog
14Requires: libxml2-progs >= 2.4.17-6
15Requires: sgml-common
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define dtd_path %{_datadir}/xml/docbook/slides/%{version}
20%define xmlcat_file %{dtd_path}/catalog.xml
21%define sgmlcat_file %{dtd_path}/catalog
22
23%description
24DocBook Slides provides customization layers of the both the
25Simplified and the full DocBook XML DTD, as well as the DocBook XSL
26Stylesheets. This package contains the XML document type definition
27and stylesheets for processing DocBook Slides XML. The slides doctype
28and stylesheets are for generating presentations, primarily in HTML.
29
30%prep
31%setup -q
32
33%install
34rm -rf $RPM_BUILD_ROOT
35install -d $RPM_BUILD_ROOT%{dtd_path}
36
37cp -a browser graphics schema xsl VERSION $RPM_BUILD_ROOT%{dtd_path}
38
39install %{SOURCE1} $RPM_BUILD_ROOT%{xmlcat_file}
40install %{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
50rm -rf $RPM_BUILD_ROOT
51
52%post
53if ! grep -q /etc/sgml/slides.cat /etc/sgml/catalog ; then
54 %sgmlcat_add /etc/sgml/slides.cat %{sgmlcat_file}
55
56fi
57if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
58 %xmlcat_add %{xmlcat_file}
59
60fi
61
62%preun
63if [ "$1" = "0" ] ; then
64 %sgmlcat_del /etc/sgml/slides.cat %{sgmlcat_file}
65 %xmlcat_del %{xmlcat_file}
66fi
67
68%files
69%defattr(644,root,root,755)
70%doc BUGS NEWS README RELEASE-NOTES.txt TODO doc
71%{dtd_path}
This page took 0.127371 seconds and 4 git commands to generate.