]>
Commit | Line | Data |
---|---|---|
2154597b JB |
1 | # NOTE (for distributors from NEWS file): don't enable too many SIMD variants in |
2 | # distribution builds, because it increases planing time; by default enable just | |
3 | # most popular ones (like SSE, AVX). | |
4 | # The rest are available by bconds. | |
5 | # | |
6 | # TODO: mpi | |
7de82846 JB |
7 | # |
8 | # Conditional build: | |
2154597b JB |
9 | %bcond_without fftwl # "long" subpackages |
10 | %bcond_without fftwq # "quad" subpackages | |
11 | %bcond_without openmp # OpenMP support | |
12 | %bcond_with avx128fma # AVX128/FMA instructions (for some AMD machines) | |
13 | %bcond_with avx256 # AVX2 256-bit FMA instructions | |
14 | %bcond_with avx512 # AVX512 and KCVI [experimental] | |
7de82846 | 15 | # |
f2b41f11 | 16 | Summary: Fast Fourier Transform library |
b8f7299a ER |
17 | Summary(pl.UTF-8): Biblioteka z funkcjami szybkiej transformaty Fouriera |
18 | Summary(pt_BR.UTF-8): biblioteca fast fourier transform | |
8dd64783 | 19 | Name: fftw3 |
1a4cbeb7 | 20 | Version: 3.3.7 |
2154597b | 21 | Release: 1 |
2e6b9bdb | 22 | License: GPL v2+ |
8dd64783 | 23 | Group: Libraries |
1a4cbeb7 JB |
24 | #Source0Download: http://fftw.org/download.html |
25 | Source0: http://fftw.org/fftw-%{version}.tar.gz | |
26 | # Source0-md5: 0d5915d7d39b3253c1cc05030d79ac47 | |
8dd64783 | 27 | Patch0: %{name}-info.patch |
8dd64783 | 28 | URL: http://www.fftw.org/ |
2154597b JB |
29 | BuildRequires: autoconf >= 2.50 |
30 | BuildRequires: automake >= 1:1.7 | |
cbad49cd | 31 | BuildRequires: gcc-fortran |
7de82846 JB |
32 | %ifarch alpha ppc s390 s390x sparc sparcv9 |
33 | %if %{with fftwl} | |
335eed51 PS |
34 | # for 128-bit long double support |
35 | BuildRequires: gcc-fortran >= 5:4.1.0-1 | |
36 | BuildRequires: glibc >= 6:2.4-1 | |
7de82846 JB |
37 | %endif |
38 | %endif | |
cbad49cd JB |
39 | %if %{with fftwq} |
40 | BuildRequires: gcc >= 6:4.6.0 | |
41 | BuildRequires: libquadmath-devel | |
42 | %endif | |
d41131de | 43 | %if %{with openmp} |
cbad49cd JB |
44 | BuildRequires: gcc >= 6:4.2.0 |
45 | BuildRequires: libgomp-devel | |
46 | %endif | |
8dd64783 | 47 | BuildRequires: libtool |
bf578b06 | 48 | BuildRequires: texinfo |
f24101b7 | 49 | Requires: %{name}-common = %{version}-%{release} |
8dd64783 JB |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
cbad49cd JB |
52 | %define builds single double %{?with_fftwl:long-double} %{?with_fftwq:quad-precision} |
53 | ||
8dd64783 JB |
54 | %description |
55 | FFTW is a collection of fast C routines for computing the Discrete | |
56 | Fourier Transform in one or more dimensions. It includes complex, | |
57 | real, and parallel transforms, and can handle arbitrary array sizes | |
58 | efficiently. This RPM package includes the double precision FFTW | |
59 | uniprocessor and threads libraries. | |
60 | ||
b4a355b4 | 61 | %description -l pl.UTF-8 |
8dd64783 | 62 | FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych |
b4a355b4 JR |
63 | transformat Fouriera w jednym lub więcej wymiarach. Zawiera również |
64 | zespolone, rzeczywiste oraz równoległe transformaty i potrafi wydajnie | |
65 | radzić sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM | |
66 | zawiera wersje FFTW o podwójnej precyzji dla architektur | |
67 | jednoprocesorowych oraz z obsługą wątków. | |
68 | ||
69 | %description -l pt_BR.UTF-8 | |
70 | FFTW é uma coleção de rotinas rápidas em C para computar a Discrete | |
71 | Fourier Transform em uma ou mais dimensões. Incluindo transformações | |
72 | complexas, reais e paralelas, também pode manipular vetores de tamanho | |
73 | arbitrário eficientemente. Esse pacote RPM inclui bibliotecas FFTW com | |
74 | suporte a threads, normal e dupla precisão (Os arquivos de precisão | |
8dd64783 JB |
75 | normal tem um prefixo "s"). |
76 | ||
77 | %package devel | |
f2b41f11 | 78 | Summary: Development files for fftw |
b8f7299a ER |
79 | Summary(pl.UTF-8): Pliki programistyczne do fftw |
80 | Summary(pt_BR.UTF-8): Headers e documentação do pacote FFTW | |
8dd64783 | 81 | Group: Development/Libraries |
f24101b7 JB |
82 | Requires: %{name} = %{version}-%{release} |
83 | Requires: %{name}-common-devel = %{version}-%{release} | |
d41131de | 84 | %{?with_openmp:Requires: libgomp-devel} |
8dd64783 JB |
85 | |
86 | %description devel | |
f2b41f11 JB |
87 | This package contains the files you need to develop programs using the |
88 | FFTW (fast fourier transform library). | |
8dd64783 | 89 | |
b4a355b4 JR |
90 | %description devel -l pl.UTF-8 |
91 | Ten pakiet zawiera pliki potrzebne do tworzenia programów używających | |
92 | biblioteki FFTW (wykonującej szybką transformatę Fouriera). | |
8dd64783 | 93 | |
b4a355b4 JR |
94 | %description devel -l pt_BR.UTF-8 |
95 | Este pacote contém documentação e headers adicionais para desenvolver | |
0210e72d | 96 | programas usando a FFTW. |
8dd64783 JB |
97 | |
98 | %package static | |
99 | Summary: Static fftw libraries | |
b8f7299a ER |
100 | Summary(pl.UTF-8): Statyczne biblioteki fftw |
101 | Summary(pt_BR.UTF-8): Bibliotecas estáticas do pacote FFTW | |
8dd64783 | 102 | Group: Development/Libraries |
f24101b7 | 103 | Requires: %{name}-devel = %{version}-%{release} |
8dd64783 JB |
104 | |
105 | %description static | |
106 | Static fftw libraries. | |
107 | ||
b4a355b4 | 108 | %description static -l pl.UTF-8 |
8dd64783 JB |
109 | Statyczne biblioteki fftw. |
110 | ||
b4a355b4 JR |
111 | %description static -l pt_BR.UTF-8 |
112 | Este pacote contém as bibliotecas estáticas do pacote FFTW. | |
8dd64783 | 113 | |
f2b41f11 JB |
114 | %package single |
115 | Summary: Fast Fourier Transform library - single precision | |
b8f7299a | 116 | Summary(pl.UTF-8): Biblioteka z funkcjami szybkiej transformaty Fouriera - pojedynczej precyzji |
f2b41f11 | 117 | Group: Libraries |
f24101b7 | 118 | Requires: %{name}-common = %{version}-%{release} |
f2b41f11 JB |
119 | |
120 | %description single | |
121 | FFTW is a collection of fast C routines for computing the Discrete | |
122 | Fourier Transform in one or more dimensions. It includes complex, | |
123 | real, and parallel transforms, and can handle arbitrary array sizes | |
124 | efficiently. This RPM package includes the single precision FFTW | |
125 | uniprocessor and threads libraries. | |
126 | ||
b4a355b4 | 127 | %description single -l pl.UTF-8 |
f2b41f11 | 128 | FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych |
b4a355b4 JR |
129 | transformat Fouriera w jednym lub więcej wymiarach. Zawiera również |
130 | zespolone, rzeczywiste oraz równoległe transformaty i potrafi wydajnie | |
131 | radzić sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM | |
f2b41f11 | 132 | zawiera wersje FFTW o pojedynczej precyzji dla architektur |
b4a355b4 | 133 | jednoprocesorowych oraz z obsługą wątków. |
f2b41f11 JB |
134 | |
135 | %package single-devel | |
136 | Summary: Development files for single precision fftw | |
b8f7299a | 137 | Summary(pl.UTF-8): Pliki programistyczne do fftw pojedynczej precyzji |
f2b41f11 | 138 | Group: Development/Libraries |
f24101b7 JB |
139 | Requires: %{name}-common-devel = %{version}-%{release} |
140 | Requires: %{name}-single = %{version}-%{release} | |
d41131de | 141 | %{?with_openmp:Requires: libgomp-devel} |
f2b41f11 JB |
142 | |
143 | %description single-devel | |
144 | This package contains the files you need to develop programs using the | |
145 | single precision FFTW (fast fourier transform library). | |
146 | ||
b4a355b4 JR |
147 | %description single-devel -l pl.UTF-8 |
148 | Ten pakiet zawiera pliki potrzebne do tworzenia programów używających | |
cbad49cd JB |
149 | biblioteki FFTW (wykonującej szybką transformatę Fouriera) pojedynczej |
150 | precyzji. | |
f2b41f11 JB |
151 | |
152 | %package single-static | |
153 | Summary: Static fftw single precision libraries | |
b8f7299a | 154 | Summary(pl.UTF-8): Statyczne biblioteki fftw pojedynczej precyzji |
f2b41f11 | 155 | Group: Development/Libraries |
f24101b7 | 156 | Requires: %{name}-single-devel = %{version}-%{release} |
f2b41f11 JB |
157 | |
158 | %description single-static | |
159 | Static fftw single precision libraries. | |
160 | ||
b4a355b4 | 161 | %description single-static -l pl.UTF-8 |
f2b41f11 JB |
162 | Statyczne biblioteki fftw pojedynczej precyzji. |
163 | ||
164 | %package long | |
165 | Summary: Fast Fourier Transform library - long double precision | |
b8f7299a | 166 | Summary(pl.UTF-8): Biblioteka z funkcjami szybkiej transformaty Fouriera - rozszerzonej precyzji |
f2b41f11 | 167 | Group: Libraries |
f24101b7 | 168 | Requires: %{name}-common = %{version}-%{release} |
f2b41f11 JB |
169 | |
170 | %description long | |
171 | FFTW is a collection of fast C routines for computing the Discrete | |
172 | Fourier Transform in one or more dimensions. It includes complex, | |
173 | real, and parallel transforms, and can handle arbitrary array sizes | |
174 | efficiently. This RPM package includes the long double precision FFTW | |
175 | uniprocessor and threads libraries. | |
176 | ||
b4a355b4 | 177 | %description long -l pl.UTF-8 |
f2b41f11 | 178 | FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych |
b4a355b4 JR |
179 | transformat Fouriera w jednym lub więcej wymiarach. Zawiera również |
180 | zespolone, rzeczywiste oraz równoległe transformaty i potrafi wydajnie | |
181 | radzić sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM | |
f2b41f11 | 182 | zawiera wersje FFTW o rozszerzonej precyzji dla architektur |
b4a355b4 | 183 | jednoprocesorowych oraz z obsługą wątków. |
f2b41f11 JB |
184 | |
185 | %package long-devel | |
186 | Summary: Development files for long double precision fftw | |
b8f7299a | 187 | Summary(pl.UTF-8): Pliki programistyczne do fftw rozszerzonej precyzji |
f2b41f11 | 188 | Group: Development/Libraries |
f24101b7 JB |
189 | Requires: %{name}-common-devel = %{version}-%{release} |
190 | Requires: %{name}-long = %{version}-%{release} | |
d41131de | 191 | %{?with_openmp:Requires: libgomp-devel} |
f2b41f11 JB |
192 | |
193 | %description long-devel | |
194 | This package contains the files you need to develop programs using the | |
195 | long double precision FFTW (fast fourier transform library). | |
196 | ||
b4a355b4 JR |
197 | %description long-devel -l pl.UTF-8 |
198 | Ten pakiet zawiera pliki potrzebne do tworzenia programów używających | |
cbad49cd JB |
199 | biblioteki FFTW (wykonującej szybką transformatę Fouriera) |
200 | rozszerzonej precyzji. | |
f2b41f11 JB |
201 | |
202 | %package long-static | |
203 | Summary: Static fftw long double precision libraries | |
b8f7299a | 204 | Summary(pl.UTF-8): Statyczne biblioteki fftw rozszerzonej precyzji |
f2b41f11 | 205 | Group: Development/Libraries |
f24101b7 | 206 | Requires: %{name}-long-devel = %{version}-%{release} |
f2b41f11 JB |
207 | |
208 | %description long-static | |
209 | Static fftw long double precision libraries. | |
210 | ||
b4a355b4 | 211 | %description long-static -l pl.UTF-8 |
f2b41f11 JB |
212 | Statyczne biblioteki fftw rozszerzonej precyzji. |
213 | ||
cbad49cd JB |
214 | %package quad |
215 | Summary: Fast Fourier Transform library - quad precision | |
216 | Summary(pl.UTF-8): Biblioteka z funkcjami szybkiej transformaty Fouriera - poczwórnej precyzji | |
217 | Group: Libraries | |
218 | Requires: %{name}-common = %{version}-%{release} | |
219 | ||
220 | %description quad | |
221 | FFTW is a collection of fast C routines for computing the Discrete | |
222 | Fourier Transform in one or more dimensions. It includes complex, | |
223 | real, and parallel transforms, and can handle arbitrary array sizes | |
224 | efficiently. This RPM package includes the quad precision FFTW | |
225 | uniprocessor and threads libraries. | |
226 | ||
227 | %description quad -l pl.UTF-8 | |
228 | FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych | |
229 | transformat Fouriera w jednym lub więcej wymiarach. Zawiera również | |
230 | zespolone, rzeczywiste oraz równoległe transformaty i potrafi wydajnie | |
231 | radzić sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM | |
232 | zawiera wersje FFTW o poczwórnej precyzji dla architektur | |
233 | jednoprocesorowych oraz z obsługą wątków. | |
234 | ||
235 | %package quad-devel | |
236 | Summary: Development files for quad precision fftw | |
237 | Summary(pl.UTF-8): Pliki programistyczne do fftw poczwórnej precyzji | |
238 | Group: Development/Libraries | |
239 | Requires: %{name}-common-devel = %{version}-%{release} | |
240 | Requires: %{name}-quad = %{version}-%{release} | |
d41131de | 241 | %{?with_openmp:Requires: libgomp-devel} |
cbad49cd JB |
242 | Requires: libquadmath-devel |
243 | ||
244 | %description quad-devel | |
245 | This package contains the files you need to develop programs using the | |
246 | quad precision FFTW (fast fourier transform library). | |
247 | ||
248 | %description quad-devel -l pl.UTF-8 | |
249 | Ten pakiet zawiera pliki potrzebne do tworzenia programów używających | |
250 | biblioteki FFTW (wykonującej szybką transformatę Fouriera) poczwórnej | |
251 | precyzji. | |
252 | ||
253 | %package quad-static | |
254 | Summary: Static fftw quad precision libraries | |
255 | Summary(pl.UTF-8): Statyczne biblioteki fftw poczwórnej precyzji | |
256 | Group: Development/Libraries | |
257 | Requires: %{name}-quad-devel = %{version}-%{release} | |
258 | ||
259 | %description quad-static | |
260 | Static fftw quad precision libraries. | |
261 | ||
262 | %description quad-static -l pl.UTF-8 | |
263 | Statyczne biblioteki fftw poczwórnej precyzji. | |
264 | ||
f2b41f11 JB |
265 | %package common |
266 | Summary: Files common for all versions of fftw libraries | |
b8f7299a | 267 | Summary(pl.UTF-8): Pliki wspólne dla wszystkich wersji bibliotek fftw |
f2b41f11 JB |
268 | Group: Libraries |
269 | ||
270 | %description common | |
271 | Files common for all versions of fftw libraries (basic documentation, | |
272 | fftw-wisdom-to-conf utility). | |
273 | ||
b4a355b4 JR |
274 | %description common -l pl.UTF-8 |
275 | Pliki wspólne dla wszystkich wersji bibliotek fftw (podstawowa | |
276 | dokumentacja, narzędzie fftw-wisdom-to-conf). | |
f2b41f11 JB |
277 | |
278 | %package common-devel | |
279 | Summary: Development files common for all versions of fftw libraries | |
b8f7299a | 280 | Summary(pl.UTF-8): Pliki programistyczne wspólne dla wszystkich wersji bibliotek fftw |
f2b41f11 | 281 | Group: Development/Libraries |
f24101b7 | 282 | Requires: %{name}-common = %{version}-%{release} |
f2b41f11 JB |
283 | |
284 | %description common-devel | |
285 | Development files common for all versions of fftw libraries (header | |
286 | files, development documentation). | |
287 | ||
b4a355b4 JR |
288 | %description common-devel -l pl.UTF-8 |
289 | Pliki programistyczne wspólne dla wszystkich wersji bibliotek fftw | |
290 | (pliki nagłówkowe, dokumentacja programisty). | |
f2b41f11 | 291 | |
8dd64783 | 292 | %prep |
1a4cbeb7 | 293 | %setup -q -n fftw-%{version} |
f2b41f11 | 294 | %patch0 -p1 |
8dd64783 JB |
295 | |
296 | %build | |
297 | %{__libtoolize} | |
376d0cb4 | 298 | %{__aclocal} -I m4 |
8dd64783 JB |
299 | %{__autoconf} |
300 | %{__automake} | |
f2b41f11 | 301 | |
f2b41f11 | 302 | # MMX/SSE/etc. seem to be safe because of runtime CPU detection |
cbad49cd | 303 | for ver in %{builds}; do |
8dd64783 | 304 | OPTS="" |
2154597b | 305 | # SSE,altivec,neon@arm[32] only for single |
8dd64783 | 306 | if [ "$ver" = "single" ]; then |
2154597b JB |
307 | %ifarch pentium3 athlon |
308 | # for SSE2-aware subarchs SSE for single precision is enabled by --enable-sse2 option | |
f2b41f11 | 309 | OPTS="--enable-sse" |
8dd64783 | 310 | %endif |
1a4cbeb7 | 311 | %ifarch %{arm} aarch64 |
2154597b | 312 | OPTS="--enable-neon" |
8dd64783 | 313 | %endif |
2154597b | 314 | %ifarch ppc ppc64 |
f2b41f11 | 315 | OPTS="--enable-altivec" |
5194fc97 | 316 | %endif |
2154597b | 317 | : # keep sh happy about syntax on other archs |
8dd64783 | 318 | fi |
2154597b JB |
319 | %ifarch i686 pentium4 %{x8664} x32 |
320 | # SSE/SSE2 and AVX only for single and double | |
cbad49cd | 321 | if [ "$ver" = "double" -o "$ver" = "single" ]; then |
2154597b JB |
322 | OPTS="$OPTS --enable-sse2 --enable-avx" |
323 | %if %{with avx256} | |
324 | OPTS="$OPTS --enable-avx2" | |
325 | %endif | |
326 | %if %{with avx512} | |
327 | OPTS="$OPTS --enable-avx512 --enable-kcvi" | |
328 | %endif | |
fb995851 | 329 | fi |
8dd64783 | 330 | %endif |
2154597b JB |
331 | %if %{with avx128fma} |
332 | OPTS="$OPTS --enable-avx128-fma" | |
333 | %endif | |
334 | %ifarch aarch64 | |
335 | OPTS="$OPTS --enable-neon" | |
336 | %endif | |
337 | %ifarch ppc ppc64 | |
338 | OPTS="$OPTS --enable-vsx" | |
339 | %endif | |
2e6b9bdb JB |
340 | install -d build-${ver} |
341 | cd build-${ver} | |
342 | ../%configure \ | |
2154597b JB |
343 | --enable-$ver \ |
344 | --enable-debug%{!?debug:=no} \ | |
cbad49cd | 345 | --enable-openmp \ |
8dd64783 JB |
346 | --enable-shared \ |
347 | --enable-threads \ | |
2154597b | 348 | $OPTS |
8dd64783 JB |
349 | |
350 | %{__make} | |
f2b41f11 | 351 | cd .. |
8dd64783 JB |
352 | done |
353 | ||
8dd64783 JB |
354 | %install |
355 | rm -rf $RPM_BUILD_ROOT | |
e6d90cf1 | 356 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/fftw |
8dd64783 | 357 | |
cbad49cd JB |
358 | for b in %{builds} ; do |
359 | %{__make} install -C build-${b} \ | |
360 | DESTDIR=$RPM_BUILD_ROOT | |
361 | done | |
8dd64783 JB |
362 | |
363 | %clean | |
364 | rm -rf $RPM_BUILD_ROOT | |
365 | ||
366 | %post -p /sbin/ldconfig | |
367 | %postun -p /sbin/ldconfig | |
368 | ||
2fd5163a | 369 | %post single -p /sbin/ldconfig |
370 | %postun single -p /sbin/ldconfig | |
371 | ||
372 | %post long -p /sbin/ldconfig | |
373 | %postun long -p /sbin/ldconfig | |
374 | ||
a46795d7 | 375 | %post common-devel -p /sbin/postshell |
677edac6 | 376 | -/usr/sbin/fix-info-dir -c %{_infodir} |
8dd64783 | 377 | |
a46795d7 | 378 | %postun common-devel -p /sbin/postshell |
677edac6 | 379 | -/usr/sbin/fix-info-dir -c %{_infodir} |
8dd64783 JB |
380 | |
381 | %files | |
382 | %defattr(644,root,root,755) | |
f2b41f11 JB |
383 | %attr(755,root,root) %{_bindir}/fftw-wisdom |
384 | %attr(755,root,root) %{_libdir}/libfftw3.so.*.*.* | |
2e6b9bdb | 385 | %attr(755,root,root) %ghost %{_libdir}/libfftw3.so.3 |
f2b41f11 | 386 | %attr(755,root,root) %{_libdir}/libfftw3_threads.so.*.*.* |
2e6b9bdb | 387 | %attr(755,root,root) %ghost %{_libdir}/libfftw3_threads.so.3 |
d41131de | 388 | %if %{with openmp} |
cbad49cd JB |
389 | %attr(755,root,root) %{_libdir}/libfftw3_omp.so.*.*.* |
390 | %attr(755,root,root) %ghost %{_libdir}/libfftw3_omp.so.3 | |
391 | %endif | |
f2b41f11 | 392 | %{_mandir}/man1/fftw-wisdom.1* |
8dd64783 JB |
393 | |
394 | %files devel | |
395 | %defattr(644,root,root,755) | |
f2b41f11 JB |
396 | %attr(755,root,root) %{_libdir}/libfftw3.so |
397 | %attr(755,root,root) %{_libdir}/libfftw3_threads.so | |
398 | %{_libdir}/libfftw3.la | |
399 | %{_libdir}/libfftw3_threads.la | |
d41131de | 400 | %if %{with openmp} |
cbad49cd JB |
401 | %attr(755,root,root) %{_libdir}/libfftw3_omp.so |
402 | %{_libdir}/libfftw3_omp.la | |
403 | %endif | |
f2b41f11 | 404 | %{_pkgconfigdir}/fftw3.pc |
1a4cbeb7 | 405 | %{_libdir}/cmake/fftw3/FFTW3Config*.cmake |
8dd64783 JB |
406 | |
407 | %files static | |
408 | %defattr(644,root,root,755) | |
f2b41f11 JB |
409 | %{_libdir}/libfftw3.a |
410 | %{_libdir}/libfftw3_threads.a | |
d41131de | 411 | %if %{with openmp} |
cbad49cd JB |
412 | %{_libdir}/libfftw3_omp.a |
413 | %endif | |
f2b41f11 JB |
414 | |
415 | %files single | |
416 | %defattr(644,root,root,755) | |
417 | %attr(755,root,root) %{_bindir}/fftwf-wisdom | |
418 | %attr(755,root,root) %{_libdir}/libfftw3f.so.*.*.* | |
2e6b9bdb | 419 | %attr(755,root,root) %ghost %{_libdir}/libfftw3f.so.3 |
f2b41f11 | 420 | %attr(755,root,root) %{_libdir}/libfftw3f_threads.so.*.*.* |
2e6b9bdb | 421 | %attr(755,root,root) %ghost %{_libdir}/libfftw3f_threads.so.3 |
d41131de | 422 | %if %{with openmp} |
cbad49cd JB |
423 | %attr(755,root,root) %{_libdir}/libfftw3f_omp.so.*.*.* |
424 | %attr(755,root,root) %ghost %{_libdir}/libfftw3f_omp.so.3 | |
425 | %endif | |
f2b41f11 JB |
426 | %{_mandir}/man1/fftwf-wisdom.1* |
427 | ||
428 | %files single-devel | |
429 | %defattr(644,root,root,755) | |
430 | %attr(755,root,root) %{_libdir}/libfftw3f.so | |
431 | %attr(755,root,root) %{_libdir}/libfftw3f_threads.so | |
432 | %{_libdir}/libfftw3f.la | |
433 | %{_libdir}/libfftw3f_threads.la | |
d41131de | 434 | %if %{with openmp} |
cbad49cd JB |
435 | %attr(755,root,root) %{_libdir}/libfftw3f_omp.so |
436 | %{_libdir}/libfftw3f_omp.la | |
437 | %endif | |
f2b41f11 | 438 | %{_pkgconfigdir}/fftw3f.pc |
1a4cbeb7 | 439 | %{_libdir}/cmake/fftw3/FFTW3fConfig*.cmake |
f2b41f11 JB |
440 | |
441 | %files single-static | |
442 | %defattr(644,root,root,755) | |
443 | %{_libdir}/libfftw3f.a | |
444 | %{_libdir}/libfftw3f_threads.a | |
d41131de | 445 | %if %{with openmp} |
cbad49cd JB |
446 | %{_libdir}/libfftw3f_omp.a |
447 | %endif | |
f2b41f11 | 448 | |
7de82846 | 449 | %if %{with fftwl} |
f2b41f11 JB |
450 | %files long |
451 | %defattr(644,root,root,755) | |
452 | %attr(755,root,root) %{_bindir}/fftwl-wisdom | |
453 | %attr(755,root,root) %{_libdir}/libfftw3l.so.*.*.* | |
2e6b9bdb | 454 | %attr(755,root,root) %ghost %{_libdir}/libfftw3l.so.3 |
f2b41f11 | 455 | %attr(755,root,root) %{_libdir}/libfftw3l_threads.so.*.*.* |
2e6b9bdb | 456 | %attr(755,root,root) %ghost %{_libdir}/libfftw3l_threads.so.3 |
d41131de | 457 | %if %{with openmp} |
cbad49cd JB |
458 | %attr(755,root,root) %{_libdir}/libfftw3l_omp.so.*.*.* |
459 | %attr(755,root,root) %ghost %{_libdir}/libfftw3l_omp.so.3 | |
460 | %endif | |
f2b41f11 JB |
461 | %{_mandir}/man1/fftwl-wisdom.1* |
462 | ||
463 | %files long-devel | |
464 | %defattr(644,root,root,755) | |
465 | %attr(755,root,root) %{_libdir}/libfftw3l.so | |
466 | %attr(755,root,root) %{_libdir}/libfftw3l_threads.so | |
467 | %{_libdir}/libfftw3l.la | |
468 | %{_libdir}/libfftw3l_threads.la | |
d41131de | 469 | %if %{with openmp} |
cbad49cd JB |
470 | %attr(755,root,root) %{_libdir}/libfftw3l_omp.so |
471 | %{_libdir}/libfftw3l_omp.la | |
472 | %endif | |
bc04b565 | 473 | %{_includedir}/fftw3l.f03 |
f2b41f11 | 474 | %{_pkgconfigdir}/fftw3l.pc |
1a4cbeb7 | 475 | %{_libdir}/cmake/fftw3/FFTW3lConfig*.cmake |
f2b41f11 JB |
476 | |
477 | %files long-static | |
478 | %defattr(644,root,root,755) | |
479 | %{_libdir}/libfftw3l.a | |
480 | %{_libdir}/libfftw3l_threads.a | |
d41131de | 481 | %if %{with openmp} |
cbad49cd JB |
482 | %{_libdir}/libfftw3l_omp.a |
483 | %endif | |
484 | %endif | |
485 | ||
486 | %if %{with fftwq} | |
487 | %files quad | |
488 | %defattr(644,root,root,755) | |
489 | %attr(755,root,root) %{_bindir}/fftwq-wisdom | |
490 | %attr(755,root,root) %{_libdir}/libfftw3q.so.*.*.* | |
491 | %attr(755,root,root) %ghost %{_libdir}/libfftw3q.so.3 | |
492 | %attr(755,root,root) %{_libdir}/libfftw3q_threads.so.*.*.* | |
493 | %attr(755,root,root) %ghost %{_libdir}/libfftw3q_threads.so.3 | |
d41131de | 494 | %if %{with openmp} |
cbad49cd JB |
495 | %attr(755,root,root) %{_libdir}/libfftw3q_omp.so.*.*.* |
496 | %attr(755,root,root) %ghost %{_libdir}/libfftw3q_omp.so.3 | |
497 | %endif | |
498 | %{_mandir}/man1/fftwq-wisdom.1* | |
499 | ||
500 | %files quad-devel | |
501 | %defattr(644,root,root,755) | |
502 | %attr(755,root,root) %{_libdir}/libfftw3q.so | |
503 | %attr(755,root,root) %{_libdir}/libfftw3q_threads.so | |
504 | %{_libdir}/libfftw3q.la | |
505 | %{_libdir}/libfftw3q_threads.la | |
d41131de | 506 | %if %{with openmp} |
cbad49cd JB |
507 | %attr(755,root,root) %{_libdir}/libfftw3q_omp.so |
508 | %{_libdir}/libfftw3q_omp.la | |
509 | %endif | |
bc04b565 | 510 | %{_includedir}/fftw3q.f03 |
cbad49cd | 511 | %{_pkgconfigdir}/fftw3q.pc |
1a4cbeb7 | 512 | %{_libdir}/cmake/fftw3/FFTW3qConfig*.cmake |
cbad49cd JB |
513 | |
514 | %files quad-static | |
515 | %defattr(644,root,root,755) | |
516 | %{_libdir}/libfftw3q.a | |
517 | %{_libdir}/libfftw3q_threads.a | |
d41131de | 518 | %if %{with openmp} |
cbad49cd JB |
519 | %{_libdir}/libfftw3q_omp.a |
520 | %endif | |
7de82846 | 521 | %endif |
f2b41f11 JB |
522 | |
523 | %files common | |
524 | %defattr(644,root,root,755) | |
525 | %doc AUTHORS COPYRIGHT ChangeLog NEWS README TODO | |
e6d90cf1 | 526 | %dir %{_sysconfdir}/fftw |
f2b41f11 JB |
527 | %attr(755,root,root) %{_bindir}/fftw-wisdom-to-conf |
528 | %{_mandir}/man1/fftw-wisdom-to-conf.1* | |
529 | ||
530 | %files common-devel | |
531 | %defattr(644,root,root,755) | |
532 | %doc doc/html doc/FAQ/fftw-faq.html | |
2e6b9bdb | 533 | %{_includedir}/fftw3.f |
cbad49cd | 534 | %{_includedir}/fftw3.f03 |
2e6b9bdb | 535 | %{_includedir}/fftw3.h |
1a4cbeb7 | 536 | %dir %{_libdir}/cmake/fftw3 |
f2b41f11 | 537 | %{_infodir}/fftw3.info* |