xmlto/xmlto.spec
OBS User mrdocs 1ed60fd441 Accepting request 236825 from home:scarabeus_iv
- 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.

OBS-URL: https://build.opensuse.org/request/show/236825
OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlto?expand=0&rev=24
2014-06-11 21:05:54 +00:00

101 lines
2.8 KiB
RPMSpec

#
# 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: 0
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
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