1
0
Dominique Leuenberger 2020-11-29 11:24:05 +00:00 committed by Git OBS Bridge
commit c8a8cb3fe2
2 changed files with 9 additions and 2 deletions

View File

@ -59,8 +59,9 @@ find %{buildroot}%{_libqt5_plugindir} -name '*pyqt5*.so' \\\
exdir=%{buildroot}%{_docdir}/%{$python_prefix}-%{1} \ exdir=%{buildroot}%{_docdir}/%{$python_prefix}-%{1} \
mkdir -p $exdir \ mkdir -p $exdir \
cp -r examples $exdir/ \ cp -r examples $exdir/ \
# Fix wrong-script-interpreter \ # Fix shebang. Depending on version of python-rpm-macros, expanded python could be basename or full path. \
find $exdir -name "*.py" -exec sed -i "1 s|^#!%{_bindir}/env python.*$|#!%{_bindir}/$python|" {} \\; \ python_exec=$(which $python) \
find $exdir -name "*.py" -exec sed -i "1 s|^#!%{_bindir}/env python.*$|#!${python_exec}|" {} \\; \
%fdupes $exdir \ %fdupes $exdir \
} \ } \
%{nil} %{nil}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 24 11:03:47 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Fix shebang replacement in pyqt_install_examples
gh#openSUSE/python-rpm-macros#66
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 5 11:15:04 UTC 2020 - Benjamin Greiner <code@bnavigator.de> Thu Nov 5 11:15:04 UTC 2020 - Benjamin Greiner <code@bnavigator.de>