14
0

Accepting request 993539 from devel:languages:python

- Buildrequires cached-property always, not only for Python lower than 3.8
  * This is needed due to a mismatching python-rpm-macros
- Fix conditional Requires and BuildRequires.

OBS-URL: https://build.opensuse.org/request/show/993539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-osc-tiny?expand=0&rev=19
This commit is contained in:
2022-08-06 20:08:31 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Aug 3 09:48:04 UTC 2022 - Marina Latini <marina.latini@suse.com>
- Buildrequires cached-property always, not only for Python lower than 3.8
* This is needed due to a mismatching python-rpm-macros
-------------------------------------------------------------------
Wed Aug 3 08:01:55 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Fix conditional Requires and BuildRequires.
-------------------------------------------------------------------
Tue Aug 2 15:45:47 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -41,12 +41,16 @@ Requires: python-lxml
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-requests
Requires: python-responses
Suggests: openssh
BuildArch: noarch
%if %python_version_nodots < 38
# Using 'if' instead of 'with' because the latter requires rpm >= 4.14
%if 0%{?suse_version} >= 1550
BuildRequires: %{python_module cached-property if %python-base < 3.8}
%else
BuildRequires: %{python_module cached-property}
Requires: python-cached-property
%endif
Requires: (python-cached-property if python-base < 3.8)
%python_subpackages
%description