I am packaging pyrenamer  in order to submit it to Factory.
As it is, I got this warning  because of the 'shebang' calling
python' instead of '/usr/bin/python' (which should be
I have fixed it by adding the following:
sed -i 's|/usr/bin/env\ python|/usr/bin/python2|1'
in %install section.
Is it a good way to do it or is there a more recommended way ?
 full warning is:
pyrenamer.noarch: E: env-script-interpreter (Badness: 9) /usr/bin/pyrenamer /usr/bin/env
This script uses 'env' as an interpreter. For the rpm runtime dependency
detection to work, the shebang #!/usr/bin/env python needs to be patched into
#!/usr/bin/python otherwise the package dependency generator merely adds a
dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python.
Alternatively, if the file should not be executed, then ensure that it is not
marked as executable or don't install it in a path that is reserved for
Sébastien 'sogal' Poher
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner(a)opensuse.org