14
0

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
This commit is contained in:
2024-09-24 13:01:11 +00:00
committed by Git OBS Bridge
parent eefc7222d4
commit fc78f7a5ba
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 24 12:20:37 UTC 2024 - ecsos <ecsos@opensuse.org>
- Fix build error under Leap.
-------------------------------------------------------------------
Tue Jul 30 12:03:04 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -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