SHA256
1
0
forked from pool/xmlto
xmlto/xmlto.spec

87 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package xmlto (Version 0.0.23)
#
# Copyright (c) 2009 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 http://bugs.opensuse.org/
#
# 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: 1
License: GPLv2+
Group: Productivity/Publishing/XML
Url: http://cyberelk.net/tim/xmlto/
Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2
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
%description
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.
%prep
%setup -q
%patch
%patch1 -p1
# %patch2 -p1
%patch3 -p0
%patch4
cp %{S:10} README.SuSE
rm -f xmlif/xmlif.c
%build
%configure
make
%check
make check
%install
rm -rf %{buildroot}
%makeinstall
[ -d %{buildroot}%{_datadir}/xmlto/xsl ] || \
mkdir %{buildroot}%{_datadir}/xmlto/xsl
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README.SuSE
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/xmlto
%changelog