From a19cfe07632be4c4674c40a5cbb0b0677e008721 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 29 Dec 2023 11:44:30 -0500 Subject: [PATCH] Reduce unnecessary macro indirection in the spec file --- python-wrapt.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/python-wrapt.spec b/python-wrapt.spec index 4a981ad..6a83247 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -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