2007-01-15 23:43:04 +00:00
|
|
|
#
|
2011-06-08 14:26:13 +00:00
|
|
|
# spec file for package xmlto
|
2007-01-15 23:43:04 +00:00
|
|
|
#
|
2014-06-11 21:05:54 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:43:04 +00:00
|
|
|
#
|
2008-09-12 16:00:42 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:43:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-12-05 23:20:50 +00:00
|
|
|
|
2007-01-15 23:43:04 +00:00
|
|
|
Name: xmlto
|
2014-06-11 21:05:54 +00:00
|
|
|
Version: 0.0.26
|
|
|
|
Release: 0
|
2011-09-05 13:21:14 +00:00
|
|
|
Summary: Tool for Converting XML Files to Various Formats
|
2012-06-12 13:37:46 +00:00
|
|
|
License: GPL-2.0+
|
2007-01-15 23:43:04 +00:00
|
|
|
Group: Productivity/Publishing/XML
|
2012-06-12 13:37:46 +00:00
|
|
|
Url: https://fedorahosted.org/xmlto/
|
2009-12-18 12:34:07 +00:00
|
|
|
Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2
|
2014-06-11 21:05:54 +00:00
|
|
|
Source10: %{name}-README.SUSE
|
2011-09-05 13:21:14 +00:00
|
|
|
Patch0: xmlto-nonvoid.patch
|
2012-06-12 13:37:46 +00:00
|
|
|
Patch1: xmlto-overflow.patch
|
|
|
|
Patch3: xmlto-xsltopts.patch
|
2009-04-30 22:15:33 +00:00
|
|
|
Patch4: xmlto-codecleanup.patch
|
2011-10-19 18:31:54 +00:00
|
|
|
Patch5: xmlto-lynx-empty-file.patch
|
2011-09-05 13:21:14 +00:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2014-06-11 21:05:54 +00:00
|
|
|
BuildRequires: fdupes
|
2011-09-05 13:21:14 +00:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: sgml-skel
|
2007-01-15 23:43:04 +00:00
|
|
|
# We rely entirely on the DocBook XSL stylesheets!
|
|
|
|
Requires: docbook-xsl-stylesheets >= 1.56.0
|
|
|
|
Requires: docbook_4
|
2014-06-11 21:05:54 +00:00
|
|
|
# For full functionality, we need passivetex.
|
|
|
|
Recommends: texlive-xmltex >= 2007
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-05 23:20:50 +00:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: libxslt-tools
|
2014-06-11 21:05:54 +00:00
|
|
|
Requires: libxslt-tools
|
2012-12-06 07:29:12 +00:00
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} > 0
|
|
|
|
BuildRequires: libxslt
|
2014-06-11 21:05:54 +00:00
|
|
|
Requires: libxslt
|
2012-12-06 07:29:12 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: xsltproc
|
2011-09-05 13:21:14 +00:00
|
|
|
Requires: xsltproc
|
2012-12-05 23:20:50 +00:00
|
|
|
%endif
|
2012-12-06 07:29:12 +00:00
|
|
|
%endif
|
2007-01-15 23:43:04 +00:00
|
|
|
|
|
|
|
%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
|
2011-09-05 13:21:14 +00:00
|
|
|
%patch0
|
2012-06-12 13:37:46 +00:00
|
|
|
%patch1
|
2014-06-11 21:05:54 +00:00
|
|
|
%patch3 -p1
|
2009-04-30 22:15:33 +00:00
|
|
|
%patch4
|
2011-10-19 18:31:54 +00:00
|
|
|
%patch5
|
2014-06-11 21:05:54 +00:00
|
|
|
cp %{SOURCE10} README.SUSE
|
2009-04-30 22:15:33 +00:00
|
|
|
rm -f xmlif/xmlif.c
|
2007-01-15 23:43:04 +00:00
|
|
|
|
2012-12-06 07:29:12 +00:00
|
|
|
# make sure the buildrequires pulled in xsltproc
|
2014-06-11 21:05:54 +00:00
|
|
|
test -x %{_bindir}/xsltproc || {
|
2012-12-06 07:29:12 +00:00
|
|
|
echo "ERROR: buildrequires didn't install xsltproc" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2007-01-15 23:43:04 +00:00
|
|
|
%build
|
|
|
|
%configure
|
2010-01-18 12:49:20 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-12-12 17:20:00 +00:00
|
|
|
|
|
|
|
%check
|
2014-06-11 21:05:54 +00:00
|
|
|
make check %{?_smp_mflags}
|
2007-01-15 23:43:04 +00:00
|
|
|
|
|
|
|
%install
|
2014-06-11 21:05:54 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
install -d %{buildroot}%{_datadir}/xmlto/xsl
|
|
|
|
%fdupes '%{buildroot}%{_datadir}/xmlto'
|
2007-01-15 23:43:04 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-06-11 21:05:54 +00:00
|
|
|
%doc README.SUSE
|
2011-06-08 07:45:50 +00:00
|
|
|
%doc COPYING
|
|
|
|
%doc AUTHORS README ChangeLog FAQ THANKS NEWS
|
2012-12-06 07:29:12 +00:00
|
|
|
%{_bindir}/xmlto
|
|
|
|
%{_bindir}/xmlif
|
|
|
|
%doc %{_mandir}/man1/xmlto.1*
|
|
|
|
%doc %{_mandir}/man1/xmlif.1*
|
2007-01-15 23:43:04 +00:00
|
|
|
%{_datadir}/xmlto
|
|
|
|
|
2007-12-12 17:20:00 +00:00
|
|
|
%changelog
|