]>
Commit | Line | Data |
---|---|---|
41353050 | 1 | # |
2 | # Conditional build | |
48feaffa | 3 | %bcond_without single # without single precision library |
08ae08b8 | 4 | # |
5dd98a85 | 5 | Summary: Fast Fourier Transform library |
01db6828 ER |
6 | Summary(pl.UTF-8): Biblioteka z funkcjami szybkiej transformaty Fouriera |
7 | Summary(pt_BR.UTF-8): Biblioteca fast Fourier transform | |
6033f21d | 8 | Name: fftw |
f489966f | 9 | Version: 2.1.5 |
b14f0d1e | 10 | Release: 7 |
a8184f52 | 11 | License: GPL |
6033f21d | 12 | Group: Libraries |
a8184f52 | 13 | Source0: ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz |
f489966f | 14 | # Source0-md5: 8d16a84f3ca02a785ef9eb36249ba433 |
3f26f735 | 15 | Patch0: %{name}-info.patch |
5dd98a85 | 16 | Patch1: %{name}-link.patch |
817f3e0f | 17 | Patch2: doctex.patch |
db97658a | 18 | URL: http://www.fftw.org/ |
8b883851 | 19 | BuildRequires: autoconf |
00c88404 | 20 | BuildRequires: automake |
5dd98a85 JB |
21 | # to detect proper F77 name mangling for fortran binding functions |
22 | BuildRequires: gcc-g77 | |
8b883851 | 23 | BuildRequires: libtool |
3022b8fa | 24 | BuildRequires: texinfo |
1e54dfd2 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b3cc5c64 | 26 | |
27 | %description | |
a8184f52 | 28 | FFTW is a collection of fast C routines for computing the Discrete |
29 | Fourier Transform in one or more dimensions. It includes complex, | |
30 | real, and parallel transforms, and can handle arbitrary array sizes | |
f81ad1b5 | 31 | efficiently. This RPM package includes the single and double precision |
32 | FFTW uniprocessor and threads libraries. | |
6033f21d | 33 | |
df8dfd0a | 34 | %description -l pl.UTF-8 |
a8184f52 | 35 | FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych |
df8dfd0a JR |
36 | transformat Fouriera w jednym lub więcej wymiarach. Zawiera również |
37 | zespolone, rzeczywiste oraz równoległe transformaty i potrafi wydajnie | |
38 | radzić sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM | |
39 | zawiera wersje FFTW o pojedyńczej i podwójnej precyzji dla architektur | |
40 | jednoprocesorowych oraz z obsługą wątków. | |
41 | ||
42 | %description -l pt_BR.UTF-8 | |
43 | FFTW é uma coleção de rotinas rápidas em C para computar a Discrete | |
44 | Fourier Transform em uma ou mais dimensões. Incluindo transformações | |
45 | complexas, reais e paralelas, também pode manipular vetores de tamanho | |
46 | arbitrário eficientemente. Esse pacote RPM inclui bibliotecas FFTW com | |
47 | suporte a threads, normal e dupla precisão (Os arquivos de precisão | |
ca909787 | 48 | normal tem um prefixo "s"). |
49 | ||
b3cc5c64 | 50 | %package devel |
303535d5 | 51 | Summary: Header files and development documentation for FFTW library |
01db6828 ER |
52 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do biblioteki FFTW |
53 | Summary(pt_BR.UTF-8): Headers e documentação do pacote FFTW | |
6033f21d | 54 | Group: Development/Libraries |
08ae08b8 | 55 | Requires: %{name} = %{version}-%{release} |
6033f21d | 56 | |
b3cc5c64 | 57 | %description devel |
303535d5 JB |
58 | This package contains the additional header files and documentation |
59 | you need to develop programs using the FFTW (fast Fourier transform | |
60 | library). | |
da91f4a0 | 61 | |
df8dfd0a JR |
62 | %description devel -l pl.UTF-8 |
63 | Ten pakiet zawiera dodatkowe pliki nagłówkowe oraz dokumentację do | |
64 | tworzenia programów używających biblioteki FFTW (fast Fourier | |
303535d5 | 65 | transform library). |
6033f21d | 66 | |
df8dfd0a JR |
67 | %description devel -l pt_BR.UTF-8 |
68 | Este pacote contém documentação e headers adicionais para desenvolver | |
303535d5 | 69 | programas usando a FFTW. |
ca909787 | 70 | |
6033f21d | 71 | %package static |
5dd98a85 | 72 | Summary: Static FFTW libraries |
01db6828 ER |
73 | Summary(pl.UTF-8): Statyczne biblioteki FFTW |
74 | Summary(pt_BR.UTF-8): bibliotecas estáticas do pacote FFTW | |
6033f21d | 75 | Group: Development/Libraries |
08ae08b8 | 76 | Requires: %{name}-devel = %{version}-%{release} |
6033f21d | 77 | |
78 | %description static | |
5dd98a85 | 79 | Static FFTW libraries. |
b3cc5c64 | 80 | |
df8dfd0a | 81 | %description static -l pl.UTF-8 |
5dd98a85 | 82 | Statyczne biblioteki FFTW. |
da91f4a0 | 83 | |
df8dfd0a JR |
84 | %description static -l pt_BR.UTF-8 |
85 | Este pacote contém as bibliotecas estáticas do pacote FFTW. | |
ca909787 | 86 | |
5dd98a85 JB |
87 | %package single |
88 | Summary: Single-precision Fast Fourier Transform libraries | |
01db6828 | 89 | Summary(pl.UTF-8): Biblioteki szybkiej transformaty Fouriera pojedynczej precyzji |
5dd98a85 JB |
90 | Group: Libraries |
91 | Conflicts: fftw < 2.1.5-4 | |
92 | ||
93 | %description single | |
94 | Single-precision Fast Fourier Transform libraries. | |
95 | ||
df8dfd0a | 96 | %description single -l pl.UTF-8 |
5dd98a85 JB |
97 | Biblioteki szybkiej transformaty Fouriera pojedynczej precyzji. |
98 | ||
99 | %package single-devel | |
100 | Summary: Header files for single-precision FFTW libraries | |
01db6828 | 101 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek FFTW pojedynczej precyzji |
5dd98a85 JB |
102 | Group: Development/Libraries |
103 | Requires: %{name}-single = %{version}-%{release} | |
104 | ||
105 | %description single-devel | |
106 | Header files for single-precision FFTW libraries. | |
107 | ||
df8dfd0a JR |
108 | %description single-devel -l pl.UTF-8 |
109 | Pliki nagłówkowe bibliotek FFTW pojedynczej precyzji. | |
5dd98a85 JB |
110 | |
111 | %package single-static | |
112 | Summary: Static single-precision FFTW libraries | |
01db6828 | 113 | Summary(pl.UTF-8): Statyczne biblioteki FFTW pojedynczej precyzji |
5dd98a85 JB |
114 | Group: Development/Libraries |
115 | Requires: %{name}-single-devel = %{version}-%{release} | |
116 | ||
117 | %description single-static | |
118 | Static single-precision FFTW libraries. | |
119 | ||
df8dfd0a | 120 | %description single-static -l pl.UTF-8 |
5dd98a85 JB |
121 | Statyczne biblioteki FFTW pojedynczej precyzji. |
122 | ||
b3cc5c64 | 123 | %prep |
fb76e2d0 | 124 | %setup -q |
e7452b6b | 125 | %patch0 -p1 |
5dd98a85 | 126 | %patch1 -p1 |
817f3e0f | 127 | %patch2 -p1 |
5dd98a85 JB |
128 | |
129 | # don't use pregenerated file | |
130 | rm -f fftw/config.h | |
b3cc5c64 | 131 | |
6033f21d | 132 | %build |
41353050 | 133 | %{__libtoolize} |
134 | %{__aclocal} | |
135 | %{__autoconf} | |
136 | %{__automake} | |
e153fe9c | 137 | |
138 | %if %{with single} | |
5dd98a85 JB |
139 | install -d build-single |
140 | cd build-single | |
141 | ../%configure \ | |
41353050 | 142 | %ifarch %{ix86} |
48feaffa | 143 | --enable-i386-hacks \ |
41353050 | 144 | %endif |
48feaffa | 145 | --enable-shared \ |
146 | --enable-threads \ | |
147 | --enable-float \ | |
41353050 | 148 | --enable-type-prefix \ |
48feaffa | 149 | --%{!?debug:dis}%{?debug:en}able-debug |
41353050 | 150 | |
151 | %{__make} | |
5dd98a85 | 152 | cd .. |
41353050 | 153 | %endif |
154 | ||
5dd98a85 JB |
155 | install -d build-double |
156 | cd build-double | |
157 | ../%configure \ | |
d212295f | 158 | %ifarch %{ix86} |
6033f21d | 159 | --enable-i386-hacks \ |
b3cc5c64 | 160 | %endif |
6033f21d | 161 | --enable-shared \ |
30608dae | 162 | --enable-threads \ |
2b586d09 | 163 | --%{!?debug:dis}%{?debug:en}able-debug |
b3cc5c64 | 164 | |
da94ae29 | 165 | %{__make} |
b3cc5c64 | 166 | |
167 | %install | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
5dd98a85 JB |
170 | %{__make} -C build-single install \ |
171 | DESTDIR=$RPM_BUILD_ROOT | |
41353050 | 172 | |
5dd98a85 | 173 | %{__make} -C build-double install \ |
1ff9b95f | 174 | DESTDIR=$RPM_BUILD_ROOT |
b3cc5c64 | 175 | |
40050434 JB |
176 | %clean |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
200ae054 JB |
179 | %post -p /sbin/ldconfig |
180 | %postun -p /sbin/ldconfig | |
181 | ||
e823cc87 ER |
182 | %post devel -p /sbin/postshell |
183 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
e12e3374 | 184 | |
e823cc87 ER |
185 | %postun devel -p /sbin/postshell |
186 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
b72b5db3 | 187 | |
5dd98a85 JB |
188 | %post single -p /sbin/ldconfig |
189 | %postun single -p /sbin/ldconfig | |
190 | ||
6033f21d | 191 | %files |
a8184f52 | 192 | %defattr(644,root,root,755) |
5dd98a85 | 193 | %attr(755,root,root) %{_libdir}/libfftw.so.*.*.* |
817f3e0f | 194 | %attr(755,root,root) %ghost %{_libdir}/libfftw.so.2 |
5dd98a85 | 195 | %attr(755,root,root) %{_libdir}/libfftw_threads.so.*.*.* |
817f3e0f | 196 | %attr(755,root,root) %ghost %{_libdir}/libfftw_threads.so.2 |
5dd98a85 | 197 | %attr(755,root,root) %{_libdir}/librfftw.so.*.*.* |
817f3e0f | 198 | %attr(755,root,root) %ghost %{_libdir}/librfftw.so.2 |
5dd98a85 | 199 | %attr(755,root,root) %{_libdir}/librfftw_threads.so.*.*.* |
817f3e0f | 200 | %attr(755,root,root) %ghost %{_libdir}/librfftw_threads.so.2 |
6033f21d | 201 | |
202 | %files devel | |
203 | %defattr(644,root,root,755) | |
5dd98a85 JB |
204 | %attr(755,root,root) %{_libdir}/libfftw.so |
205 | %attr(755,root,root) %{_libdir}/libfftw_threads.so | |
206 | %attr(755,root,root) %{_libdir}/librfftw.so | |
207 | %attr(755,root,root) %{_libdir}/librfftw_threads.so | |
208 | %{_libdir}/libfftw.la | |
209 | %{_libdir}/libfftw_threads.la | |
210 | %{_libdir}/librfftw.la | |
211 | %{_libdir}/librfftw_threads.la | |
212 | %{_includedir}/fftw*.h | |
213 | %{_includedir}/rfftw*.h | |
f489966f | 214 | %{_infodir}/fftw.info* |
6033f21d | 215 | |
216 | %files static | |
217 | %defattr(644,root,root,755) | |
5dd98a85 JB |
218 | %{_libdir}/libfftw.a |
219 | %{_libdir}/libfftw_threads.a | |
220 | %{_libdir}/librfftw.a | |
221 | %{_libdir}/librfftw_threads.a | |
222 | ||
223 | %files single | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_libdir}/libsfftw.so.*.*.* | |
817f3e0f | 226 | %attr(755,root,root) %ghost %{_libdir}/libsfftw.so.2 |
5dd98a85 | 227 | %attr(755,root,root) %{_libdir}/libsfftw_threads.so.*.*.* |
817f3e0f | 228 | %attr(755,root,root) %ghost %{_libdir}/libsfftw_threads.so.2 |
5dd98a85 | 229 | %attr(755,root,root) %{_libdir}/libsrfftw.so.*.*.* |
817f3e0f | 230 | %attr(755,root,root) %ghost %{_libdir}/libsrfftw.so.2 |
5dd98a85 | 231 | %attr(755,root,root) %{_libdir}/libsrfftw_threads.so.*.*.* |
817f3e0f | 232 | %attr(755,root,root) %ghost %{_libdir}/libsrfftw_threads.so.2 |
5dd98a85 JB |
233 | |
234 | %files single-devel | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_libdir}/libsfftw.so | |
237 | %attr(755,root,root) %{_libdir}/libsfftw_threads.so | |
238 | %attr(755,root,root) %{_libdir}/libsrfftw.so | |
239 | %attr(755,root,root) %{_libdir}/libsrfftw_threads.so | |
240 | %{_libdir}/libsfftw.la | |
241 | %{_libdir}/libsfftw_threads.la | |
242 | %{_libdir}/libsrfftw.la | |
243 | %{_libdir}/libsrfftw_threads.la | |
244 | %{_includedir}/sfftw*.h | |
245 | %{_includedir}/srfftw*.h | |
246 | ||
247 | %files single-static | |
248 | %defattr(644,root,root,755) | |
249 | %{_libdir}/libsfftw.a | |
250 | %{_libdir}/libsfftw_threads.a | |
251 | %{_libdir}/libsrfftw.a | |
252 | %{_libdir}/libsrfftw_threads.a |