Fridrich Strba 2023-05-28 19:16:24 +00:00 committed by Git OBS Bridge
parent b293a7fe74
commit fc20942c84
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun May 28 19:15:09 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- 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 <fstrba@suse.com>

View File

@ -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