diff --git a/google-auth-oauthlib-1.0.0.tar.gz b/google-auth-oauthlib-1.0.0.tar.gz deleted file mode 100644 index 3ff1d986d2fd9adeea37a7802d33ca8c080904e9..0000000000000000000000000000000000000000 Binary files a/google-auth-oauthlib-1.0.0.tar.gz and /dev/null differ diff --git a/google_auth_oauthlib-1.2.3.tar.gz b/google_auth_oauthlib-1.2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..007eb70b105f14fdfa836d4a60c775cc9cce7150 Binary files /dev/null and b/google_auth_oauthlib-1.2.3.tar.gz differ diff --git a/python-google-auth-oauthlib.spec b/python-google-auth-oauthlib.spec index e17aba4f85554e210db63c911a269dced4299415..5a80f18212d0055e6a9b5a8ab292774d31498fb3 100644 --- a/python-google-auth-oauthlib.spec +++ b/python-google-auth-oauthlib.spec @@ -1,23 +1,23 @@ +%global pypi_name google-auth-oauthlib %global _empty_manifest_terminate_build 0 -Name: python-google-auth-oauthlib -Version: 1.0.0 -Release: 1 +Name: python-%{pypi_name} +Version: 1.2.3 +Release: 3 Summary: Google Authentication Library License: Apache-2.0 URL: https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib -Source0: https://files.pythonhosted.org/packages/e3/b4/ef2170c5f6aa5bc2461bab959a84e56d2819ce26662b50038d2d0602223e/google-auth-oauthlib-1.0.0.tar.gz +Source0: https://files.pythonhosted.org/packages/86/a6/c6336a6ceb682709a4aa39e2e6b5754a458075ca92359512b6cbfcb25ae3/google_auth_oauthlib-%{version}.tar.gz BuildArch: noarch -Requires: python3-google-auth -Requires: python3-requests-oauthlib -Requires: python3-click - %description This library provides `oauthlib`_ integration with `google-auth`_. %package -n python3-google-auth-oauthlib Summary: Google Authentication Library Provides: python-google-auth-oauthlib = %{version}-%{release} +Requires: python3-google-auth +Requires: python3-requests-oauthlib +Requires: python3-click BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-google-auth-oauthlib @@ -30,13 +30,24 @@ Provides: python3-google-auth-oauthlib-doc This library provides `oauthlib`_ integration with `google-auth`_. %prep -%autosetup -n google-auth-oauthlib-%{version} +%autosetup -n google_auth_oauthlib-%{version} %build %py3_build %install %py3_install +# Fix dependency version constraints in metadata +find %{buildroot}%{python3_sitelib} -name "*.dist-info" -type d | while read distinfo; do + if [ -f "$distinfo/METADATA" ]; then + sed -i 's/google-auth<2\.42\.0,>=2\.15\.0/google-auth>=2.15.0/g' "$distinfo/METADATA" || true + sed -i 's/google-auth>=2\.15\.0,<2\.42\.0/google-auth>=2.15.0/g' "$distinfo/METADATA" || true + fi + if [ -f "$distinfo/requires.txt" ]; then + sed -i 's/google-auth<2\.42\.0,>=2\.15\.0/google-auth>=2.15.0/g' "$distinfo/requires.txt" || true + sed -i 's/google-auth>=2\.15\.0,<2\.42\.0/google-auth>=2.15.0/g' "$distinfo/requires.txt" || true + fi +done install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -70,6 +81,17 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Nov 11 2025 - 1.2.3-3 +- Fix dependency version constraints in package metadata to allow newer google-auth versions + +* Tue Nov 11 2025 - 1.2.3-2 +- Fix dependency conflicts by moving Requires to subpackage section + +* Tue Nov 11 2025 - 1.2.3-1 +- Update version to 1.2.3 +- Fix spec file format: add pypi_name variable, use variables in Name and Source0 +- Fix %prep directory name to match actual source package (google_auth_oauthlib) + * Tue Mar 28 2023 jiangxinyu - 1.0.0-1 - Update package to version 1.0.0