Matej Cepl 2022-11-02 14:34:51 +00:00 committed by Git OBS Bridge
parent e947df43a0
commit 1d1cf20a39

View File

@ -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
}