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