From 531f82751d27a7d0f516493c8affe989c2353dcc Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Feb 12 2019 03:28:27 +0000 Subject: Versioned Python shebangs Converted some Python2 scripts to Python3 --- diff --git a/muse.spec b/muse.spec index df804cc..61469b7 100644 --- a/muse.spec +++ b/muse.spec @@ -11,7 +11,7 @@ Summary: Midi/Audio Music Sequencer # See: https://fedoraproject.org/wiki/AudioCreation Epoch: 1 Version: 3.0.2 -Release: 5%{?dist} +Release: 6%{?dist} # original freeverb plugin was public domain # givertcap (not built) is GPLv2 # The rest, including the core of muse is distributed under GPLv2+ @@ -38,6 +38,7 @@ BuildRequires: lilv-devel BuildRequires: libsamplerate-devel BuildRequires: libsndfile-devel BuildRequires: pkgconfig +BuildRequires: python3-devel BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qttools-static # Only Fedora > 27 has recent enough rtaudio @@ -60,6 +61,11 @@ for Linux. %setup -q %patch0 -p1 -b .includes +# Convert to Python3. Only "print" and "raw_input" occurences +2to3 --write --nobackups utils/muse* +# Fix Python shebangs +sed -i -e 's|/usr/bin/env python3|%{__python3}|' -e 's|/usr/bin/python|%{__python3}|' share/scripts/* utils/* + %build export CMAKE_CXX_FLAGS="-D_GNU_SOURCE" mkdir -p %{_target_platform} @@ -95,6 +101,10 @@ appstream-util validate-relax --nonet \ %{_datadir}/metainfo/%{name}.appdata.xml %changelog +* Mon Feb 11 2019 Orcan Ogetbil - 1:3.0.2-6 +- Versioned Python shebangs +- Converted some Python2 scripts to Python3 + * Fri Feb 01 2019 Fedora Release Engineering - 1:3.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild