From 327c2ea933f2fe2218b0d91ffd521291d05528fb Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Jul 23 2018 15:14:42 +0000 Subject: fix build to use python2 explicitly --- diff --git a/xmms2.spec b/xmms2.spec index 9eca00e..2b2f989 100644 --- a/xmms2.spec +++ b/xmms2.spec @@ -10,7 +10,7 @@ License: LGPLv2+ and GPLv2+ and BSD Group: Applications/Multimedia # We can't use the upstream source tarball as-is, because it includes an mp4 decoder. # Also, the ogg sample included is not under a FOSS license. -# http://downloads.sourceforge.net/xmms2/%{name}-%{version}%{codename}.tar.bz2 +# http://downloads.sourceforge.net/xmms2/%%{name}-%%{version}%%{codename}.tar.bz2 # Cleaning it is simple, just rm -rf src/plugins/mp4 mind.in.a.box-lament_snipplet.ogg Source0: %{name}-%{version}%{codename}-clean.tar.bz2 Source1: xmms2-client-launcher.sh @@ -51,7 +51,7 @@ BuildRequires: libvisual-devel, wavpack-devel, SDL-devel BuildRequires: glib2-devel, readline-devel, ncurses-devel # For /usr/share/perl5/ExtUtils/xsubpp BuildRequires: perl-ExtUtils-ParseXS -BuildRequires: gcc, gcc-c++ +BuildRequires: gcc, gcc-c++, python2-devel %description XMMS2 is an audio framework, but it is not a general multimedia player - it @@ -146,6 +146,9 @@ chmod -x src/include/xmmsclient/xmmsclient++/dict.h # sed -i 's|/usr/lib|%{_libdir}|g' $i # done # sed -i 's|"lib"|"%{_lib}"|g' wscript +for i in doc/tutorial/python/tut1.py doc/tutorial/python/tut2.py doc/tutorial/python/tut3.py doc/tutorial/python/tut4.py doc/tutorial/python/tut5.py doc/tutorial/python/tut6.py utils/gen-tree-hashes.py utils/gen-wiki-release-bugs.py utils/gen-tarball.py utils/gen-wiki-release-authors.py waf waftools/podselect.py waftools/genipc.py waftools/genipc_server.py waftools/cython.py; do + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|g' $i +done %build export CFLAGS="%{optflags}" @@ -233,6 +236,7 @@ install -m0755 %{SOURCE1} %{buildroot}%{_bindir} %changelog * Mon Jul 23 2018 Tom Callaway - 0.8-56 - add BuildRequires: gcc, gcc-c++ +- fix build to use python2 explicitly * Sat Jul 14 2018 Fedora Release Engineering - 0.8-55 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild