Fix Python shebang in examples subpackage to avoid depending on Python2

The "/usr/bin/env python" shebang in maliit-exampleapp-gtk3-python.py executable is being mangled during build to "/usr/bin/python2" and is generating a dependency on Python 2. This PR replaces it with "/usr/bin/python3" so that the subpackage requires Python 3 only.
epel9
Iryna Shcherbina 7 years ago
parent 0ff21af3e1
commit 68bc0b0e67

@ -1,6 +1,6 @@
Name: maliit-framework Name: maliit-framework
Version: 0.94.2 Version: 0.94.2
Release: 15%{?dist} Release: 16%{?dist}
Summary: Input method framework Summary: Input method framework
Group: System Environment/Libraries Group: System Environment/Libraries
@ -86,6 +86,9 @@ This package contains tests and examples for %{name}.
%setup -q %setup -q
sed -i 's/ -O0//' config.pri sed -i 's/ -O0//' config.pri
# Fix shebang of maliit-exampleapp-gtk3-python.py executable to avoid depending on Python 2.
sed -i '1s=^#!/usr/bin/env python=#!/usr/bin/python3=' examples/apps/gtk3-python/maliit-exampleapp-gtk3-python.py
%build %build
%{qmake_qt4} -r MALIIT_VERSION=%{version} PREFIX=%{_prefix} \ %{qmake_qt4} -r MALIIT_VERSION=%{version} PREFIX=%{_prefix} \
@ -151,6 +154,9 @@ mkdir -p %{buildroot}%{_datadir}/maliit
%{_libdir}/maliit-framework-tests %{_libdir}/maliit-framework-tests
%changelog %changelog
* Mon Jun 04 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> - 0.94.2-16
- Fix Python shebang in examples subpackage to avoid depending on Python2
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.94.2-15 * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.94.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save