From 92cf3f7a4146f0d894d4c178d021dba461d7d8ce7ea46633c49e5dacc2196cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 Sep 2024 13:01:31 +0000 Subject: [PATCH] Accepting request 1202960 from home:ecsos:python - Fix build error under Leap. OBS-URL: https://build.opensuse.org/request/show/1202960 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=67 --- python-oauthlib.changes | 5 +++++ python-oauthlib.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-oauthlib.changes b/python-oauthlib.changes index fc06893..5f017cd 100644 --- a/python-oauthlib.changes +++ b/python-oauthlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 24 12:27:53 UTC 2024 - ecsos + +- Fix build error under Leap. + ------------------------------------------------------------------- Mon Sep 9 10:18:06 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-oauthlib.spec b/python-oauthlib.spec index d9bade6..bd6fae2 100644 --- a/python-oauthlib.spec +++ b/python-oauthlib.spec @@ -27,7 +27,7 @@ Group: Development/Languages/Python URL: https://github.com/oauthlib/oauthlib Source: https://files.pythonhosted.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz # PATCH-FIX-UPSTREAM gh/oauthlib/oauthlib#866 - Make UtilsTests.test_filter_params Python 3.13+ compatible -Patch: https://github.com/oauthlib/oauthlib/pull/866.patch#/Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch +Patch1: https://github.com/oauthlib/oauthlib/pull/866.patch#/Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch BuildRequires: %{python_module PyJWT >= 2.0.0} BuildRequires: %{python_module blinker >= 1.4} BuildRequires: %{python_module cryptography >= 3.0.0 } @@ -61,13 +61,18 @@ veneer on top of OAuthLib and get OAuth support for very little effort. %prep %setup -q -n oauthlib-%{version} -%patch -P0 -p1 +%patch -P 1 -p1 %build %python_build %install %python_install +# Fix python-bytecode-inconsistent-mtime +pushd %{buildroot}%{python_sitelib} +find . -name '*.pyc' -exec rm -f '{}' ';' +python%python_bin_suffix -m compileall *.py ';' +popd %python_expand %fdupes %{buildroot}%{$python_sitelib} %check