From 7c1db556d309bc4a55c1ebbdab8d413fd7e5e8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 29 Jul 2018 17:28:10 +0200 Subject: [PATCH] Use python2 explicitly Using unversioned python is forbidden in Fedora's RPMs. --- guitarix.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/guitarix.spec b/guitarix.spec index 6e7191a..0ad5e99 100644 --- a/guitarix.spec +++ b/guitarix.spec @@ -16,7 +16,9 @@ Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{altname2 Patch3: guitarix-0.35.0-abs-unsigned-fix.patch BuildRequires: gcc-c++ -BuildRequires: python +BuildRequires: python2 +BuildRequires: %{_bindir}/find +BuildRequires: %{_bindir}/pathfix.py BuildRequires: desktop-file-utils BuildRequires: faust BuildRequires: fftw-devel @@ -139,6 +141,14 @@ guitarix, but can also be used by any other ladspa host. %prep %setup -q -n %{name}-%{version} +# Fix unversioned python shebangs +pathfix.py -pni %{_bindir}/python2 \ + $(find -name wscript) \ + waf \ + tools/make_jsonrpc_methods \ + src/gx_head/builder/make \ + . + # The build system does not use these bundled libraries by default. But # just to make sure: rm -fr src/zita-convolver src/zita-resampler