From 864e3d2a45a4162982a0b3cfcec5489279216dcbce63c22d1ddbfaa45f42e888 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 5 Mar 2021 12:44:11 +0000 Subject: [PATCH] Accepting request 876956 from home:mcalabkova:branches:devel:languages:python - Substitute broken %ifpython3 macro OBS-URL: https://build.opensuse.org/request/show/876956 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=55 --- python-Babel.changes | 5 +++++ python-Babel.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-Babel.changes b/python-Babel.changes index 29f9b00..e8d3291 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 5 10:31:45 UTC 2021 - Markéta Machová + +- Substitute broken %ifpython3 macro + ------------------------------------------------------------------- Wed Dec 16 23:03:10 UTC 2020 - Michael Ströder diff --git a/python-Babel.spec b/python-Babel.spec index be9245d..b2c0377 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -1,7 +1,7 @@ # # spec file for package python-Babel # -# 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 @@ -40,7 +40,7 @@ BuildArch: noarch Obsoletes: %{oldpython}-babel < %{version} Provides: %{oldpython}-babel = %{version} %endif -%ifpython3 +%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" Provides: python3-babel = %{version} Obsoletes: python3-babel < %{version} %endif