From 9bf018fd89d214e301194b975e5db3499728f142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 22 Oct 2019 02:09:14 +0100 Subject: [PATCH] Move BuildRequires out of the package tag --- python-html2text.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/python-html2text.spec b/python-html2text.spec index 213a717..cfb9963 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -29,17 +29,22 @@ Source0: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upn BuildArch: noarch BuildRequires: help2man +%if %{with python2} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pytest +%endif +%if %{with python3} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +%endif %description %{common_desc} -%if %{with python2} %package -n python2-%{upname} Summary: %{common_sum} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-pytest %if !%{with python3} Provides: %{upname} = %{version}-%{release} %endif @@ -47,14 +52,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 -BuildRequires: python%{python3_pkgversion}-setuptools Provides: %{upname} = %{version}-%{release} %if !%{with python2} Obsoletes: python2-%{upname} <= %{version}-%{release} @@ -63,7 +64,6 @@ Obsoletes: python2-%{upname} <= %{version}-%{release} %description -n python3-%{upname} %{common_desc} -%endif %prep