From 5711b111562c32c089106b5e3725fa59d0e2b5b1b11b1cc60bad14ceebcbe8e9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 May 2021 11:47:35 +0000 Subject: [PATCH] Accepting request 890330 from home:bnavigator:branches:devel:languages:python:mailman - Restrict to python3 build OBS-URL: https://build.opensuse.org/request/show/890330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailmanclient?expand=0&rev=18 --- python-mailmanclient.changes | 5 +++++ python-mailmanclient.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-mailmanclient.changes b/python-mailmanclient.changes index 7548dde..0f8d099 100644 --- a/python-mailmanclient.changes +++ b/python-mailmanclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 4 09:30:03 UTC 2021 - Ben Greiner + +- Restrict to python3 build + ------------------------------------------------------------------- Thu Feb 4 00:11:53 UTC 2021 - Jan Engelhardt diff --git a/python-mailmanclient.spec b/python-mailmanclient.spec index 2b3a73c..6227e5f 100644 --- a/python-mailmanclient.spec +++ b/python-mailmanclient.spec @@ -16,11 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%if 0%{?suse_version} >= 1550 -%define skip_python36 1 -%endif +%{?!python_module:%define python_module() python3-%{**}} +# mailman is built only for primary python3 flavor +%define pythons python3 Name: python-mailmanclient Version: 3.3.2 Release: 0 @@ -41,6 +39,11 @@ BuildRequires: %{python_module pytest-vcr} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} # /SECTION +%if 0%{python3_version_nodots} == 38 +# help in replacing any previously installed multiflavor package back to the primary python3 package +Provides: python38-mailmanclient = %{version}-%{release} +Obsoletes: python38-mailmanclient < %{version}-%{release} +%endif %python_subpackages %description