forked from pool/fftw3
Accepting request 115693 from openSUSE:Factory:ARM
fix arm build OBS-URL: https://build.opensuse.org/request/show/115693 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/fftw3?expand=0&rev=32
This commit is contained in:
parent
8867ff5b2d
commit
5ee91b1ef9
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 26 04:26:02 UTC 2012 - adrian@suse.de
|
||||||
|
|
||||||
|
- fix build on %arm
|
||||||
|
* disable neon it would require --enable-single (precision)
|
||||||
|
- enable openmpi for %arm
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 16 01:17:58 UTC 2012 - alinm.elena@gmail.com
|
Fri Mar 16 01:17:58 UTC 2012 - alinm.elena@gmail.com
|
||||||
|
|
||||||
|
18
fftw3.spec
18
fftw3.spec
@ -20,7 +20,7 @@ Name: fftw3
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%ifnarch s390 s390x %arm
|
%ifnarch s390 s390x
|
||||||
BuildRequires: openmpi-devel
|
BuildRequires: openmpi-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 3.3.1
|
Version: 3.3.1
|
||||||
@ -114,7 +114,7 @@ FFTW is a C subroutine library for computing the Discrete Fourier
|
|||||||
Transform (DFT) in one or more dimensions, of both real and complex
|
Transform (DFT) in one or more dimensions, of both real and complex
|
||||||
data, and of arbitrary input size.
|
data, and of arbitrary input size.
|
||||||
|
|
||||||
%ifnarch s390 s390x %arm
|
%ifnarch s390 s390x
|
||||||
|
|
||||||
%package -n libfftw3_mpi3
|
%package -n libfftw3_mpi3
|
||||||
Summary: Discrete Fourier Transform (DFT) C subroutine library
|
Summary: Discrete Fourier Transform (DFT) C subroutine library
|
||||||
@ -149,18 +149,15 @@ data, and of arbitrary input size.
|
|||||||
%patch0
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifnarch s390 s390x %arm
|
%ifnarch s390 s390x
|
||||||
source %_libdir/mpi/gcc/openmpi/bin/mpivars.sh
|
source %_libdir/mpi/gcc/openmpi/bin/mpivars.sh
|
||||||
%endif
|
%endif
|
||||||
%configure --enable-shared --enable-threads --enable-openmp \
|
%configure --enable-shared --enable-threads --enable-openmp \
|
||||||
%ifnarch s390 s390x %arm
|
%ifnarch s390 s390x
|
||||||
--enable-mpi \
|
--enable-mpi \
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86 x86_64
|
%ifarch %ix86 x86_64
|
||||||
--enable-sse2 \
|
--enable-sse2 \
|
||||||
%endif
|
|
||||||
%ifarch %arm
|
|
||||||
--enable-neon \
|
|
||||||
%endif
|
%endif
|
||||||
--disable-static
|
--disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -174,18 +171,15 @@ rm -f %{buildroot}%{_libdir}/lib*.*a
|
|||||||
# hack to also compile/install single-precision version:
|
# hack to also compile/install single-precision version:
|
||||||
make distclean
|
make distclean
|
||||||
|
|
||||||
%ifnarch s390 s390x %arm
|
%ifnarch s390 s390x
|
||||||
source %_libdir/mpi/gcc/openmpi/bin/mpivars.sh
|
source %_libdir/mpi/gcc/openmpi/bin/mpivars.sh
|
||||||
%endif
|
%endif
|
||||||
%configure --enable-shared --enable-threads --enable-float --enable-openmp \
|
%configure --enable-shared --enable-threads --enable-float --enable-openmp \
|
||||||
%ifnarch s390 s390x %arm
|
%ifnarch s390 s390x
|
||||||
--enable-mpi \
|
--enable-mpi \
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86 x86_64
|
%ifarch %ix86 x86_64
|
||||||
--enable-sse \
|
--enable-sse \
|
||||||
%endif
|
|
||||||
%ifarch %arm
|
|
||||||
--enable-neon \
|
|
||||||
%endif
|
%endif
|
||||||
--disable-static
|
--disable-static
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user