From 6d6c718168b02c3f181bbcc6624ccab8a3509b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 22 Oct 2019 01:04:36 +0200 Subject: [PATCH] Do not bring Python 2 BuildRequires when not building the Python 2 package --- python-html2text.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index cba6440..213a717 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -19,7 +19,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2019.8.11 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{common_sum} License: GPLv3 @@ -34,6 +34,7 @@ BuildRequires: help2man %{common_desc} +%if %{with python2} %package -n python2-%{upname} Summary: %{common_sum} BuildRequires: python2-devel @@ -46,8 +47,10 @@ Provides: %{upname} = %{version}-%{release} %description -n python2-%{upname} %{common_desc} +%endif +%if %{with python3} %package -n python3-%{upname} Summary: %{common_sum} BuildRequires: python%{python3_pkgversion}-devel @@ -60,6 +63,7 @@ Obsoletes: python2-%{upname} <= %{version}-%{release} %description -n python3-%{upname} %{common_desc} +%endif %prep @@ -154,6 +158,9 @@ popd %changelog +* Mon Oct 21 2019 Miro Hrončok - 2019.8.11-2 +- Do not bring Python 2 BuildRequires when not building the Python 2 package + * Mon Sep 09 2019 Sérgio Basto - 2019.8.11-1 - Update to 2019.8.11 - Build python3-html2text on epel 7 (#1740322)