forked from pool/python-ptyprocess
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:
@@ -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>
|
Tue Jul 30 12:03:04 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/pexpect/ptyprocess
|
URL: https://github.com/pexpect/ptyprocess
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
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-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: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -46,13 +46,18 @@ If you need to automate these things, running the process in a pseudo terminal
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ptyprocess-%{version}
|
%setup -q -n ptyprocess-%{version}
|
||||||
%patch -P0 -p1
|
%patch -P 1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_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}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Reference in New Issue
Block a user