]>
Commit | Line | Data |
---|---|---|
6033f21d | 1 | Summary: fast fourier transform library |
2 | Name: fftw | |
3 | Version: 2.1.2 | |
4 | Release: 3 | |
5 | Copyright: GPL | |
6 | Icon: fftw-logo-thumb.gif | |
7 | Group: Libraries | |
8 | Source: ftp://theory.lcs.mit.edu/pub/fftw/%{name}-%{version}.tar.gz | |
9 | URL: http://theory.lcs.mit.edu/~fftw | |
10 | BuildRoot: /tmp/%{name}-%{version}-root | |
b3cc5c64 | 11 | |
12 | %description | |
13 | FFTW is a collection of fast C routines for computing the Discrete Fourier | |
6033f21d | 14 | Transform in one or more dimensions. It includes complex, real, and |
15 | parallel transforms, and can handle arbitrary array sizes efficiently. This | |
16 | RPM package includes both the double- and single-precision FFTW uniprocessor | |
17 | and threads libraries. | |
18 | ||
b3cc5c64 | 19 | %package devel |
6033f21d | 20 | Summary: headers, libraries, & docs for fftw |
21 | Group: Development/Libraries | |
22 | Requires: %{name} = %{version} | |
23 | ||
b3cc5c64 | 24 | %description devel |
25 | This package contains the additional header files, documentation, and | |
6033f21d | 26 | libraries you need to develop programs using the FFTW fast fourier transform |
27 | library. | |
28 | ||
29 | %package static | |
30 | Summary: Static fftw libraries | |
31 | Group: Development/Libraries | |
32 | Requires: %{name}-devel = %{version} | |
33 | ||
34 | %description static | |
35 | Static fftw libraries. | |
b3cc5c64 | 36 | |
37 | %prep | |
6033f21d | 38 | %setup -q |
b3cc5c64 | 39 | |
6033f21d | 40 | %build |
41 | LDFLAGS="-s"; export LDFLAGS | |
42 | %configure \ | |
43 | %ifarch i386 i486 i586 i686 | |
44 | --enable-i386-hacks \ | |
b3cc5c64 | 45 | %endif |
6033f21d | 46 | --enable-shared \ |
47 | --enable-type-prefix \ | |
48 | --enable-threads | |
b3cc5c64 | 49 | |
b3cc5c64 | 50 | |
51 | make | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
6033f21d | 56 | make install DESTDIR=$RPM_BUILD_ROOT |
b3cc5c64 | 57 | |
6033f21d | 58 | strip --strip-unneeded %{_libdir}/lib*.so.*.* |
b3cc5c64 | 59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
6033f21d | 63 | %files |
64 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_libdir}/lib*.la | |
69 | %attr(755,root,root) %{_libdir}/lib*.so | |
70 | %{_includedir}/* | |
71 | %{_infodir}/fftw.info* | |
72 | ||
73 | %files static | |
74 | %defattr(644,root,root,755) | |
75 | %{_libdir}/lib*.a |