[packages/python-requests-oauthlib] - dropped overmacroization that still doesn't support recent changes in sdist tarball naming

qboosh qboosh at pld-linux.org
Sat Apr 18 09:34:56 CEST 2026


commit d9139b093a0669f03ffaab68b616cb0481442625
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 18 09:35:32 2026 +0200

    - dropped overmacroization that still doesn't support recent changes in sdist tarball naming

 python-requests-oauthlib.spec | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/python-requests-oauthlib.spec b/python-requests-oauthlib.spec
index 4c064f1..24d3be8 100644
--- a/python-requests-oauthlib.spec
+++ b/python-requests-oauthlib.spec
@@ -5,18 +5,15 @@
 %bcond_without	python2	# CPython 2.x module
 %bcond_without	python3	# CPython 3.x module
 
-%define		module		requests_oauthlib
-%define		egg_name	requests_oauthlib
-%define		pypi_name	requests-oauthlib
 Summary:	OAuthlib authentication support for Requests
 Summary(pl.UTF-8):	Obsługa uwierzytelniania przez OAuthlib dla Requests
-Name:		python-%{pypi_name}
+Name:		python-requests-oauthlib
 Version:	1.3.1
 Release:	1
 License:	ISC
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/requests-oauthlib/
-Source0:	https://files.pythonhosted.org/packages/source/r/requests-oauthlib/%{pypi_name}-%{version}.tar.gz
+Source0:	https://files.pythonhosted.org/packages/source/r/requests-oauthlib/requests-oauthlib-%{version}.tar.gz
 # Source0-md5:	c4f3b4ecdb72a56a13675e5a3302852a
 URL:		https://github.com/requests/requests-oauthlib
 %if %{with python2}
@@ -56,17 +53,17 @@ This project provides first-class OAuth library support for Requests.
 %description -l pl.UTF-8
 Ten pakiet zapewnia obsługę biblioteki OAuth dla Requests.
 
-%package -n python3-%{pypi_name}
+%package -n python3-requests-oauthlib
 Summary:	OAuthlib authentication support for Requests
 Summary(pl.UTF-8):	Obsługa uwierzytelniania przez OAuthlib dla Requests
 Group:		Development/Languages/Python
 Requires:	python3-modules >= 1:3.4
 Obsoletes:	python3-requests_oauthlib < 0.6.1-3
 
-%description -n python3-%{pypi_name}
+%description -n python3-requests-oauthlib
 This project provides first-class OAuth library support for Requests.
 
-%description -n python3-%{pypi_name} -l pl.UTF-8
+%description -n python3-requests-oauthlib -l pl.UTF-8
 Ten pakiet zapewnia obsługę biblioteki OAuth dla Requests.
 
 %package apidocs
@@ -81,7 +78,7 @@ API documentation for requests-oauthlib module.
 Dokumentacja API biblioteki requests-oauthlib.
 
 %prep
-%setup -q -n %{pypi_name}-%{version}
+%setup -q -n requests-oauthlib-%{version}
 
 %build
 %if %{with python2}
@@ -124,16 +121,16 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS.rst HISTORY.rst LICENSE README.rst
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%{py_sitescriptdir}/requests_oauthlib
+%{py_sitescriptdir}/requests_oauthlib-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
-%files -n python3-%{pypi_name}
+%files -n python3-requests-oauthlib
 %defattr(644,root,root,755)
 %doc AUTHORS.rst HISTORY.rst LICENSE README.rst
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/requests_oauthlib
+%{py3_sitescriptdir}/requests_oauthlib-%{version}-py*.egg-info
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-requests-oauthlib.git/commitdiff/d9139b093a0669f03ffaab68b616cb0481442625



More information about the pld-cvs-commit mailing list