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