Add missing macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=74
This commit is contained in:
parent
e947df43a0
commit
1d1cf20a39
@ -81,10 +81,10 @@ done
|
|||||||
|
|
||||||
# Remove shebang from non-executable files
|
# Remove shebang from non-executable files
|
||||||
for i in code_analyzer error_reporting punctuation_chars smartquotes math/latex2mathml math/math2html math/tex2mathml_extern ; do
|
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
|
done
|
||||||
for i in writers/xetex/__init__ writers/_html_base __main__ parsers/commonmark_wrapper parsers/recommonmark_wrapper ; do
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user