From 2da79a4c80332ce8609b7357721a13a97bc952a340240cf1f767d9c2354e172d Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 3 Dec 2019 09:39:08 +0000 Subject: [PATCH] Accepting request 752969 from home:StefanBruens:branches:devel:tools:scm - Depend on one of the DocBook stylesheets (4 or 5), prefer DocBook 4 for backwards compatibility. - Remove unnecessary docbook-xsl-stylesheets BuildRequires. OBS-URL: https://build.opensuse.org/request/show/752969 OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlto?expand=0&rev=34 --- xmlto.changes | 7 +++++++ xmlto.spec | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/xmlto.changes b/xmlto.changes index bc3d2af..bc98a3f 100644 --- a/xmlto.changes +++ b/xmlto.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 29 18:05:11 UTC 2019 - Stefan BrĂ¼ns + +- Depend on one of the DocBook stylesheets (4 or 5), prefer + DocBook 4 for backwards compatibility. +- Remove unnecessary docbook-xsl-stylesheets BuildRequires. + ------------------------------------------------------------------- Mon Mar 18 15:42:45 UTC 2019 - Dominique Leuenberger diff --git a/xmlto.spec b/xmlto.spec index 628d6af..a922a8e 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -28,15 +28,20 @@ Source10: README.SUSE Patch0: xmlto-nonvoid.patch Patch1: xmlto-xsltopts.patch Patch2: xmlto-codecleanup.patch -BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes BuildRequires: flex BuildRequires: libxslt-tools BuildRequires: sgml-skel # We rely entirely on the DocBook XSL stylesheets! +%if 0%{suse_version} >= 1500 +Requires: (docbook-xsl-stylesheets >= 1.56.0 or docbook5-xsl-stylesheets >= 1.56.0) +Recommends: docbook-xsl-stylesheets +%else Requires: docbook-xsl-stylesheets >= 1.56.0 -Requires: docbook_4 +%endif Requires: libxslt-tools +# Used for validation (xmllint) +Recommends: libxml2-tools # For full functionality, we need passivetex; but since most users are not happy with # getting texlive installed, we only suggest it. Suggests: texlive-xmltex >= 2007