Change to use python3_pkgversion macro for EPEL 7 support

This commit is contained in:
Sam P 2021-02-24 15:47:23 +00:00 committed by Dan Callaghan
parent b334f8cb67
commit 9b3126313d

View File

@ -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 <survient@fedoraproject.org> - 5.0.6-26
- Change to use python3_pkgversion macro for EPEL 7 support
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.6-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild