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