File xmlto.spec of Package xmlto

# spec file for package xmlto (Version 0.0.23)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           xmlto
BuildRequires:  docbook-xsl-stylesheets flex libxslt sgml-skel
Summary:        Tool for Converting XML Files to Various Formats
Version:        0.0.23
Release:        2
License:        GPLv2+
Group:          Productivity/Publishing/XML
Source10:       %{name}-README.SuSE
Patch:          xmlto-nonvoid.patch
Patch1:         xmlto-0.0.18-overflow.patch
# is in
# Patch2:         xmlto-find-cmd.diff
Patch3:         xmlto-0.0.23-xsltopts.diff
Patch4:         xmlto-codecleanup.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# We rely entirely on the DocBook XSL stylesheets!
Requires:       docbook-xsl-stylesheets >= 1.56.0
# For full functionality, we need passivetex.
Requires:       texlive-xmltex >= 2007
Requires:       libxslt
Requires:       libxml2
Requires:       docbook_4

This is a package for converting XML files to various formats using XSL
stylesheets.  As a processor it depends on xsltproc and as a formatter
for print output it makes use of passivetex.

%setup -q
%patch1 -p1
# %patch2 -p1
%patch3 -p0
cp %{S:10} README.SuSE
rm -f xmlif/xmlif.c

make %{?_smp_mflags}

make check

rm -rf %{buildroot}
[ -d %{buildroot}%{_datadir}/xmlto/xsl ] || \
  mkdir %{buildroot}%{_datadir}/xmlto/xsl

rm -rf %{buildroot}


openSUSE Build Service is sponsored by