Summary: fast fourier transform library
Name: fftw
Version: 2.1.3
-Release: 1
-Copyright: GPL
+Release: 3
+License: GPL
Group: Libraries
-Source: ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
-Patch: fftw-info.patch
+Group(fr): Librairies
+Group(pl): Biblioteki
+Source0: ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
+Patch0: fftw-info.patch
Icon: fftw-logo-thumb.gif
URL: http://www.fftw.org/
-Prereq: /usr/sbin/fix-info-dir
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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.
+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.
%description -l pl
-FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych transformacji
-Fouriera w jedym lub wiêcej wymiarach. Zawiera równie¿ z³o¿one, rzeczywiste
-oraz równoleg³e transformacje i potrafi wydajnie radziæ sobie z tablicami o
-dowolnych rozmiarach. Ten pakiet RPM zawiera zarówno uniprocesor FFTW o
-pojedynczej i podwójnej precyzji jak i biblioteki w±tków.
+FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych
+transformacji Fouriera w jedym lub wiêcej wymiarach. Zawiera równie¿
+z³o¿one, rzeczywiste oraz równoleg³e transformacje i potrafi wydajnie
+radziæ sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM
+zawiera zarówno uniprocesor FFTW o pojedynczej i podwójnej precyzji
+jak i biblioteki w±tków.
%package devel
Summary: headers, libraries, & docs for fftw
Group: Development/Libraries
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
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 transform
-library.
+libraries you need to develop programs using the FFTW fast fourier
+transform library.
%package static
Summary: Static fftw libraries
Group: Development/Libraries
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
Requires: %{name}-devel = %{version}
%description static
%patch -p1
%build
-LDFLAGS="-s"; export LDFLAGS
%configure \
%ifarch i386 i486 i586 i686
--enable-i386-hacks \
%endif
--enable-shared \
- --enable-type-prefix \
- --enable-threads
+ --enable-threads \
+ --disable-debug
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
-
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/fftw.info*
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
%post devel
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun devel
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
%files
+%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%files devel