From 9b3126313da4f3c86b1ec8329ea8b3e15ea2288f Mon Sep 17 00:00:00 2001 From: Sam P Date: Wed, 24 Feb 2021 15:47:23 +0000 Subject: [PATCH] Change to use python3_pkgversion macro for EPEL 7 support --- python-configobj.spec | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/python-configobj.spec b/python-configobj.spec index c6003ea..4512925 100644 --- a/python-configobj.spec +++ b/python-configobj.spec @@ -1,6 +1,6 @@ Name: python-configobj Version: 5.0.6 -Release: 25%{?dist} +Release: 26%{?dist} Summary: Config file reading, writing, and validation License: BSD URL: http://configobj.readthedocs.org/ @@ -11,21 +11,21 @@ URL: http://configobj.readthedocs.org/ # Source0: https://pypi.python.org/packages/source/c/configobj/configobj-5.0.6.tar.gz Source0: https://github.com/DiffSK/configobj/archive/v%{version}.tar.gz BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-six -BuildRequires: python3-pytest +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-six +BuildRequires: python%{python3_pkgversion}-pytest %global _description \ ConfigObj is a simple but powerful configuration file reader and writer: an ini\ file round tripper. Its main feature is that it is very easy to use, with a\ straightforward programmers interface and a simple syntax for config files. %description %_description -%package -n python3-configobj +%package -n python%{python3_pkgversion}-configobj Summary: %{summary} -%{?python_provide:%python_provide python3-configobj} -Requires: python3-six -%description -n python3-configobj %_description +%{?python_provide:%python_provide python%{python3_pkgversion}-configobj} +Requires: python%{python3_pkgversion}-six +%description -n python%{python3_pkgversion}-configobj %_description %prep %autosetup -n configobj-%{version} @@ -42,7 +42,7 @@ export PYTHONWARNINGS=always %{__python3} test_configobj.py py.test-%{python3_version} tests -%files -n python3-configobj +%files -n python%{python3_pkgversion}-configobj %doc README.md %license LICENSE %{python3_sitelib}/_version.py @@ -52,6 +52,9 @@ py.test-%{python3_version} tests %{python3_sitelib}/configobj-%{version}-py%{python3_version}.egg-info %changelog +* Sun Aug 08 2021 Sam P - 5.0.6-26 +- Change to use python3_pkgversion macro for EPEL 7 support + * Fri Jul 23 2021 Fedora Release Engineering - 5.0.6-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild