]> git.pld-linux.org Git - packages/fftw.git/commitdiff
- single precision library added (needed by alsa-module-synth)
authorblekot <blekot@pld-linux.org>
Fri, 24 Jun 2005 16:31:45 +0000 (16:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- bcond added
- rel 2
- STBR/test

Changed files:
    fftw.spec -> 1.52

fftw.spec

index 304a913ba158f27ab21f8adced4b1536a1e711be..cc7e02b338964b88e42554d0e55cca705356b6bb 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 funkcjami szybkiej transformaty Fouriera
 Summary(pt_BR):        Biblioteca fast Fourier transform
 Name:          fftw
 Version:       2.1.5
 Summary:       Fast Fourier transform library
 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
 License:       GPL
 Group:         Libraries
 Source0:       ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
@@ -13,6 +17,7 @@ Icon:         fftw-logo-thumb.gif
 URL:           http://www.fftw.org/
 BuildRequires: autoconf
 BuildRequires: automake
 URL:           http://www.fftw.org/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: lam
 BuildRequires: libtool
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 BuildRequires: libtool
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,7 +54,7 @@ Requires:     %{name} = %{version}
 
 %description devel
 This package contains the additional header files, documentation and
 
 %description devel
 This package contains the additional header files, documentation and
-libraries you need to develop programs using the FFTW (fast Fourier
+7ibraries you need to develop programs using the FFTW (fast Fourier
 transform library).
 
 %description devel -l pl
 transform library).
 
 %description devel -l pl
@@ -78,10 +83,34 @@ Statyczne biblioteki fftw.
 Este pacote contém as bibliotecas estáticas do pacote FFTW.
 
 %prep
 Este pacote contém as bibliotecas estáticas do pacote FFTW.
 
 %prep
-%setup -q
+%setup -q 
 %patch -p1
 
 %build
 %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}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -93,12 +122,20 @@ Este pacote cont
        --enable-shared \
        --enable-threads \
        --%{!?debug:dis}%{?debug:en}able-debug
        --enable-shared \
        --enable-threads \
        --%{!?debug:dis}%{?debug:en}able-debug
+#        --enable-type-prefix \
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 
 %{__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
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
This page took 0.030369 seconds and 4 git commands to generate.