[rakarrack] use compile optimisation flags to avoid sse2 instructions on pentiumIII

David Timms dtimms at fedoraproject.org
Tue May 10 11:42:09 UTC 2011


commit 2edbff79406132cf9b9164818f3af837e4b572e9
Author: David Timms <dtimms at iinet.net.au>
Date:   Tue May 10 21:40:50 2011 +1000

    use compile optimisation flags to avoid sse2 instructions on pentiumIII

 rakarrack.spec |   40 +++++++++++++++++++++++++++++++---------
 1 files changed, 31 insertions(+), 9 deletions(-)
---
diff --git a/rakarrack.spec b/rakarrack.spec
index 25e4710..1fd7112 100644
--- a/rakarrack.spec
+++ b/rakarrack.spec
@@ -1,12 +1,16 @@
+%define gitrev 47245c3
+
 Summary: Audio effects processing rack for guitar
 Name:    rakarrack
 Version: 0.6.1
-Release: 3%{?dist}
+Release: 4.git%{gitrev}%{?dist}
 License: GPLv2
 Group:   Applications/Multimedia
 URL:     http://%{name}.sourceforge.net/
-Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
-Patch1:  rakarrack-cleaner_shutdown_on_jack_death.patch
+#S#ource0: http://downloads.sourceforge.net/%#{name}/%#{name}-%{version}.tar.bz2
+#S#ource0: http://rakarrack.git.sourceforge.net/git/gitweb.cgi?p=rakarrack/rakarrack;a=snapshot;h=47245c3fd30dc326fedd7cdae444ddcf0fd97490;sf=tgz
+Source0:  rakarrack-47245c3.tar.gz
+
 Requires: hicolor-icon-theme
 
 # mod of doc dir in configure.in requires autoconf/automake
@@ -21,6 +25,7 @@ BuildRequires: libXpm-devel libpng-devel libjpeg-devel
 BuildRequires: fftw-devel
 BuildRequires: desktop-file-utils
 
+
 %description
 Rakarrack is a basic rack of effects for guitar. 10 effects. Two EQ
 (multiband and parametric), distortion, overdrive, echo, chorus,
@@ -35,20 +40,31 @@ Nasca is our hero and a continuous inspiration
 
 
 %prep
-%setup -q -n %{name}-%{version}
+# for releases
+#%#setup -q -n %#{name}-%#{version}
+# for git snapshot
+%setup -q -n %{name}-%{gitrev}
 
 %{__sed} -i 's/Icon=icono_rakarrack_128x128/Icon=rakarrack/' data/%{name}.desktop
 %{__sed} -i 's/Guitar Effects Processor/Real-time audio effects processing rack for guitar/' data/%{name}.desktop
 echo "GenericName=Digital audio effects processor" >> data/%{name}.desktop
 echo "Version=1.0" >> data/%{name}.desktop
 
-%patch1 -p1 -b .nicer-shutdown
-
 
 %build
-%configure --enable-docdir=yes --docdir=%{_docdir}/%{name}-%{version}
-
-# if DFortifySOurce is not passed to compile, try del smp_mflags
+./autogen.sh
+
+# ensure the builder arch does not influence the build 
+%if "%{?_isa}" == "(x86-64)"
+  %define optimise "--enable-sse2"
+%else
+  %define optimise "--enable-sse"
+%endif  
+ 
+%configure --enable-docdir=yes --docdir=%{_docdir}/%{name}-%{version} \
+    %{optimise}
+  
+# if DFortifySource is not passed to compile, try del smp_mflags
 %{__make} %{?_smp_mflags}
 
 
@@ -110,6 +126,12 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Tue May 10 2011 David Timms <iinet.net.au @ dtimms> - 0.6.1-4.git47245c3
+- use compile optimisation flags to avoid sse2 instructions on pentiumIII
+
+* Fri Apr 29 2011 David Timms <iinet.net.au @ dtimms> - 0.6.1-3.git47245c3
+- update to git snapshot to diagnose bug 700183
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list