]> git.pld-linux.org Git - packages/fftw3.git/commitdiff
- enable long double support for alpha, ppc, sparc. auto/th/fftw3-3_1-3
authorPaweł Sikora <pluto@pld-linux.org>
Thu, 16 Mar 2006 15:03:55 +0000 (15:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  with new toolchain ldbl != dbl on alpha/ppc/sparc/s390.

  on ppc the long-double from "C" represents a double-double format.
  http://developer.apple.com/documentation/mac/PPCNumerics/PPCNumerics-18.html

Changed files:
    fftw3.spec -> 1.25

fftw3.spec

index 748e4418c6d6ee49aa50aeae329a3c43262111e9..ec0bac0d6489a1444b6e0866231c82325ddebad6 100644 (file)
@@ -1,16 +1,9 @@
-#
-%bcond_without fftwl   # don't build "long" subpackages
-#
-%ifarch alpha ppc sparc
-# sizeof(double long)==sizeof(double) on these archs
-%undefine      with_fftwl
-%endif
 Summary:       Fast Fourier Transform library
 Summary(pl):   Biblioteka z funkcjami szybkiej transformaty Fouriera
 Summary(pt_BR):        biblioteca fast fourier transform
 Name:          fftw3
 Version:       3.1
-Release:       2
+Release:       3
 License:       GPL
 Group:         Libraries
 Source0:       ftp://ftp.fftw.org/pub/fftw/fftw-%{version}.tar.gz
@@ -21,7 +14,10 @@ Patch2:              %{name}-ac_simd.patch
 URL:           http://www.fftw.org/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gcc-g77
+# for 128-bit long double support
+BuildRequires: gcc-fortran >= 5:4.1.0-1
+BuildRequires: glibc >= 6:2.4-1
+#
 BuildRequires: libtool
 BuildRequires: texinfo
 Requires:      %{name}-common = %{version}-%{release}
@@ -232,7 +228,7 @@ cp -a `cat files.list` long-double
 ln -sf . double
 
 # MMX/SSE/etc. seem to be safe because of runtime CPU detection
-for ver in single double %{?with_fftwl:long-double} ; do
+for ver in single double long-double; do
        OPTS=""
        # k7,SSE,3dnow,altivec only for single
        if [ "$ver" = "single" ]; then
@@ -277,10 +273,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install -C single \
        DESTDIR=$RPM_BUILD_ROOT
 
-%if %{with fftwl}
 %{__make} install -C long-double\
        DESTDIR=$RPM_BUILD_ROOT
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -334,7 +328,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libfftw3f.a
 %{_libdir}/libfftw3f_threads.a
 
-%if %{with fftwl}
 %files long
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/fftwl-wisdom
@@ -354,7 +347,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libfftw3l.a
 %{_libdir}/libfftw3l_threads.a
-%endif
 
 %files common
 %defattr(644,root,root,755)
This page took 0.10212 seconds and 4 git commands to generate.