SHA256
1
0
forked from pool/python38

Accepting request 990680 from devel:languages:python:Factory

- Switch from %primary_interpreter to prjconf-defined
  %primary_python (gh#openSUSE/python-rpm-macros#127).

OBS-URL: https://build.opensuse.org/request/show/990680
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python38?expand=0&rev=24
This commit is contained in:
Richard Brown 2022-07-29 14:46:56 +00:00 committed by Git OBS Bridge
commit f0e7813db0
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 21 14:19:54 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Switch from %primary_interpreter to prjconf-defined
%primary_python (gh#openSUSE/python-rpm-macros#127).
-------------------------------------------------------------------
Thu May 5 14:34:56 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -35,6 +35,14 @@
%bcond_with base
%bcond_without general
%endif
%define python_pkg_name python38
%if "%{python_pkg_name}" == "%{primary_python}"
%define primary_interpreter 1
%else
%define primary_interpreter 0
%endif
%define _version %(c=%{version}; echo ${c/[a-z]*/})
%define tar_suffix %(c=%{_version}; echo ${c#%{_version}})
%define python_version %(c=%{_version}; echo ${c:0:3})
@ -48,10 +56,6 @@
%else
%define tarversion %{version}
%endif
%define python_pkg_name python38
# Will provide the python3-* provides
# Will do the /usr/bin/python3 and all the core links
%define primary_interpreter 0
%define folderversion %{tarversion}
%define tarname Python-%{tarversion}
%define sitedir %{_libdir}/python%{python_version}