Accepting request 900814 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/900814 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyparsing?expand=0&rev=39
This commit is contained in:
commit
a0e098dc21
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 17 17:30:40 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Add Provides: for python*dist(pyparsing): work around boo#1186870
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 08:31:39 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyparsing
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,7 +17,8 @@
|
||||
|
||||
|
||||
%define modname pyparsing
|
||||
%define oldpython python
|
||||
# in order to avoid rewriting for subpackage generator
|
||||
%define mypython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
@ -32,7 +33,7 @@ Name: python-pyparsing%{psuffix}
|
||||
Version: 2.4.7
|
||||
Release: 0
|
||||
Summary: Grammar Parser Library for Python
|
||||
License: MIT AND GPL-2.0-or-later AND GPL-3.0-or-later
|
||||
License: GPL-2.0-or-later AND MIT AND GPL-3.0-or-later
|
||||
URL: https://github.com/pyparsing/pyparsing/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base}
|
||||
@ -43,8 +44,13 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-parsing = %{version}
|
||||
Obsoletes: %{oldpython}-parsing < %{version}
|
||||
Provides: %{mypython}-parsing = %{version}
|
||||
Obsoletes: %{mypython}-parsing < %{version}
|
||||
%endif
|
||||
# work around boo#1186870
|
||||
Provides: %{mypython}%{python_version}dist(pyparsing) = %{version}
|
||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
||||
Provides: %{mypython}3dist(pyparsing) = %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user