From fc78f7a5ba0872483c5d1c80fa324e73a781de3aae6134f91cdd209f2033b090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 Sep 2024 13:01:11 +0000 Subject: [PATCH] Accepting request 1202958 from home:ecsos:python - Fix build error under Leap. OBS-URL: https://build.opensuse.org/request/show/1202958 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ptyprocess?expand=0&rev=21 --- python-ptyprocess.changes | 5 +++++ python-ptyprocess.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-ptyprocess.changes b/python-ptyprocess.changes index b32ca18..48ef8ed 100644 --- a/python-ptyprocess.changes +++ b/python-ptyprocess.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 24 12:20:37 UTC 2024 - ecsos + +- Fix build error under Leap. + ------------------------------------------------------------------- Tue Jul 30 12:03:04 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-ptyprocess.spec b/python-ptyprocess.spec index 1c99136..0062d2f 100644 --- a/python-ptyprocess.spec +++ b/python-ptyprocess.spec @@ -27,7 +27,7 @@ Group: Development/Languages/Python URL: https://github.com/pexpect/ptyprocess Source: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz # PATCH-FIX-UPSTREAM - gh/pexpect/ptyprocess#75 - Remove unittest.makeSuite, gone from Python 3.13 -Patch: https://github.com/pexpect/ptyprocess/pull/75.patch#/remove-old-unittest-functions.patch +Patch1: https://github.com/pexpect/ptyprocess/pull/75.patch#/remove-old-unittest-functions.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -46,13 +46,18 @@ If you need to automate these things, running the process in a pseudo terminal %prep %setup -q -n ptyprocess-%{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