# # spec file for package xmlto # # Copyright (c) 2014 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/ # Name: xmlto Version: 0.0.26 Release: 4.10 Summary: Tool for Converting XML Files to Various Formats License: GPL-2.0+ Group: Productivity/Publishing/XML Url: https://fedorahosted.org/xmlto/ Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2 Source10: %{name}-README.SUSE Patch0: xmlto-nonvoid.patch Patch1: xmlto-overflow.patch Patch3: xmlto-xsltopts.patch Patch4: xmlto-codecleanup.patch Patch5: xmlto-lynx-empty-file.patch BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes BuildRequires: flex BuildRequires: sgml-skel # We rely entirely on the DocBook XSL stylesheets! Requires: docbook-xsl-stylesheets >= 1.56.0 Requires: docbook_4 # For full functionality, we need passivetex. Recommends: texlive-xmltex >= 2007 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1210 BuildRequires: libxslt-tools Requires: libxslt-tools %else %if 0%{?suse_version} > 0 BuildRequires: libxslt Requires: libxslt %else BuildRequires: xsltproc Requires: xsltproc %endif %endif %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 %patch0 %patch1 %patch3 -p1 %patch4 %patch5 cp %{SOURCE10} README.SUSE rm -f xmlif/xmlif.c # make sure the buildrequires pulled in xsltproc test -x %{_bindir}/xsltproc || { echo "ERROR: buildrequires didn't install xsltproc" >&2 exit 1 } %build %configure BASH=/bin/bash make %{?_smp_mflags} %check make check %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} install -d %{buildroot}%{_datadir}/xmlto/xsl %fdupes '%{buildroot}%{_datadir}/xmlto' %files %defattr(-,root,root) %doc README.SUSE %doc COPYING %doc AUTHORS README ChangeLog FAQ THANKS NEWS %{_bindir}/xmlto %{_bindir}/xmlif %doc %{_mandir}/man1/xmlto.1* %doc %{_mandir}/man1/xmlif.1* %{_datadir}/xmlto %changelog * Sun Oct 19 2014 Led - fix shebang of xmlto * Wed Jun 11 2014 tchvatal@suse.com - Version bump to 0.0.26: - --searchpath option no longer produces warning about local builtin used outside the function (debian #652974) - fix build with automake 1.13+ - fix noextensions option recognition - handle used css list in epub format - Rename SUSE readme to xmlto-README.SUSE to fix capitalization - Rebase xmlto-xsltopts.patch to apply to latest release. * Thu Dec 6 2012 pascal.bleser@opensuse.org - fixed xsltproc buildrequires and requires for other versions - more consistent spec file * Wed Dec 5 2012 pascal.bleser@opensuse.org - add explicit requires for libxslt-tools or libxslt1 in order to fix "have choice" in several repos * Wed Apr 18 2012 chris@computersalat.de - update to 0.0.25 - 2011-11-28 Ondrej Vasik * configure.in: detect grep location * xmlto.in: use (fop/fop1).extensions parameter based on real fop version - 2011-07-14 Ondrej Vasik * format/docbook/epub: initial experimental support for docbook to epub conversion * configure.in: detect zip location * xmlto.in: provide detected zip location to epub convertor - 2011-07-07 Ondrej Vasik * README: Improve the readme file, create online manual pages on project wiki * xmlto.in: use backend extensions by default, provide - -noextensions to disable this * doc/xmlto.xml: mention --noextensions option in documentation - 2011-03-03 Ondrej Vasik * format/{docbook,xhtml}/txt: show the text-web-browser converting command in verbose mode - 2010-07-13 Ondrej Vasik * format/fo/{ps,dvi,pdf}: workaround passivetex limitation for chapters titles starting with L (rhbz#526273) - rebase patches (xmlto-overflow.patch, xmlto-xsltopts.patch). * Wed Oct 19 2011 idonmez@suse.com - Add xmlto-lynx-empty-file.patch to fix problems with lynx on empty files, upstream commit 57 * Wed Jun 8 2011 ke@suse.de - Install missing %%doc files such as COPYING; bnc#695072. * Wed May 18 2011 giecrilj@stegny.2a.pl - Recommends texlive (bnc#688032) * Sat Dec 19 2009 jengelh@medozas.de - Enable parallel build * Wed Dec 16 2009 ke@suse.de - Update to version 0.0.23; reported by Andreas Schwab. - Drop obsolete patch. - Rebuild old patches. * Tue Apr 28 2009 pth@suse.de - Fix comiler warnings. - BuildRequire flex and remove xmlif.c to get it regenerated. * Tue Sep 9 2008 ke@suse.de - Improve README.SUSE; bnc#67190. * Mon Mar 17 2008 werner@suse.de - Use texlive-xmltex instead of passivetex * Fri Dec 14 2007 ke@suse.de - Require libxslt again. * Wed Dec 12 2007 ke@suse.de - Cleanup spec file. - Apply xmlto-0.0.18-xsltopts.diff to provide a command line switch for specifying the HTML output encoding; see # 197484 (thanks to Thomas Schraitle). * Mon Aug 28 2006 ke@suse.de - Fix find argument sequence; reported by Marcus Rueckert [#201749]. * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Thu Sep 29 2005 dmueller@suse.de - add norootforbuild * Wed Jul 6 2005 ke@suse.de - xmlto-0.0.18-overflow.patch: Include more *.h to avoid potential buffer overflows. * Thu Mar 3 2005 ke@suse.de - Add README.SuSE to address issues producing PDF output; [# 67190]. * Wed Oct 13 2004 ke@suse.de - Add libgpg-error and libgcrypt to neededforbuild. * Wed May 19 2004 ro@suse.de - added return to non-void function (main) * Tue Feb 24 2004 ke@suse.de - New package: version 0.0.18. Proposed by Richard Bos [# 34918].