From 8862b0899b7c6a6fc40de7a2fb1be29f9e4d13a9 Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Wed, 14 Jan 2009 13:10:07 +0000 Subject: [PATCH] Initial Fedora release --- .cvsignore | 1 + docbook5-style-xsl.spec | 91 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 93 insertions(+) create mode 100644 docbook5-style-xsl.spec diff --git a/.cvsignore b/.cvsignore index e69de29..2e74cfe 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +docbook-xsl-ns-1.74.0.tar.bz2 diff --git a/docbook5-style-xsl.spec b/docbook5-style-xsl.spec new file mode 100644 index 0000000..0825052 --- /dev/null +++ b/docbook5-style-xsl.spec @@ -0,0 +1,91 @@ +Name: docbook5-style-xsl +Version: 1.74.0 +Release: 1%{?dist} +Group: Applications/Text + +Summary: Norman Walsh's XSL stylesheets for DocBook 5.X + +License: Freely redistributable without restriction +URL: http://docbook.sourceforge.net/projects/xsl/ + +Provides: docbook-xsl-ns = %{version} +# xml-common was using /usr/share/xml until 0.6.3-8. +Requires: xml-common >= 0.6.3-8 +# libxml2 required because of usage of /usr/bin/xmlcatalog +Requires(post): libxml2 >= 2.4.8 +Requires(postun): libxml2 >= 2.4.8 +Conflicts: passivetex < 1.21 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildArch: noarch +Source0: http://downloads.sourceforge.net/docbook/docbook-xsl-ns-%{version}.tar.bz2 + +%description +These XSL namespace aware stylesheets allow you to transform any +DocBook 5 document to other formats, such as HTML, manpages, FO, +XHMTL and other formats. They are highly customizable. For more +information see W3C page about XSL. + +%prep +%setup -q -n docbook-xsl-ns-%{version} +#remove .gitignore files +rm -rf $(find -name '.gitignore' -type f) +#make ruby scripts executable +chmod +x epub/bin/dbtoepub +chmod +x epub/bin/spec/epub*.rb + +%build + +%install +DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT +mkdir -p $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version +cp -a [[:lower:]]* $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/ +ln -s xsl-ns-stylesheets-%{version} \ + $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets + +# Don't ship the extensions. +rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions +# Don't ship install shell script. +rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh + +%clean +DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT + +%files +%defattr (-,root,root,-) +%doc BUGS +%doc README COPYING +%doc TODO NEWS +%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version} +%{_datadir}/sgml/docbook/xsl-ns-stylesheets + +%post +CATALOG=%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl-ns/current" \ + "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl-ns/current" \ + "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG + + +%postun +# remove entries only on removal of package +if [ "$1" = 0 ]; then + CATALOG=%{_sysconfdir}/xml/catalog + %{_bindir}/xmlcatalog --noout --del \ + "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG +fi + +%changelog +* Mon Nov 10 2008 Ondrej Vasik 1.74.0-1 +- Initial Fedora release diff --git a/sources b/sources index e69de29..8fef089 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +42f5f41ff5822c57242d9413e7f98aef docbook-xsl-ns-1.74.0.tar.bz2