Accepting request 910353 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/910353 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pexpect?expand=0&rev=34
This commit is contained in:
commit
c7f762665d
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 5 12:42:51 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Remove executable flag from examples/*.py: since we already patch
|
||||
out the shebangs, they are not directly startable anyway
|
||||
(boo#1189065).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 11:32:53 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pexpect
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -51,6 +51,8 @@ controlling them; and responding to expected patterns in their output.
|
||||
# Fix wrong-script-interpreter
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \;
|
||||
find examples -type f -name "*.cgi" -exec sed -i "s|##!%{_bindir}/env python|##!%{_bindir}/python|" {} \;
|
||||
# Mark example *.py as non-executable (we already patch the shebang out, so they can't be started anyway)
|
||||
find examples -type f -name "*.py" -exec chmod 644 {} \;
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
Loading…
Reference in New Issue
Block a user