From 033ff490260666e85a27911cd560797517143f61e625afdd4c2dec7f0d01bac9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 24 Jun 2021 22:31:00 +0000 Subject: [PATCH 1/2] - We should require python3-* packages, not python-* ones, which are python2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=61 --- python-WebOb.changes | 6 ++++++ python-WebOb.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-WebOb.changes b/python-WebOb.changes index 0eba984..759bf4b 100644 --- a/python-WebOb.changes +++ b/python-WebOb.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 24 22:29:11 UTC 2021 - Matej Cepl + +- We should require python3-* packages, not python-* ones, which + are python2. + ------------------------------------------------------------------- Sat Mar 20 19:02:16 UTC 2021 - Ben Greiner diff --git a/python-WebOb.spec b/python-WebOb.spec index 22010be..ae79f7b 100644 --- a/python-WebOb.spec +++ b/python-WebOb.spec @@ -17,7 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%define oldpython python3 Name: python-WebOb Version: 1.8.7 Release: 0 From be71fd7e025fcdc98b69bd32de0b85dc9270c0e2b6bf41b80ffb1adfbf01c910 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 24 Jun 2021 22:37:45 +0000 Subject: [PATCH 2/2] Really don't bother with %{oldpython} macro OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=62 --- python-WebOb.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python-WebOb.spec b/python-WebOb.spec index ae79f7b..73426c0 100644 --- a/python-WebOb.spec +++ b/python-WebOb.spec @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python3 Name: python-WebOb Version: 1.8.7 Release: 0 @@ -35,10 +34,10 @@ BuildRequires: python3-Sphinx BuildArch: noarch %ifpython2 # We need SSL support -BuildRequires: %{oldpython} -Requires: %{oldpython} -Obsoletes: %{oldpython}-webob < %{version} -Provides: %{oldpython}-webob = %{version} +BuildRequires: python3 +Requires: python3 +Obsoletes: python3-webob < %{version} +Provides: python3-webob = %{version} %endif %python_subpackages