forked from pool/python-pyqt-rpm-macros
Accepting request 850603 from KDE:Qt5
OBS-URL: https://build.opensuse.org/request/show/850603 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyqt-rpm-macros?expand=0&rev=2
This commit is contained in:
commit
c8a8cb3fe2
@ -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}
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user