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