diff --git a/xmlto.spec b/xmlto.spec index bc875e7..40ef366 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -1,9 +1,7 @@ -%{!?tetex:%define tetex 1} - -Summary: A tool for converting XML files to various formats. +Summary: A tool for converting XML files to various formats Name: xmlto Version: 0.0.21 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: Applications/System #Older versions up to xmlto-0.0.20 @@ -15,19 +13,13 @@ Source0: http://svn.fedorahosted.org/svn/%{name}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: docbook-xsl >= 1.56.0 -BuildRequires: libxslt +BuildRequires: /usr/bin/xsltproc BuildRequires: util-linux, flex # We rely heavily on the DocBook XSL stylesheets! Requires: docbook-xsl >= 1.56.0 - Requires: text-www-browser - -# For full functionality, we need passivetex. -%if %{tetex} -Requires: passivetex >= 1.11 -%endif -Requires: libxslt +Requires: /usr/bin/xsltproc Requires: docbook-dtds Requires: util-linux, flex @@ -35,6 +27,19 @@ Requires: util-linux, flex This is a package for converting XML files to various formats using XSL stylesheets. +%package tex +Group: Applications/System +License: GPLv2 +Summary: A set of xmlto backends with TeX requirements +# For full functionality, we need passivetex. +Requires: passivetex >= 1.11 +# We require main package +Requires: xmlto + +%description tex +This subpackage contains xmlto backend scripts which do require +PassiveTeX/TeX for functionality. + %prep %setup -q @@ -42,6 +47,8 @@ stylesheets. touch doc/xmlto.xml doc/xmlif.xml %configure make + +%check make check %install @@ -56,8 +63,21 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/* %{_mandir}/*/* %{_datadir}/xmlto +%exclude %{_datadir}/xmlto/format/fo/dvi +%exclude %{_datadir}/xmlto/format/fo/ps +%exclude %{_datadir}/xmlto/format/fo/pdf + +%files tex +%defattr(-,root,root) +%{_datadir}/xmlto/format/fo/dvi +%{_datadir}/xmlto/format/fo/ps +%{_datadir}/xmlto/format/fo/pdf %changelog +* Fri Jul 11 2008 Ondrej Vasik - 0.0.21-2 +- xmlto-tex subpackage to prevent requirements for + passivetex/tex for all backends(#454341) + * Mon Jun 20 2008 Ondrej Vasik - 0.0.21-1 - new version 0.0.21