diff --git a/python-pexpect.changes b/python-pexpect.changes index 28b9ef3..2db0d66 100644 --- a/python-pexpect.changes +++ b/python-pexpect.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com + +- Fix wrong-script-interpreter rpmlint error. + ------------------------------------------------------------------- Wed Apr 19 17:57:01 UTC 2017 - toddrme2178@gmail.com diff --git a/python-pexpect.spec b/python-pexpect.spec index 08b3884..fa36829 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -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