diff --git a/blueberry.spec b/blueberry.spec index a5940fd..7f954d9 100644 --- a/blueberry.spec +++ b/blueberry.spec @@ -1,6 +1,6 @@ Name: blueberry Version: 1.1.15 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Bluetooth configuration tool License: GPLv3+ @@ -53,6 +53,14 @@ do %{__rm} -f ${file}.orig done +%if (0%{?rhel} && 0%{?rhel} >= 7) +for f in $(%{__grep} -Rl '#!.*python3') ; do + %{__sed} -e 's~#!.*python3~/#!usr/bin/python2~g' < ${f} > ${f}.new + /bin/touch -r ${f}.new ${f} + %{__mv} -f ${f}.new ${f} +done +%endif # (0%%{?rhel} && 0%%{?rhel} >= 7) + %build %make_build @@ -115,6 +123,9 @@ fi %changelog +* Thu Aug 31 2017 Björn Esser - 1.1.15-3 +- Use Python2 on EPEL <= 7 + * Wed Jul 26 2017 Fedora Release Engineering - 1.1.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild