From 88986c68ba914b534be5639dfa68f1a87f4c2b103b29feccc2b1a5a73053c572 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 4 Jul 2021 09:56:52 +0000 Subject: [PATCH] - Fix package builds for Leap 15.2 and 15.3, python-xml dependency was missing. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=34 --- python-textX.changes | 5 +++++ python-textX.spec | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/python-textX.changes b/python-textX.changes index 25800d6..d0a28dc 100644 --- a/python-textX.changes +++ b/python-textX.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 4 09:56:22 UTC 2021 - Sebastian Wagner + +- Fix package builds for Leap 15.2 and 15.3, requires python-xml + ------------------------------------------------------------------- Sun Nov 1 17:56:21 UTC 2020 - Sebastian Wagner diff --git a/python-textX.spec b/python-textX.spec index f200c4e..97600a2 100644 --- a/python-textX.spec +++ b/python-textX.spec @@ -1,7 +1,7 @@ # # spec file for package python-textX # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,11 +29,17 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if 0%{?sle_version} == 150200 || 0%{?sle_version} == 150300 +BuildRequires: python2-xml +%endif Requires: python-Arpeggio >= 1.9.0 Requires: python-click >= 7.0 Requires: python-setuptools +%if "%{python_flavor}" == "python2" +Requires: python2-xml +%endif Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Obsoletes: %{name}-doc BuildArch: noarch # SECTION tests