forked from pool/python-pexpect
Accepting request 509285 from home:TheBlackCat:branches:devel:languages:python
Fix wrong-script-interpreter rpmlint error. OBS-URL: https://build.opensuse.org/request/show/509285 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=25
This commit is contained in:
@@ -46,6 +46,10 @@ controlling them; and responding to expected patterns in their output.
|
||||
%prep
|
||||
%setup -n pexpect-%{version}
|
||||
|
||||
# Fix wrong-script-interpreter
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
|
||||
find examples -type f -name "*.cgi" -exec sed -i "s|##!/usr/bin/env python|##!/usr/bin/python|" {} \;
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user