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