]> git.pld-linux.org Git - packages/docbook-slides.git/commitdiff
- new, catalog files from fedora
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 8 Jan 2014 19:18:39 +0000 (20:18 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 8 Jan 2014 19:18:39 +0000 (20:18 +0100)
docbook-slides.cat [new file with mode: 0644]
docbook-slides.spec [new file with mode: 0644]
docbook-slides.xml [new file with mode: 0644]

diff --git a/docbook-slides.cat b/docbook-slides.cat
new file mode 100644 (file)
index 0000000..0e51562
--- /dev/null
@@ -0,0 +1,14 @@
+-- BEGIN OASIS TR 9401:1997 catalog for docbook-slides V3.4.0 --
+OVERRIDE YES
+PUBLIC "-//Norman Walsh//DTD Slides XML V3.4.0//EN"         "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides.dtd"
+PUBLIC "-//Norman Walsh//DTD Slides Custom XML V3.4.0//EN"  "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides-custom.dtd"
+PUBLIC "-//Norman Walsh//DTD Slides Full XML V3.4.0//EN"    "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides-full.dtd"
+
+SYSTEM "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides.dtd"              "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides.dtd"
+SYSTEM "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides-custom.dtd"       "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides-custom.dtd"      
+SYSTEM "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides-full.dtd"         "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides-full.dtd"
+
+SYSTEM "http://docbook.sourceforge.net/release/slides/current/schema/dtd/slides.dtd"            "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides.dtd"
+SYSTEM "http://docbook.sourceforge.net/release/slides/current/schema/dtd/slides-custom.dtd"     "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides-custom.dtd"
+SYSTEM "http://docbook.sourceforge.net/release/slides/current/schema/dtd/slides-full.dtd"       "/usr/share/xml/docbook/slides/3.4.0/schema/dtd/slides-full.dtd"
+-- END OASIS TR 9401:1997 catalog for docbook-slides V3.4.0 --
diff --git a/docbook-slides.spec b/docbook-slides.spec
new file mode 100644 (file)
index 0000000..31c9abf
--- /dev/null
@@ -0,0 +1,71 @@
+Summary:       DocBook Slides document type and stylesheets
+Name:          docbook-slides
+Version:       3.4.0
+Release:       1
+License:       MIT
+Group:         Applications/Publishing/XML
+Source0:       http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.gz
+# Source0-md5: 26e2083077454d7140f2b82ae3d66123
+Source1:       %{name}.xml
+Source2:       %{name}.cat
+URL:           http://sourceforge.net/projects/docbook
+Requires(post,preun):  /usr/bin/install-catalog
+Requires(post,preun):  /usr/bin/xmlcatalog
+Requires:      libxml2-progs >= 2.4.17-6
+Requires:      sgml-common
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                dtd_path        %{_datadir}/xml/docbook/slides/%{version}
+%define                xmlcat_file     %{dtd_path}/catalog.xml
+%define                sgmlcat_file    %{dtd_path}/catalog
+
+%description
+DocBook Slides provides customization layers of the both the
+Simplified and the full DocBook XML DTD, as well as the DocBook XSL
+Stylesheets. This package contains the XML document type definition
+and stylesheets for processing DocBook Slides XML. The slides doctype
+and stylesheets are for generating presentations, primarily in HTML.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{dtd_path}
+
+cp -a browser graphics schema xsl VERSION $RPM_BUILD_ROOT%{dtd_path}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{xmlcat_file}
+install %{SOURCE2} $RPM_BUILD_ROOT%{sgmlcat_file}
+
+%docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{version}
+
+%xmlcat_add_rewrite \
+       http://www.oasis-open.org/docbook/xml/%{version} \
+       file://%{dtd_path} \
+       $RPM_BUILD_ROOT%{xmlcat_file}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if ! grep -q /etc/sgml/slides.cat /etc/sgml/catalog ; then
+       %sgmlcat_add /etc/sgml/slides.cat %{sgmlcat_file}
+
+fi
+if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
+       %xmlcat_add %{xmlcat_file}
+
+fi
+
+%preun
+if [ "$1" = "0" ] ; then
+       %sgmlcat_del /etc/sgml/slides.cat %{sgmlcat_file}
+       %xmlcat_del %{xmlcat_file}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc BUGS NEWS README RELEASE-NOTES.txt TODO doc
+%{dtd_path}
diff --git a/docbook-slides.xml b/docbook-slides.xml
new file mode 100644 (file)
index 0000000..a80b28a
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
+"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+
+<!-- XML package catalog for docbook-slides -->
+
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
+
+  <delegatePublic publicIdStartString="-//Norman Walsh//DTD Slides" 
+    catalog="file:///usr/share/xml/docbook/slides/3.4.0/catalog.xml"/>
+
+  <delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/slides/3.4.0/" 
+    catalog="file:///usr/share/xml/docbook/slides/3.4.0/catalog.xml"/>
+
+  <delegateURI uriStartString="http://docbook.sourceforge.net/release/slides/3.4.0/" 
+    catalog="file:///usr/share/xml/docbook/slides/3.4.0/catalog.xml"/>
+
+  <delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/slides/current/" 
+    catalog="file:///usr/share/xml/docbook/slides/3.4.0/catalog.xml"/>
+
+  <delegateURI uriStartString="http://docbook.sourceforge.net/release/slides/current/" 
+    catalog="file:///usr/share/xml/docbook/slides/3.4.0/catalog.xml"/>
+
+</catalog>
This page took 0.084708 seconds and 4 git commands to generate.