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