From 1d1cf20a390234a3d309b5909ed47d3a4531a423daed5a12c75a780550263a8b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Nov 2022 14:34:51 +0000 Subject: [PATCH] Add missing macro OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=74 --- python-docutils.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }