Rename %pypi_name to %srcname

This commit is contained in:
Benjamin A. Beasley 2021-06-23 12:46:12 -04:00
parent 8ebea93ba3
commit 7e910b64a5

View File

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