new subpackage xmlto-tex to prevent passivetex requirements for whole

package(#454341)
This commit is contained in:
Ondrej Vasik 2008-07-14 13:36:17 +00:00
parent 631d8a0eea
commit 862b4ab8b2

View File

@ -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 <ovasik@redhat.com> - 0.0.21-2
- xmlto-tex subpackage to prevent requirements for
passivetex/tex for all backends(#454341)
* Mon Jun 20 2008 Ondrej Vasik <ovasik@redhat.com> - 0.0.21-1
- new version 0.0.21