diff --git a/python-sure.spec b/python-sure.spec index 02c84f9..0a4d2b2 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -1,12 +1,12 @@ -%global pypi_name sure +%global srcname sure -Name: python-%{pypi_name} +Name: python-%{srcname} Version: 1.4.11 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Utility belt for automated testing in Python License: GPLv3+ -URL: https://github.com/gabrielfalcao/sure +URL: https://github.com/gabrielfalcao/%{srcname} Source0: %{pypi_source} # Python 3.9 compatibility @@ -31,18 +31,18 @@ A testing library for Python with powerful and flexible assertions. Sure is heavily inspired by should.js. -%package -n python3-%{pypi_name} +%package -n python3-%{srcname} Summary: %{summary} 3 -%{?python_provide:%python_provide python3-%{pypi_name}} +%{?python_provide:%python_provide python3-%{srcname}} Requires: python3-six -%description -n python3-%{pypi_name} +%description -n python3-%{srcname} A testing library for Python with powerful and flexible assertions. Sure is heavily inspired by should.js. %prep -%autosetup -p1 -n %{pypi_name}-%{version} +%autosetup -p1 -n %{srcname}-%{version} %build @@ -57,13 +57,16 @@ heavily inspired by should.js. %{__python3} -m nose --verbosity 2 -%files -n python3-%{pypi_name} +%files -n python3-%{srcname} %doc COPYING -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %changelog +* Wed Jun 23 2021 Benjamin A. Beasley - 1.4.11-14 +- Rename %%pypi_name to %%srcname + * Wed Jun 02 2021 Python Maint - 1.4.11-13 - Rebuilt for Python 3.10