SPECS: fftw.spec - single precision library added (needed by alsa-...

blekot blekot at pld-linux.org
Fri Jun 24 18:31:51 CEST 2005


Author: blekot                       Date: Fri Jun 24 16:31:51 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- single precision library added (needed by alsa-module-synth)
- bcond added
- rel 2
- STBR/test

---- Files affected:
SPECS:
   fftw.spec (1.51 -> 1.52) 

---- Diffs:

================================================================
Index: SPECS/fftw.spec
diff -u SPECS/fftw.spec:1.51 SPECS/fftw.spec:1.52
--- SPECS/fftw.spec:1.51	Mon Dec 20 19:58:08 2004
+++ SPECS/fftw.spec	Fri Jun 24 18:31:45 2005
@@ -1,10 +1,14 @@
 # $Revision$, $Date$
+#
+# 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
-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:	lam
 BuildRequires:	libtool
 BuildRequires:	texinfo
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -50,7 +55,7 @@
 
 %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
@@ -79,10 +84,34 @@
 Este pacote contém as bibliotecas estáticas do pacote FFTW.
 
 %prep
-%setup -q
+%setup -q 
 %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}
@@ -94,12 +123,20 @@
 	--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
 
@@ -136,6 +173,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.52  2005/06/24 16:31:45  blekot
+- single precision library added (needed by alsa-module-synth)
+- bcond added
+- rel 2
+- STBR/test
+
 Revision 1.51  2004/12/20 18:58:08  qboosh
 - BR: texinfo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/fftw.spec?r1=1.51&r2=1.52&f=u




More information about the pld-cvs-commit mailing list