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 Name: xmlto
Version: 0.0.21 Version: 0.0.21
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2 License: GPLv2
Group: Applications/System Group: Applications/System
#Older versions up to xmlto-0.0.20 #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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: docbook-xsl >= 1.56.0 BuildRequires: docbook-xsl >= 1.56.0
BuildRequires: libxslt BuildRequires: /usr/bin/xsltproc
BuildRequires: util-linux, flex BuildRequires: util-linux, flex
# We rely heavily on the DocBook XSL stylesheets! # We rely heavily on the DocBook XSL stylesheets!
Requires: docbook-xsl >= 1.56.0 Requires: docbook-xsl >= 1.56.0
Requires: text-www-browser Requires: text-www-browser
Requires: /usr/bin/xsltproc
# For full functionality, we need passivetex.
%if %{tetex}
Requires: passivetex >= 1.11
%endif
Requires: libxslt
Requires: docbook-dtds Requires: docbook-dtds
Requires: util-linux, flex 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 This is a package for converting XML files to various formats using XSL
stylesheets. 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 %prep
%setup -q %setup -q
@ -42,6 +47,8 @@ stylesheets.
touch doc/xmlto.xml doc/xmlif.xml touch doc/xmlto.xml doc/xmlif.xml
%configure %configure
make make
%check
make check make check
%install %install
@ -56,8 +63,21 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/* %{_bindir}/*
%{_mandir}/*/* %{_mandir}/*/*
%{_datadir}/xmlto %{_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 %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 * Mon Jun 20 2008 Ondrej Vasik <ovasik@redhat.com> - 0.0.21-1
- new version 0.0.21 - new version 0.0.21