Reduce unnecessary macro indirection in the spec file

epel9
Benjamin A. Beasley 1 year ago
parent 3853cee658
commit a19cfe0763

@ -1,18 +1,15 @@
# Created by pyp2rpm-1.1.1
%global sname wrapt
%if 0%{?fedora} || 0%{?rhel} >= 8 %if 0%{?fedora} || 0%{?rhel} >= 8
%global with_docs 1 %global with_docs 1
%endif %endif
Name: python-%{sname} Name: python-wrapt
Version: 1.13.3 Version: 1.13.3
Release: %autorelease Release: %autorelease
Summary: A Python module for decorators, wrappers and monkey patching Summary: A Python module for decorators, wrappers and monkey patching
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/GrahamDumpleton/wrapt URL: https://github.com/GrahamDumpleton/wrapt
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
BuildRequires: gcc BuildRequires: gcc
@ -46,10 +43,10 @@ for Python, which can be used as the basis for the construction of
function wrappers and decorator functions. function wrappers and decorator functions.
%prep %prep
%setup -q -n %{sname}-%{version} %setup -q -n wrapt-%{version}
# Remove bundled egg-info in case it exists # Remove bundled egg-info in case it exists
rm -rf %{sname}.egg-info rm -rf wrapt.egg-info
%build %build
%py3_build %py3_build
@ -72,8 +69,8 @@ popd
%files -n python3-wrapt %files -n python3-wrapt
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python3_sitearch}/%{sname} %{python3_sitearch}/wrapt
%{python3_sitearch}/%{sname}-%{version}-py%{python3_version}.egg-info %{python3_sitearch}/wrapt-%{version}-py%{python3_version}.egg-info
%changelog %changelog
%autochangelog %autochangelog

Loading…
Cancel
Save