From dc87fa88492f27de09a0ef8f89335123f858eb3054e45599326de2cfc5e499be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 Sep 2024 13:00:54 +0000 Subject: [PATCH] Accepting request 1202945 from home:ecsos:python - Fix build error under Leap. OBS-URL: https://build.opensuse.org/request/show/1202945 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=22 --- python-Deprecated.changes | 5 +++++ python-Deprecated.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-Deprecated.changes b/python-Deprecated.changes index a865b05..883ad9a 100644 --- a/python-Deprecated.changes +++ b/python-Deprecated.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 24 12:03:30 UTC 2024 - ecsos + +- Fix build error under Leap. + ------------------------------------------------------------------- Mon Jul 22 09:42:29 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-Deprecated.spec b/python-Deprecated.spec index 9e3bde2..c34e1b6 100644 --- a/python-Deprecated.spec +++ b/python-Deprecated.spec @@ -27,7 +27,7 @@ Group: Development/Languages/Python URL: https://github.com/tantale/deprecated Source: https://files.pythonhosted.org/packages/source/D/Deprecated/Deprecated-%{version}.tar.gz # PATCH-FIX-UPSTREAM - gh#tantale/deprecated/73 - Update class method deprecation warnings for Python 3.13 -Patch: https://github.com/tantale/deprecated/pull/73.patch#/fix-python3.13-ftbfs.patch +Patch1: https://github.com/tantale/deprecated/pull/73.patch#/fix-python3.13-ftbfs.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wrapt >= 1.10} @@ -44,13 +44,18 @@ you can use the ``@deprecated`` decorator. %prep %setup -q -n Deprecated-%{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