1
0
Matej Cepl 2022-08-02 15:36:53 +00:00 committed by Git OBS Bridge
parent adf51d2a91
commit 491239a3a1

View File

@ -19,7 +19,6 @@
%define modname pyparsing
# in order to avoid rewriting for subpackage generator
%define mypython python
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "primary"
# this one is built in Ring0
@ -29,13 +28,13 @@
%if "%{flavor}" == ""
# The rest is in Ring1
%define pprefix python
%if 0%{suse_version} >= 1550 || 0%{?sle_version} == 150500
%{expand:%%define skip_%{primary_python} 1}
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} == 150500
BuildRequires: python3-base >= 3.6
%{expand:%%define skip_%{primary_python} 1}
%else
%define python_module() no-build-without-multibuild-flavor
# no non-primary python in <=15.4
ExclusiveArch: do-not-build
%define python_module() no-build-without-multibuild-flavor
%endif
%endif
%if "%{flavor}" == "test"
@ -45,7 +44,6 @@ ExclusiveArch: do-not-build
%else
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
Name: %{pprefix}-pyparsing%{?psuffix}
Version: 3.0.9
@ -58,6 +56,7 @@ BuildRequires: %{python_module base}
BuildRequires: %{python_module flit-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module jinja2}
BuildRequires: %{python_module pytest}
@ -72,7 +71,6 @@ Provides: %{mypython}3dist(%{modname}) = %{version}
Obsoletes: %{mypython}3-%{modname} < %{version}-%{release}
%endif
# /SECTION
BuildArch: noarch
%python_subpackages
%description