diff --git a/python-docutils.spec b/python-docutils.spec index 5025289..60fe587 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -81,10 +81,10 @@ done # Remove shebang from non-executable files for i in code_analyzer error_reporting punctuation_chars smartquotes math/latex2mathml math/math2html math/tex2mathml_extern ; do - sed -i -e '1{\@^#! */usr/bin.*python@d}' %{buildroot}%{$python_sitelib}/docutils/utils/$i.py + sed -i -e '1{\@^#! *%{_bindir}.*python@d}' %{buildroot}%{$python_sitelib}/docutils/utils/$i.py done for i in writers/xetex/__init__ writers/_html_base __main__ parsers/commonmark_wrapper parsers/recommonmark_wrapper ; do - sed -i -e '1{\@^#! */usr/bin.*python@d}' %{buildroot}%{$python_sitelib}/docutils/$i.py + sed -i -e '1{\@^#! *%{_bindir}.*python@d}' %{buildroot}%{$python_sitelib}/docutils/$i.py done }