SPECS: fftw3.spec - separate builddirs instead of copying whole so...

qboosh qboosh at pld-linux.org
Wed Dec 26 04:01:22 CET 2007


Author: qboosh                       Date: Wed Dec 26 03:01:22 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate builddirs instead of copying whole sources
- ghost soname symlinks
- GPL v2+

---- Files affected:
SPECS:
   fftw3.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/fftw3.spec
diff -u SPECS/fftw3.spec:1.35 SPECS/fftw3.spec:1.36
--- SPECS/fftw3.spec:1.35	Mon Nov 12 14:36:28 2007
+++ SPECS/fftw3.spec	Wed Dec 26 04:01:17 2007
@@ -9,7 +9,7 @@
 Name:		fftw3
 Version:	3.1.2
 Release:	5
-License:	GPL
+License:	GPL v2+
 Group:		Libraries
 Source0:	ftp://ftp.fftw.org/pub/fftw/fftw-%{version}.tar.gz
 # Source0-md5:	08f2e21c9fd02f4be2bd53a62592afa4
@@ -229,14 +229,6 @@
 %{__autoconf}
 %{__automake}
 
-# prepare three trees (for single, double, long-double precision)
-rm -rf single double long-double
-echo * > files.list
-install -d single long-double
-cp -a `cat files.list` single
-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
 	OPTS=""
@@ -261,8 +253,9 @@
 		OPTS="--enable-sse2"
 	fi
 %endif
-cd $ver
-%configure \
+install -d build-${ver}
+cd build-${ver}
+../%configure \
 	--enable-shared \
 	--enable-threads \
 	--enable-$ver \
@@ -270,21 +263,20 @@
 	--%{!?debug:dis}%{?debug:en}able-debug
 
 %{__make}
-
 cd ..
 done
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} install -C build-single \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__make} install -C single \
+%{__make} install -C build-double \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with fftwl}
-%{__make} install -C long-double \
+%{__make} install -C build-long-double \
 	DESTDIR=$RPM_BUILD_ROOT
 %endif
 
@@ -310,7 +302,9 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/fftw-wisdom
 %attr(755,root,root) %{_libdir}/libfftw3.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfftw3.so.3
 %attr(755,root,root) %{_libdir}/libfftw3_threads.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfftw3_threads.so.3
 %{_mandir}/man1/fftw-wisdom.1*
 
 %files devel
@@ -330,7 +324,9 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/fftwf-wisdom
 %attr(755,root,root) %{_libdir}/libfftw3f.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfftw3f.so.3
 %attr(755,root,root) %{_libdir}/libfftw3f_threads.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfftw3f_threads.so.3
 %{_mandir}/man1/fftwf-wisdom.1*
 
 %files single-devel
@@ -351,7 +347,9 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/fftwl-wisdom
 %attr(755,root,root) %{_libdir}/libfftw3l.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfftw3l.so.3
 %attr(755,root,root) %{_libdir}/libfftw3l_threads.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfftw3l_threads.so.3
 %{_mandir}/man1/fftwl-wisdom.1*
 
 %files long-devel
@@ -377,7 +375,8 @@
 %files common-devel
 %defattr(644,root,root,755)
 %doc doc/html doc/FAQ/fftw-faq.html
-%{_includedir}/fftw3.*
+%{_includedir}/fftw3.f
+%{_includedir}/fftw3.h
 %{_infodir}/fftw3.info*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -386,6 +385,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2007-12-26 03:01:17  qboosh
+- separate builddirs instead of copying whole sources
+- ghost soname symlinks
+- GPL v2+
+
 Revision 1.35  2007-11-12 13:36:28  hawk
 - fixed building on i586, release 5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/fftw3.spec?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list