OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit-core?expand=0&rev=27
This commit is contained in:
parent
e6b564f974
commit
96cdc458d7
@ -18,12 +18,8 @@
|
|||||||
|
|
||||||
%define modname flit-core
|
%define modname flit-core
|
||||||
%define mypython python
|
%define mypython python
|
||||||
# this must be hardcoded until obs can read it from a prjconf definition
|
# fallback if primary_python is not available from the project configuration
|
||||||
%if 0%{suse_version} >= 1550
|
%{?!primary_python:%define primary_python python3%{?!sle_version:10}}
|
||||||
%define primary_python python310
|
|
||||||
%else
|
|
||||||
%define primary_python python3
|
|
||||||
%endif
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "primary"
|
%if "%{flavor}" == "primary"
|
||||||
# this one is built in Ring0
|
# this one is built in Ring0
|
||||||
@ -33,7 +29,7 @@
|
|||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
# The rest is in Ring1
|
# The rest is in Ring1
|
||||||
%define pprefix python
|
%define pprefix python
|
||||||
%if 0%{suse_version} >= 1550 || 0%{?sle_version} == 150500
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} == 150500
|
||||||
%{expand:%%define skip_%{primary_python} 1}
|
%{expand:%%define skip_%{primary_python} 1}
|
||||||
BuildRequires: python3-base >= 3.6
|
BuildRequires: python3-base >= 3.6
|
||||||
%else
|
%else
|
||||||
@ -68,6 +64,7 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION boo#1186870: we are a transitive build dependency of python-packaging which is used by pythondistdeps.py normally creating this entry
|
# SECTION boo#1186870: we are a transitive build dependency of python-packaging which is used by pythondistdeps.py normally creating this entry
|
||||||
#!BuildIgnore: python3-packaging
|
#!BuildIgnore: python3-packaging
|
||||||
|
#!BuildIgnore: %{primary_python}-packaging
|
||||||
Provides: %{mypython}%{python_version}dist(%{modname}) = %{version}
|
Provides: %{mypython}%{python_version}dist(%{modname}) = %{version}
|
||||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
||||||
Provides: %{mypython}3dist(%{modname}) = %{version}
|
Provides: %{mypython}3dist(%{modname}) = %{version}
|
||||||
|
Loading…
Reference in New Issue
Block a user