15
0

- Add patch to build without python2:

* no-python-binary.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=53
This commit is contained in:
Tomáš Chvátal
2020-03-12 11:33:18 +00:00
committed by Git OBS Bridge
parent 89afa07900
commit f24bc875de
3 changed files with 105 additions and 2 deletions

View File

@@ -22,9 +22,9 @@ Version: 4.8.0
Release: 0
Summary: Pure Python Expect-like module
License: ISC
Group: Development/Libraries/Python
URL: http://pexpect.readthedocs.org/en/latest/
URL: https://pexpect.readthedocs.org/en/latest/
Source: https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
Patch0: no-python-binary.patch
BuildRequires: %{python_module ptyprocess}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -46,6 +46,7 @@ controlling them; and responding to expected patterns in their output.
%prep
%setup -q -n pexpect-%{version}
%patch0 -p1
# Fix wrong-script-interpreter
find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \;