diff --git a/python-pytest-localserver.changes b/python-pytest-localserver.changes index aa1f425..c0b825c 100644 --- a/python-pytest-localserver.changes +++ b/python-pytest-localserver.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 12:51:11 UTC 2025 - Bernhard Wiedemann + +- phase out %jobs macro (boo#1237231) + ------------------------------------------------------------------- Tue Nov 7 19:46:14 UTC 2023 - Dirk Müller diff --git a/python-pytest-localserver.spec b/python-pytest-localserver.spec index 55b9a0b..bdbed5b 100644 --- a/python-pytest-localserver.spec +++ b/python-pytest-localserver.spec @@ -19,6 +19,11 @@ %bcond_with extras %{?sle15_python_module_pythons} +%if 0%{suse_version} < 1600 +%define pytestjobs %{?jobs: -n %jobs} +%else +%define pytestjobs -n ${RPM_BUILD_NCPUS:-1} +%endif Name: python-pytest-localserver Version: 0.8.1 Release: 0 @@ -71,7 +76,7 @@ sed -i "1d" pytest_localserver/{plugin,smtp}.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest %{?jobs: -n %jobs} +%pytest %{?pytestjobs} %files %{python_files} %doc README.rst