forked from pool/python-pyparsing
Run spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=82
This commit is contained in:
parent
adf51d2a91
commit
491239a3a1
@ -19,7 +19,6 @@
|
|||||||
%define modname pyparsing
|
%define modname pyparsing
|
||||||
# in order to avoid rewriting for subpackage generator
|
# in order to avoid rewriting for subpackage generator
|
||||||
%define mypython python
|
%define mypython python
|
||||||
|
|
||||||
%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
|
||||||
@ -29,13 +28,13 @@
|
|||||||
%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}
|
|
||||||
BuildRequires: python3-base >= 3.6
|
BuildRequires: python3-base >= 3.6
|
||||||
|
%{expand:%%define skip_%{primary_python} 1}
|
||||||
%else
|
%else
|
||||||
|
%define python_module() no-build-without-multibuild-flavor
|
||||||
# no non-primary python in <=15.4
|
# no non-primary python in <=15.4
|
||||||
ExclusiveArch: do-not-build
|
ExclusiveArch: do-not-build
|
||||||
%define python_module() no-build-without-multibuild-flavor
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
@ -45,7 +44,6 @@ ExclusiveArch: do-not-build
|
|||||||
%else
|
%else
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
Name: %{pprefix}-pyparsing%{?psuffix}
|
Name: %{pprefix}-pyparsing%{?psuffix}
|
||||||
Version: 3.0.9
|
Version: 3.0.9
|
||||||
@ -58,6 +56,7 @@ BuildRequires: %{python_module base}
|
|||||||
BuildRequires: %{python_module flit-core}
|
BuildRequires: %{python_module flit-core}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module jinja2}
|
BuildRequires: %{python_module jinja2}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@ -72,7 +71,6 @@ Provides: %{mypython}3dist(%{modname}) = %{version}
|
|||||||
Obsoletes: %{mypython}3-%{modname} < %{version}-%{release}
|
Obsoletes: %{mypython}3-%{modname} < %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user