From 68bc0b0e6742660c8658e8150e86435f90c7576d Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Mon, 4 Jun 2018 10:10:53 +0200 Subject: [PATCH] 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. --- maliit-framework.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/maliit-framework.spec b/maliit-framework.spec index c774f12..93ac79a 100644 --- a/maliit-framework.spec +++ b/maliit-framework.spec @@ -1,6 +1,6 @@ Name: maliit-framework Version: 0.94.2 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Input method framework Group: System Environment/Libraries @@ -86,6 +86,9 @@ This package contains tests and examples for %{name}. %setup -q 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 %{qmake_qt4} -r MALIIT_VERSION=%{version} PREFIX=%{_prefix} \ @@ -151,6 +154,9 @@ mkdir -p %{buildroot}%{_datadir}/maliit %{_libdir}/maliit-framework-tests %changelog +* Mon Jun 04 2018 Iryna Shcherbina - 0.94.2-16 +- Fix Python shebang in examples subpackage to avoid depending on Python2 + * Thu Feb 08 2018 Fedora Release Engineering - 0.94.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild