From d3b6a5260bac616e9fde544f856cb4992e7d5e55 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Feb 09 2020 21:11:57 +0000 Subject: Add python 3 subpackage for EPEL 7 --- diff --git a/python-extras.spec b/python-extras.spec index 83d119b..0b122b7 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -1,10 +1,10 @@ -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} >= 7 %global with_python3 1 %endif Name: python-extras Version: 0.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Useful extra bits for Python License: MIT @@ -15,8 +15,8 @@ BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %if 0%{?with_python3} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %endif %description @@ -26,10 +26,11 @@ general use outside of a testing context. %if 0%{?with_python3} -%package -n python3-extras +%package -n python%{python3_pkgversion}-extras Summary: Useful extra bits for Python +%{?python_provide:%python_provide python%{python3_pkgversion}-extras} -%description -n python3-extras +%description -n python%{python3_pkgversion}-extras extras is a set of extensions to the Python standard library, originally written to make the code within testtools cleaner, but now split out for general use outside of a testing context. @@ -79,13 +80,16 @@ popd %{python_sitelib}/* %if 0%{?with_python3} -%files -n python3-extras +%files -n python%{python3_pkgversion}-extras %doc LICENSE NEWS README.rst %{python3_sitelib}/* %endif # with_python3 %changelog +* Sun Feb 9 2020 Scott K Logan - 0.0.3-3 +- Add python 3 subpackage for EPEL 7 + * Wed May 29 2013 Matthias Runge - 0.0.3-2 - spec cleanup and enable tests