diff --git a/.cvsignore b/.cvsignore index e69de29..e7e8e9b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +docbook-xsl-1.48.tar.gz diff --git a/docbook-style-xsl.spec b/docbook-style-xsl.spec new file mode 100644 index 0000000..1deed92 --- /dev/null +++ b/docbook-style-xsl.spec @@ -0,0 +1,126 @@ +Name: docbook-style-xsl +Version: 1.48 +Release: 4 +Group: Applications/Text + +Summary: Norman Walsh's XSL stylesheets for DocBook XML. + +License: Distributable +URL: http://docbook.sourceforge.net/projects/xsl/ + +Provides: docbook-xsl = %{version} +PreReq: docbook-dtd-xml +# xml-common was using /usr/share/xml until 0.6.3-8. +PreReq: xml-common >= 0.6.3-8 +# PassiveTeX before 1.11 can't handle the new master-* stuff. +Conflicts: passivetex < 1.11 + +BuildRoot: %{_tmppath}/%{name}-%{version} + +BuildArch: noarch +Source0: http://prdownloads.sourceforge.net/docbook/docbook-xsl-%{version}.tar.gz +Source1: %{name}-%{version}.Makefile + + +%description +These XSL stylesheets allow you to transform any DocBook XML document to +other formats, such as HTML, FO, and XHMTL. They are highly customizable. + +%prep +%setup -q -n docbook-xsl-%{version} +cp %{SOURCE1} Makefile + + +%build + + +%install +DESTDIR=$RPM_BUILD_ROOT +rm -rf $DESTDIR +make install BINDIR=$DESTDIR/usr/bin DESTDIR=$DESTDIR/usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release} +ln -s xsl-stylesheets-%{version}-%{release} \ + $DESTDIR/usr/share/sgml/docbook/xsl-stylesheets + + +%clean +DESTDIR=$RPM_BUILD_ROOT +rm -rf $DESTDIR + + +%files +%defattr (-,root,root) +%doc BUGS +%doc ChangeLog +%doc README +%doc TODO +%doc WhatsNew +%doc doc +%doc docsrc +/usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release} +/usr/share/sgml/docbook/xsl-stylesheets + + +%post +CATALOG=/etc/xml/catalog +/usr/bin/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/%{version}" \ + "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release}" $CATALOG +/usr/bin/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/%{version}" \ + "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release}" $CATALOG +/usr/bin/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release}" $CATALOG +/usr/bin/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release}" $CATALOG + + +%postun +CATALOG=/etc/xml/catalog +/usr/bin/xmlcatalog --noout --del \ + "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}-%{release}" $CATALOG + + +%changelog +* Fri Feb 1 2002 Tim Waugh 1.48-4 +- Put URIs instead of pathnames in the XML catalog. + +* Thu Jan 17 2002 Tim Waugh 1.48-3 +- Back to /usr/share/sgml. + +* Wed Jan 09 2002 Tim Powers 1.48-2 +- automated rebuild + +* Mon Jan 7 2002 Tim Waugh 1.48-1 +- 1.48. + +* Sat Dec 8 2001 Tim Waugh 1.47-2 +- Conflict with PassiveTeX before 1.11. + +* Tue Oct 16 2001 Tim Waugh 1.47-1 +- 1.47-experimental. + +* Tue Oct 9 2001 Tim Waugh 1.45-2 +- Fix unversioned symlink. + +* Mon Oct 8 2001 Tim Waugh 1.45-1 +- XML Catalog entries. +- Move files to /usr/share/xml. + +* Mon Oct 1 2001 Tim Waugh 1.45-0.1 +- 1.45. +- Built for Red Hat Linux. + +* Tue Jun 26 2001 Chris Runge +- 1.40 + +* Fri Jun 09 2001 Chris Runge +- added extensions and additional doc +- bin added to doc; the Perl files are for Win32 Perl and so need some + conversion first + +* Fri Jun 08 2001 Chris Runge +- Initial RPM (based on docbook-style-dsssl RPM) +- note: no catalog right now (I don't know how to do it; and not sure why + it is necessary) diff --git a/sources b/sources index e69de29..46fd735 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1fe072b5679eb21fd2cf9619648d8f06 docbook-xsl-1.48.tar.gz