diff --git a/javapackages-tools.changes b/javapackages-tools.changes index d9ca2a6..713f36c 100644 --- a/javapackages-tools.changes +++ b/javapackages-tools.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun May 28 19:15:09 UTC 2023 - Fridrich Strba + +- Enable the tests also for older distributions +- Require python3 for distributions that don't use versioned + modules, since module xml is not in python3-base + ------------------------------------------------------------------- Wed Nov 9 08:50:08 UTC 2022 - Fridrich Strba diff --git a/javapackages-tools.spec b/javapackages-tools.spec index ee2f21b..703a499 100644 --- a/javapackages-tools.spec +++ b/javapackages-tools.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -63,9 +63,7 @@ Obsoletes: %{name}-doc Obsoletes: jpackage-utils < %{version} %if %{with python} BuildRequires: %{python_module lxml} -%if 0%{?suse_version} > 1320 BuildRequires: %{python_module pytest} -%endif BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch @@ -119,6 +117,7 @@ packaging in Linux distributions %package -n python3-javapackages Summary: Module for handling various files for Java packaging Group: Development/Languages/Java +Requires: python3 Requires: python3-lxml Obsoletes: python-javapackages < %{version}-%{release} Provides: python-javapackages = %{version}-%{release} @@ -210,7 +209,6 @@ rm -rf %{buildroot}%{_datadir}/fedora-review/ %fdupes %{buildroot}/%{_prefix} -%if 0%{?suse_version} > 1320 %check # reference: ./check, but we don't want to check coverage and don't need old nose ( @@ -228,7 +226,6 @@ pushd ./test %pytest popd %endif -%endif %if !%{with python} %files -f files-tools