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