From 349e55ad144d85a75e5cd71893e3086d685659732830d3726b1afa39f288e04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 21 Apr 2020 08:14:05 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:certbot/python-certbot?expand=0&rev=60 --- python-certbot.changes | 5 +++++ python-certbot.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-certbot.changes b/python-certbot.changes index 7353ea9..71a7872 100644 --- a/python-certbot.changes +++ b/python-certbot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 21 08:13:52 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Tue Mar 10 09:23:44 UTC 2020 - Michael Ströder diff --git a/python-certbot.spec b/python-certbot.spec index cffb1b0..b00c879 100644 --- a/python-certbot.spec +++ b/python-certbot.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-certbot Version: 1.3.0 Release: 0 @@ -41,7 +42,6 @@ BuildRequires: %{python_module zope.component} BuildRequires: %{python_module zope.interface} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-typing Requires: python-acme >= 0.40.0 Requires: python-configargparse >= 0.9.3 Requires: python-configobj @@ -58,12 +58,15 @@ Requires: python-zope.component Requires: python-zope.interface Requires(post): update-alternatives Requires(postun): update-alternatives +Provides: certbot = %{version} +Obsoletes: certbot < %{version} BuildArch: noarch +%if %{with python2} +BuildRequires: python2-typing +%endif %ifpython2 Requires: python-typing %endif -Provides: certbot = %{version} -Obsoletes: certbot < %{version} %python_subpackages %description