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