#2 Change to use python3_pkgversion macro for EPEL 7 support
Closed 2 years ago by dcallagh. Opened 3 years ago by survient.
rpms/ survient/python-configobj rawhide  into  rawhide

file modified
+13 -10
@@ -1,6 +1,6 @@ 

  Name:           python-configobj

  Version:        5.0.6

- Release:        23%{?dist}

+ Release:        24%{?dist}

  Summary:        Config file reading, writing, and validation

  License:        BSD

  URL:            http://configobj.readthedocs.org/
@@ -11,21 +11,21 @@ 

  # 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 @@ 

  %{__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 @@ 

  %{python3_sitelib}/configobj-%{version}-py%{python3_version}.egg-info

  

  %changelog

+ * Wed Feb 24 2021 Sam P <survient@fedoraproject.org> - 5.0.6-24

+ - Change to use python3_pkgversion macro for EPEL 7 support

+ 

  * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.6-23

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

  

Spec has been tweaked to leverage the python3_pkgversion macro to support EPEL7 whose packages use a "python36, python34" naming convention.

Thanks very much for this PR, sorry it took me so long.

There is a minor conflict on Release because of automated commits that happened since you filed this. So I have manually applied and rebased the patch and pushed it to rawhide. I'll close this PR now.

Next is to file the branch request for EPEL7, let's continue discussion on the bug.

Pull-Request has been closed by dcallagh

2 years ago
Metadata