diff --git a/fftw.spec b/fftw.spec index b7b8c6b..c8cc140 100644 --- a/fftw.spec +++ b/fftw.spec @@ -1,6 +1,6 @@ Name: fftw Version: 3.3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Fast Fourier Transform library Group: System Environment/Libraries License: GPLv2+ @@ -149,8 +149,9 @@ export F77=gfortran %endif BASEFLAGS="--enable-shared --disable-dependency-tracking --enable-threads" + %if %{openmp} -BASEFLAGS="$BASEFLAGS --enable-openmp" +BASEFLAGS+=" --enable-openmp" %endif # Precisions to build @@ -165,6 +166,13 @@ prec_flags[1]=--enable-double prec_flags[2]=--enable-long-double prec_flags[3]=--enable-quad-precision +%ifarch x86_64 +# x86_64 always has SSE2, enable it for single and double +for((i=0;i<2;i++)); do + prec_flags[i]+=" --enable-sse2" +done +%endif + # Loop over precisions %if %{quad} for((iprec=0;iprec<4;iprec++)) @@ -292,6 +300,9 @@ fi %{_libdir}/libfftw3*.a %changelog +* Tue Dec 18 2012 Susi Lehtola - 3.3.3-2 +- Enable SSE2 on x86_64. + * Mon Nov 26 2012 Jussi Lehtola - 3.3.3-1 - Update to 3.3.3.