# # rpm spec for norm walsh's excellent docbook xsl stylesheets # %define versmaj 1 %define versmin 69 %define versdot 0 %define xslvers %{versmaj}.%{versmin}.%{versdot} %define xsldir %{_datadir}/sgml/docbook/xsl-stylesheets-%{xslvers} %define xslurl http://docbook.sourceforge.net/release/xsl %define catalog %{_sysconfdir}/xml/catalog %define xmlcatalog /usr/bin/xmlcatalog # the Provides: header below provides compatibility with the Red # Hat xmlto package Summary: Norman Walsh's XSL stylesheets for DocBook XML Name: docbook-style-xsl Version: %{xslvers} Release: 1 Group: Applications/Text Provides: docbook-xsl = %{version} License: Distributable Packager: Paul Heinlein URL: http://docbook.sourceforge.net/projects/xsl/ Source: http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.69.0.tar.bz2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description These XSL stylesheets allow you to transform any DocBook XML document to other formats, such as HTML, FO, XHMTL, and most recently Eclipse help. They are highly customizable. %prep %setup -q -n docbook-xsl-%{version} %build %install [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} install -d %{buildroot}%{xsldir} tar cf - \ VERSION common eclipse extensions fo html htmlhelp images javahelp \ lib manpages params profiling slides template website xhtml | \ (cd %{buildroot}%{xsldir} && tar xf -) cd %{buildroot}%{_datadir}/sgml/docbook ln -sf xsl-stylesheets-%{xslvers} xsl-stylesheets %clean [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} %post # Update the centralized catalog if [ -x %{xmlcatalog} ]; then %{xmlcatalog} --noout --add "rewriteSystem" \ "%{xslurl}/%{version}" \ "file://%{xsldir}" %{catalog} %{xmlcatalog} --noout --add "rewriteURI" \ "%{xslurl}/%{version}" \ "file://%{xsldir}" %{catalog} %{xmlcatalog} --noout --add "rewriteSystem" \ "%{xslurl}/current" \ "file://%{xsldir}" %{catalog} %{xmlcatalog} --noout --add "rewriteURI" \ "%{xslurl}/current" \ "file://%{xsldir}" %{catalog} fi %postun # Tell the centralized catalog we're outta here if [ -x %{xmlcatalog} ]; then %{xmlcatalog} --noout --del "file://%{xsldir}" %{catalog} fi %files %defattr(-,root,root) %doc BUGS ChangeLog INSTALL README RELEASE* TODO WhatsNew doc docsrc %{xsldir} %{_datadir}/sgml/docbook/xsl-stylesheets %changelog * Thu Jul 21 2005 Paul Heinlein 1.69.0-1 - new upstream version, including experimental addition of slides and website stylesheets * Sat Mar 5 2005 Paul Heinlein 1.68.1-1 - new upstream version * Fri Dec 3 2004 Paul Heinlein 1.67.2-1 - new upstream version * Wed Nov 10 2004 Paul Heinlein 1.67.0-1 - new upstream version - no more tools directory; include INSTALL file * Sun Sep 19 2004 Paul Heinlein 1.66.1-1 - new upstream version * Mon Sep 13 2004 Paul Heinlein 1.66.0-1 - new upstream version * Sat Jun 12 2004 Paul Heinlein 1.65.1-2 - rebuilt * Thu Apr 6 2004 Paul Heinlein 1.65.1-1 - version bump * Thu Nov 13 2003 Paul Heinlein 1.62.4-1 - version bump * Thu Sep 4 2003 Paul Heinlein 1.62.0-1 - version 1.62.0 - added eclipse support * Fri Jul 25 2003 Paul Heinlein - version 1.61.3 - use tar instead of 'cp -a' for installation * Thu Mar 27 2003 Paul Heinlein - bumped to version 1.60.1 - include manpages stylesheets * Mon Sep 16 2002 Paul Heinlein - added changelog * Wed May 15 2002 Paul Heinlein - initial release, vers. 1.50.0 ### ### eof ###