diff --git a/python-pytest-console-scripts.changes b/python-pytest-console-scripts.changes index 7080b9c..f24d7f8 100644 --- a/python-pytest-console-scripts.changes +++ b/python-pytest-console-scripts.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 19 13:34:19 UTC 2023 - ecsos + +- Fix build error for Leap. + ------------------------------------------------------------------- Thu Jun 1 10:15:24 UTC 2023 - Dirk Müller diff --git a/python-pytest-console-scripts.spec b/python-pytest-console-scripts.spec index 70781b9..47d42b2 100644 --- a/python-pytest-console-scripts.spec +++ b/python-pytest-console-scripts.spec @@ -56,7 +56,11 @@ much as possible. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +%if 0%{?suse_version} > 1500 sed -i 's:env python:env python3:' tests/test_run_scripts.py +%else +sed -i 's:env python:env python%python_bin_suffix:' tests/test_run_scripts.py +%endif %pytest %files %{python_files}