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
%global with_docs 1
%endif
Name: python-%{sname}
Name: python-wrapt
Version: 1.13.3
Release: %autorelease
Summary: A Python module for decorators, wrappers and monkey patching
License: BSD-2-Clause
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
@ -46,10 +43,10 @@ for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.
%prep
%setup -q -n %{sname}-%{version}
%setup -q -n wrapt-%{version}
# Remove bundled egg-info in case it exists
rm -rf %{sname}.egg-info
rm -rf wrapt.egg-info
%build
%py3_build
@ -72,8 +69,8 @@ popd
%files -n python3-wrapt
%doc README.rst
%license LICENSE
%{python3_sitearch}/%{sname}
%{python3_sitearch}/%{sname}-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/wrapt
%{python3_sitearch}/wrapt-%{version}-py%{python3_version}.egg-info
%changelog
%autochangelog

Loading…
Cancel
Save