Use python2 explicitly

Using unversioned python is forbidden in Fedora's RPMs.
This commit is contained in:
Miro Hrončok 2018-07-29 17:28:10 +02:00
parent d22fdcc501
commit 7c1db556d3

View File

@ -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