]> git.pld-linux.org Git - packages/fftw3.git/blobdiff - fftw3.spec
- no *-long on sparc (long double is equal double)
[packages/fftw3.git] / fftw3.spec
index 845b729876228768f5fcbfc17f3d799dacf55552..34016e9d4bdaedd6dd1286e0331df682cba2237c 100644 (file)
@@ -1,9 +1,16 @@
+#
+%bcond_without fftwl   # don't build -long subpackages
+#
+%ifarch sparc
+# sparc has sizeof(double long)==sizeof(double)
+%undefine      with_long
+%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.0.1
-Release:       1
+Release:       2
 License:       GPL
 Group:         Libraries
 Source0:       ftp://ftp.fftw.org/pub/fftw/fftw-%{version}.tar.gz
@@ -222,7 +229,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 long-double ; do
+for ver in single double %{with_fftwl:long-double} ; do
        OPTS=""
        # k7,SSE,3dnow,altivec only for single
        if [ "$ver" = "single" ]; then
@@ -237,6 +244,9 @@ for ver in single double long-double ; do
 %endif
 %ifarch ppc
                OPTS="--enable-altivec"
+%endif
+%ifnarch i586 i686 k6 athlon ppc
+               :       # keep sh happy about syntax
 %endif
        fi
 %ifarch i686
@@ -267,8 +277,10 @@ 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
@@ -322,6 +334,7 @@ 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
@@ -341,6 +354,7 @@ 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.081081 seconds and 4 git commands to generate.