From 5e9d372469f7aabbe0300f0f85bc6b593c26eeb9 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Jul 20 2018 02:41:55 +0000 Subject: Fixed Python shebangs Added BR: python2-enum34 --- diff --git a/libffado.spec b/libffado.spec index b79aeec..179592f 100644 --- a/libffado.spec +++ b/libffado.spec @@ -1,7 +1,7 @@ Summary: Free firewire audio driver library Name: libffado Version: 2.4.1 -Release: 2%{?dist} +Release: 3%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) @@ -31,6 +31,7 @@ BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: python2-PyQt5-devel BuildRequires: python2-devel +BuildRequires: python2-enum34 BuildRequires: python2-scons BuildRequires: subversion ExcludeArch: s390 s390x @@ -76,6 +77,12 @@ sed -i '/Install/d' tests/{,*/}SConscript # Use standard icon name sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py +# Fix Python shebangs +sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \ + admin/*.py doc/SConscript tests/python/*.py tests/*.py \ + support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \ + support/tools/*.py support/tools/SConscript + %build export CFLAGS="%{optflags} -ffast-math" export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" @@ -90,6 +97,7 @@ scons %{?_smp_mflags} \ MANDIR=%{_mandir} \ UDEVDIR=%{_prefix}/lib/udev/rules.d/ \ PYPKGDIR=%{python_sitelib}/ffado/ \ + PYTHON_INTERPRETER=/usr/bin/python2 \ BUILD_TESTS=1 %install @@ -148,6 +156,10 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jul 19 2018 Orcan Ogetbil - 2.4.1-3 +- Fixed Python shebangs +- Added BR: python2-enum34 + * Fri Jul 13 2018 Fedora Release Engineering - 2.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild