]> git.pld-linux.org Git - packages/fftw.git/blobdiff - fftw.spec
- my commit reverted --> BR: lam is important to compile FFTW MPI library, but we...
[packages/fftw.git] / fftw.spec
index 70484edd5b90a3a60743980c8b38e23ed25060b9..fac4e1c92116caa78feea603b2358fae58940bdd 100644 (file)
--- a/fftw.spec
+++ b/fftw.spec
@@ -1,9 +1,13 @@
+#
+# Conditional build
+%bcond_without  single            # without single precision library
+
 Summary:       Fast Fourier transform library
-Summary(pl):   Biblioteka z funkacjami szybkiej transformaty Fouriera
-Summary(pt_BR):        biblioteca fast fourier transform
+Summary(pl):   Biblioteka z funkcjami szybkiej transformaty Fouriera
+Summary(pt_BR):        Biblioteca fast Fourier transform
 Name:          fftw
 Version:       2.1.5
-Release:       1
+Release:       2
 License:       GPL
 Group:         Libraries
 Source0:       ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
@@ -14,6 +18,7 @@ URL:          http://www.fftw.org/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libtool
+BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,13 +53,13 @@ Requires:   %{name} = %{version}
 
 %description devel
 This package contains the additional header files, documentation and
-libraries you need to develop programs using the FFTW (fast fourier
+Libraries you need to develop programs using the FFTW (fast Fourier
 transform library).
 
 %description devel -l pl
-Ten pakiet zawiera dodatkowe pliki nag³ówkowe, dokumetacjê oraz
+Ten pakiet zawiera dodatkowe pliki nag³ówkowe, dokumentacjê oraz
 biblioteki niezbêdne do tworzenia programów u¿ywaj±cych biblioteki
-FFTW (fast fourier transform library).
+FFTW (fast Fourier transform library).
 
 %description devel -l pt_BR
 Este pacote contém documentação, headers e bibliotecas adicionais para
@@ -81,6 +86,30 @@ Este pacote cont
 %patch -p1
 
 %build
+# This is important to do sfftw (Single precision library)
+%if %{with single}
+cp -r ../%{name}-%{version} ../single
+cd ../single
+
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+%ifarch %{ix86}
+        --enable-i386-hacks \
+%endif
+        --enable-shared \
+        --enable-threads \
+        --enable-float \
+       --enable-type-prefix \
+        --%{!?debug:dis}%{?debug:en}able-debug
+
+%{__make}
+
+cd -
+%endif
+
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -92,12 +121,20 @@ Este pacote cont
        --enable-shared \
        --enable-threads \
        --%{!?debug:dis}%{?debug:en}able-debug
+#        --enable-type-prefix \
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with single}
+cd ../single
+%{__make} install \
+        DESTDIR=$RPM_BUILD_ROOT
+cd -
+%endif
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
This page took 0.256224 seconds and 4 git commands to generate.