mirror of
https://github.com/openSUSE/osc.git
synced 2026-01-29 01:03:23 +01:00
spec: Use primary_python to define runtime requires matching the shebang lines
Ported from https://build.opensuse.org/package/rdiff/openSUSE:Tools/osc?linkrev=base&rev=468
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
%if %{defined primary_python}
|
||||
%define use_python %(echo %{primary_python} | sed -e 's|python3|python3.|g')
|
||||
%define use_python_pkg %{primary_python}
|
||||
%else
|
||||
%define use_python python3
|
||||
%define use_python_pkg python3
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1500
|
||||
# use python36 on SLE 12 and older
|
||||
|
||||
Reference in New Issue
Block a user