From 525ac7f2553e429349387bb2d6630113465aa593ea6b1522f88fcbd4009c94d3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 Jul 2023 14:36:35 +0000 Subject: [PATCH] Accepting request 1099527 from home:ecsos:python - Fix build error for Leap. OBS-URL: https://build.opensuse.org/request/show/1099527 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=22 --- python-pytest-console-scripts.changes | 5 +++++ python-pytest-console-scripts.spec | 4 ++++ 2 files changed, 9 insertions(+) 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}