%define name fftw %define version 2.1.5 %define release 1%{?_dist_release} Name: %{name} Summary: C subroutines for computing the Discrete Fourier Transform. Version: %{version} Release: %{release} License: GPL Icon: fftw-logo-thumb.gif Group: Development/Libraries Source: %{name}-%{version}.tar.gz %{?nosrc:NoSource: 0} Patch0: %{name}-%{version}-pentium.patch URL: http://www.fftw.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: glibc, gcc-gfortran Requires: glibc Vendor: Project Vine Distribution: Vine Linux %description FFTW is a collection of fast C routines for computing the Discrete Fourier Transform in one or more dimensions. It includes complex, real, and parallel transforms, and can handle arbitrary array sizes efficiently. This RPM package includes both the double- and single-precision FFTW uniprocessor and threads libraries. (The single-precision files have an "s" prefix.) %description -l ja FFTWは、1次元または多次元の離散的フーリエ変換(DFT)を計算する高速なCルーチンのコレクションです。FFTWは複素数、実数、並列変換ができ、任意のサイズの配列を効果的に扱うことができます。このパッケージには、倍精度と単精度の単一CPUとスレッドに対応したFFTWのライブラリが収められています。(単精度用のファイル名にはsが最初に付けられています。) %package devel Summary: Headers, libraries, & docs for FFTW fast fourier transform library Group: Development/Libraries Prefix: %{_prefix} Requires: %{name} = %{version}-%{release} %description devel This package contains the additional header files, documentation, and libraries you need to develop programs using the FFTW fast fourier transform library. %description devel -l ja このパッケージには、高速フーリエ変換のライブラリであるFFTWを使ってプログラムを開発する際に必要となるヘッダーファイルやドキュメント、ライブラリが収められています。 %prep rm -rf $RPM_BUILD_ROOT # We will be compiling two copies of FFTW, one for double precision and # one for single precision. During the build process, these copies # will be stored in fftw-%{version}/double and fftw-%{version}/single # Unpack the tar archive, first (-c) creating a fftw-%{version} # directory and then unpacking in there. %setup -q -c # Now, rename the unpacked FFTW directory to "double": mv ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} double # Apply patch to enable pentium optimizations cd double %patch0 -p1 cd .. # Last, make a copy of this directory in "single": cp -r double single %build # Configure and build the double and single precision versions. # Notes: # (1) We install into ${RPM_BUILD_ROOT}, which is set either # by the BuildRoot option above or by --buildroot at build-time. # This allows you to build the RPM without blowing away your existing # FFTW installation, and even without being root. # (2) The double-precision version is installed with the normal library # names, while the single-precision version is installed with an "s" # prefix. cd double %ifarch i386 %configure --enable-shared --enable-threads --infodir=$RPM_BUILD_ROOT%{_infodir} --enable-i386-hacks %else %configure --enable-shared --enable-threads --infodir=$RPM_BUILD_ROOT%{_infodir} %endif make cd ../single %ifarch i386 %configure --enable-shared --enable-threads --infodir=$RPM_BUILD_ROOT%{_infodir} --enable-i386-hacks --enable-float --enable-type-prefix %else %configure --enable-shared --enable-threads --infodir=$RPM_BUILD_ROOT%{_infodir} --enable-float --enable-type-prefix %endif make %install cd double %makeinstall cd ../single %makeinstall # copy doc files where RPM will find them # put the HTML stuff in a sperate dir, so it appears nicely in the docdir mkdir -p ../html cp doc/*html doc/*gif ../html # remove HTML files from doc so that they don't appear double rm -f doc/*html doc/*gif # place the doc directory in a "findable" location mkdir -p ../doc cp -a doc/* ../doc # the FAQ directory is also "nice" to have mkdir -p ../FAQ cp -a FAQ/* ../FAQ # do the same to the other %doc files cp AUTHORS ChangeLog NEWS README* TODO .. ## remove unuse files rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %files %defattr (-,root,root) %doc html FAQ doc/*ps doc/*fig doc/*tex* AUTHORS ChangeLog NEWS README* TODO %{_libdir}/lib*fftw*.so.2* %files devel %defattr (-,root,root) %{_includedir}/*fftw*.h %doc %{_infodir}/* %{_libdir}/lib*fftw*.a %{_libdir}/lib*fftw*.so %changelog * Sat Sep 20 2008 Shu KONNO 2.1.5-1vl5 - applied new versioning policy, spec in utf-8 - removed *.la * Wed Dec 19 2007 Shu KONNO 2.1.5-0vl2 - s/gcc-f77/gcc-gfortran/ - updated library file names in %%files section (for x86_64) * Wed Mar 03 2004 Seiya Nishizawa 2.1.5-0vl1 - source update. * Thu Jul 18 2002 KOBAYASHI R. Taizo 2.1.3-0vl1 - modified for Vine. * Mon Feb 25 2002 Fuhito Suguri 2.1.3-12bw - rebuild for RH72. * Tue Oct 09 2001 Fuhito Suguri 2.1.3-11bw - corrected some wrong descriptions in this spec for RH71 * Tue Oct 09 2001 Fuhito Suguri 2.1.3-10bw - corrected some wrong descriptions in this spec * Mon Oct 08 2001 Fuhito Suguri 2.1.3-9bw - rebuilt for Vine Linux 2.1.5 * Thu Jun 14 2001 Lenny Cartier 2.1.3-8mdk - fixed by Mika Korhonen : - removed broken ld.so.conf test (/usr/lib is not listed there anyways) - made install-info work with RPM macros shipping with newer Mandrakes and actually add an entry to the top dir file * Tue Jan 09 2001 Lenny Cartier 2.1.3-7mdk - rebuild * Tue Aug 31 2000 Lenny Cartier 2.1.3-6mdk - add installinfo * Wed Aug 30 2000 Alexander Skwar 2.1.3-5mdk - Actually used macros - Added %doc files - Shortened %files section of the SPEC file a lot - Provide libfftw as eXtace requires it - Obsolote libfftw package - Optimized for Pentium builds per README.hacks * Wed Aug 30 2000 Lenny Cartier 2.1.3-4mdk - BM - macros * Wed Apr 26 2000 Lenny Cartier 2.1.3-3mdk - fix group - spec helper fixes * Tue Jan 25 2000 Lenny Cartier - updated, installs in /usr instead of /usr/local by Dara Hazeghi * Thu Dec 16 1999 Lenny Cartier - new in contribs - bz2 archive - add defattr