]>
Commit | Line | Data |
---|---|---|
4fdae0ab | 1 | # TODO: MPI support |
838ad5e9 JB |
2 | # Hypre http://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods |
3 | # PETSc http://www.mcs.anl.gov/petsc | |
4 | # SUPERLUMT http://crd-legacy.lbl.gov/~xiaoye/SuperLU/#superlu_mt | |
bc64d995 JB |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without openmp # OpenMP support | |
8 | ||
2e84b9e1 | 9 | Summary: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers |
4fdae0ab | 10 | Summary(pl.UTF-8): Zbiór procedur do rozwiązywania równań nieliniowych i różniczkowych/algebraicznych |
2e84b9e1 | 11 | Name: sundials |
a2c92c36 | 12 | Version: 3.2.1 |
bc64d995 | 13 | Release: 1 |
2e84b9e1 | 14 | License: BSD |
4fdae0ab | 15 | Group: Libraries |
838ad5e9 JB |
16 | #Source0Download: https://computing.llnl.gov/projects/sundials/sundials-software |
17 | Source0: https://github.com/LLNL/sundials/archive/v%{version}/%{name}-%{version}.tar.gz | |
a2c92c36 | 18 | # Source0-md5: 4214e606ad2c6e3ee60c36601a210a99 |
bc64d995 | 19 | URL: https://computing.llnl.gov/projects/sundials |
838ad5e9 | 20 | BuildRequires: SuiteSparse-KLU-devel |
bc64d995 | 21 | BuildRequires: cmake >= 2.8.1 |
4fdae0ab | 22 | BuildRequires: gcc-fortran |
bc64d995 JB |
23 | BuildRequires: lapack-devel |
24 | %{?with_openmp:BuildRequires: libgomp-devel} | |
4fdae0ab | 25 | BuildRequires: rpm-build >= 4.6 |
2e84b9e1 JR |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
4fdae0ab | 29 | SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation |
bc64d995 JB |
30 | Solvers) consists of the following solvers: |
31 | ||
32 | ARKODE: solves ordinary differential equation (ODE) systems based on | |
33 | Runge-Kutta methods. | |
4fdae0ab JB |
34 | |
35 | CVODE: solves initial value problems for ordinary differential | |
36 | equation (ODE) systems. | |
37 | ||
38 | CVODES: solves ODE systems and includes sensitivity analysis | |
39 | capabilities (forward and adjoint). | |
40 | ||
41 | IDA: solves initial value problems for differential-algebraic equation | |
42 | (DAE) systems. | |
43 | ||
bc64d995 JB |
44 | IDAS: solves differential-algebraic equation (DAE) systems with |
45 | sensitivity analysis. | |
46 | ||
4fdae0ab JB |
47 | KINSOL: solves nonlinear algebraic systems. |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation | |
51 | Solvers) to zbiór procedur do rozwiązywania równań nieliniowych i | |
52 | różniczkowych/algebraicznych, składający się z czterech części: | |
53 | ||
bc64d995 JB |
54 | ARKODE - rozwiązuje układy równań różniczkowych zwyczajnych (ODE) przy |
55 | użyciu metod Rungego-Kutty. | |
56 | ||
4fdae0ab JB |
57 | CVODE - rozwiązuje problemy wartości początkowej dla układów |
58 | równań różniczkowych zwyczajnych (ODE) | |
59 | ||
60 | CVODES - rozwiązuje układy równań różniczkowych zwyczajnych; zawiera | |
61 | funkcjonalność analizy wrażliwości (prostej i sprzężonej). | |
2e84b9e1 | 62 | |
4fdae0ab JB |
63 | IDA - rozwiązuje problemy wartości początkowej dla układów równań |
64 | różniczkowo-algebraicznych (DAE). | |
65 | ||
bc64d995 JB |
66 | IDAS - rozwiązuje układy równań różniczkowo-algebraicznych z analizą |
67 | wrażliwości. | |
68 | ||
4fdae0ab | 69 | KINSOL - rozwiązuje układy nieliniowych równań algebraicznych. |
2e84b9e1 | 70 | |
9b589973 JR |
71 | %package devel |
72 | Summary: SUNDIALS development files | |
4fdae0ab | 73 | Summary(pl.UTF-8): Pliki programistyczne SUNDIALS |
9b589973 JR |
74 | Group: Development/Libraries |
75 | Requires: %{name} = %{version}-%{release} | |
76 | ||
77 | %description devel | |
78 | This package contains headers and development files needed to | |
79 | develop applications with SUNDIALS. | |
80 | ||
4fdae0ab JB |
81 | %description devel -l pl.UTF-8 |
82 | Ten pakiet zawiera pliki nagłówkowe i programistyczne potrzebne do | |
83 | tworzenia aplikacji z użyciem SUNDIALS. | |
84 | ||
9b589973 JR |
85 | %package static |
86 | Summary: SUNDIALS static libraries | |
4fdae0ab | 87 | Summary(pl.UTF-8): Biblioteki statyczne SUNDIALS |
9b589973 JR |
88 | Group: Development/Libraries |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | ||
91 | %description static | |
92 | This package contains SUNDIALS static libraries. | |
93 | ||
4fdae0ab JB |
94 | %description static -l pl.UTF-8 |
95 | Ten pakiet zawiera statyczne biblioteki SUNDIALS. | |
96 | ||
97 | %package apidocs | |
98 | Summary: API documentation for SUNDIALS libraries | |
99 | Summary(pl.UTF-8): Dokumentacja API bibliotek SUNDIALS | |
100 | Group: Documentation | |
101 | BuildArch: noarch | |
102 | ||
103 | %description apidocs | |
104 | API documentation for SUNDIALS libraries. | |
105 | ||
106 | %description apidocs -l pl.UTF-8 | |
107 | Dokumentacja API bibliotek SUNDIALS. | |
108 | ||
2e84b9e1 JR |
109 | %prep |
110 | %setup -q | |
111 | ||
838ad5e9 JB |
112 | # duplicate of cvodes/ckpng.pdf |
113 | %{__rm} doc/idas/ckpnt.pdf | |
114 | ||
2e84b9e1 | 115 | %build |
bc64d995 JB |
116 | install -d build |
117 | cd build | |
118 | %cmake .. \ | |
119 | -DEXAMPLES_INSTALL_PATH=%{_examplesdir}/%{name}-%{version} \ | |
120 | -DFCMIX_ENABLE=ON \ | |
121 | -DKLU_ENABLE=ON \ | |
838ad5e9 JB |
122 | -DKLU_INCLUDE_DIR=%{_includedir}/suitesparse \ |
123 | -DKLU_LIBRARY_DIR=%{_libdir} \ | |
bc64d995 | 124 | -DLAPACK_ENABLE=ON \ |
ae7c7d3c | 125 | %{?with_openmp:-DOPENMP_ENABLE=ON -DOpenMP_gcc_s_LIBRARY=/%{_lib}/libgcc_s.so} \ |
bc64d995 JB |
126 | -DPTHREAD_ENABLE=ON |
127 | ||
2e84b9e1 JR |
128 | %{__make} |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
2e84b9e1 | 132 | |
bc64d995 JB |
133 | %{__make} -C build install \ |
134 | DESTDIR=$RPM_BUILD_ROOT | |
2e84b9e1 JR |
135 | |
136 | %clean | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %post -p /sbin/ldconfig | |
140 | %postun -p /sbin/ldconfig | |
141 | ||
142 | %files | |
143 | %defattr(644,root,root,755) | |
ae7c7d3c | 144 | %doc LICENSE README.md |
bc64d995 | 145 | %attr(755,root,root) %{_libdir}/libsundials_arkode.so.*.*.* |
ae7c7d3c | 146 | %attr(755,root,root) %ghost %{_libdir}/libsundials_arkode.so.2 |
4fdae0ab | 147 | %attr(755,root,root) %{_libdir}/libsundials_cvode.so.*.*.* |
ae7c7d3c | 148 | %attr(755,root,root) %ghost %{_libdir}/libsundials_cvode.so.3 |
4fdae0ab | 149 | %attr(755,root,root) %{_libdir}/libsundials_cvodes.so.*.*.* |
ae7c7d3c | 150 | %attr(755,root,root) %ghost %{_libdir}/libsundials_cvodes.so.3 |
4fdae0ab | 151 | %attr(755,root,root) %{_libdir}/libsundials_ida.so.*.*.* |
ae7c7d3c | 152 | %attr(755,root,root) %ghost %{_libdir}/libsundials_ida.so.3 |
bc64d995 | 153 | %attr(755,root,root) %{_libdir}/libsundials_idas.so.*.*.* |
ae7c7d3c | 154 | %attr(755,root,root) %ghost %{_libdir}/libsundials_idas.so.2 |
4fdae0ab | 155 | %attr(755,root,root) %{_libdir}/libsundials_kinsol.so.*.*.* |
ae7c7d3c | 156 | %attr(755,root,root) %ghost %{_libdir}/libsundials_kinsol.so.3 |
bc64d995 JB |
157 | %if %{with openmp} |
158 | %attr(755,root,root) %{_libdir}/libsundials_nvecopenmp.so.*.*.* | |
ae7c7d3c | 159 | %attr(755,root,root) %ghost %{_libdir}/libsundials_nvecopenmp.so.3 |
bc64d995 JB |
160 | %endif |
161 | %attr(755,root,root) %{_libdir}/libsundials_nvecpthreads.so.*.*.* | |
ae7c7d3c | 162 | %attr(755,root,root) %ghost %{_libdir}/libsundials_nvecpthreads.so.3 |
4fdae0ab | 163 | %attr(755,root,root) %{_libdir}/libsundials_nvecserial.so.*.*.* |
ae7c7d3c JB |
164 | %attr(755,root,root) %ghost %{_libdir}/libsundials_nvecserial.so.3 |
165 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolband.so.*.*.* | |
166 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolband.so.1 | |
167 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsoldense.so.*.*.* | |
168 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsoldense.so.1 | |
169 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolklu.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolklu.so.1 | |
171 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolpcg.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolpcg.so.1 | |
173 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolspbcgs.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolspbcgs.so.1 | |
175 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolspfgmr.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolspfgmr.so.1 | |
177 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolspgmr.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolspgmr.so.1 | |
179 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolsptfqmr.so.*.*.* | |
180 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunlinsolsptfqmr.so.1 | |
181 | %attr(755,root,root) %{_libdir}/libsundials_sunmatrixband.so.*.*.* | |
182 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunmatrixband.so.1 | |
183 | %attr(755,root,root) %{_libdir}/libsundials_sunmatrixdense.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunmatrixdense.so.1 | |
185 | %attr(755,root,root) %{_libdir}/libsundials_sunmatrixsparse.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libsundials_sunmatrixsparse.so.1 | |
bc64d995 JB |
187 | # Fortran - shared |
188 | %if %{with openmp} | |
189 | %attr(755,root,root) %{_libdir}/libsundials_fnvecopenmp.so.*.*.* | |
ae7c7d3c | 190 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fnvecopenmp.so.3 |
bc64d995 JB |
191 | %endif |
192 | %attr(755,root,root) %{_libdir}/libsundials_fnvecpthreads.so.*.*.* | |
ae7c7d3c | 193 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fnvecpthreads.so.3 |
bc64d995 | 194 | %attr(755,root,root) %{_libdir}/libsundials_fnvecserial.so.*.*.* |
ae7c7d3c JB |
195 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fnvecserial.so.3 |
196 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolband.so.*.*.* | |
197 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolband.so.1 | |
198 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsoldense.so.*.*.* | |
199 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsoldense.so.1 | |
200 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolklu.so.*.*.* | |
201 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolklu.so.1 | |
202 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolpcg.so.*.*.* | |
203 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolpcg.so.1 | |
204 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolspbcgs.so.*.*.* | |
205 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolspbcgs.so.1 | |
206 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolspfgmr.so.*.*.* | |
207 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolspfgmr.so.1 | |
208 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolspgmr.so.*.*.* | |
209 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolspgmr.so.1 | |
210 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolsptfqmr.so.*.*.* | |
211 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunlinsolsptfqmr.so.1 | |
212 | %attr(755,root,root) %{_libdir}/libsundials_fsunmatrixband.so.*.*.* | |
213 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunmatrixband.so.1 | |
214 | %attr(755,root,root) %{_libdir}/libsundials_fsunmatrixdense.so.*.*.* | |
215 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunmatrixdense.so.1 | |
216 | %attr(755,root,root) %{_libdir}/libsundials_fsunmatrixsparse.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libsundials_fsunmatrixsparse.so.1 | |
9b589973 JR |
218 | |
219 | %files devel | |
220 | %defattr(644,root,root,755) | |
bc64d995 | 221 | %attr(755,root,root) %{_libdir}/libsundials_arkode.so |
4fdae0ab JB |
222 | %attr(755,root,root) %{_libdir}/libsundials_cvode.so |
223 | %attr(755,root,root) %{_libdir}/libsundials_cvodes.so | |
224 | %attr(755,root,root) %{_libdir}/libsundials_ida.so | |
bc64d995 | 225 | %attr(755,root,root) %{_libdir}/libsundials_idas.so |
4fdae0ab | 226 | %attr(755,root,root) %{_libdir}/libsundials_kinsol.so |
bc64d995 JB |
227 | %if %{with openmp} |
228 | %attr(755,root,root) %{_libdir}/libsundials_nvecopenmp.so | |
229 | %endif | |
230 | %attr(755,root,root) %{_libdir}/libsundials_nvecpthreads.so | |
4fdae0ab | 231 | %attr(755,root,root) %{_libdir}/libsundials_nvecserial.so |
ae7c7d3c JB |
232 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolband.so |
233 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsoldense.so | |
234 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolklu.so | |
235 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolpcg.so | |
236 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolspbcgs.so | |
237 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolspfgmr.so | |
238 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolspgmr.so | |
239 | %attr(755,root,root) %{_libdir}/libsundials_sunlinsolsptfqmr.so | |
240 | %attr(755,root,root) %{_libdir}/libsundials_sunmatrixband.so | |
241 | %attr(755,root,root) %{_libdir}/libsundials_sunmatrixdense.so | |
242 | %attr(755,root,root) %{_libdir}/libsundials_sunmatrixsparse.so | |
bc64d995 JB |
243 | # Fortran - shared |
244 | %if %{with openmp} | |
245 | %attr(755,root,root) %{_libdir}/libsundials_fnvecopenmp.so | |
246 | %endif | |
247 | %attr(755,root,root) %{_libdir}/libsundials_fnvecpthreads.so | |
248 | %attr(755,root,root) %{_libdir}/libsundials_fnvecserial.so | |
ae7c7d3c JB |
249 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolband.so |
250 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsoldense.so | |
251 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolklu.so | |
252 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolpcg.so | |
253 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolspbcgs.so | |
254 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolspfgmr.so | |
255 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolspgmr.so | |
256 | %attr(755,root,root) %{_libdir}/libsundials_fsunlinsolsptfqmr.so | |
257 | %attr(755,root,root) %{_libdir}/libsundials_fsunmatrixband.so | |
258 | %attr(755,root,root) %{_libdir}/libsundials_fsunmatrixdense.so | |
259 | %attr(755,root,root) %{_libdir}/libsundials_fsunmatrixsparse.so | |
bc64d995 JB |
260 | # Fortran - static only |
261 | %{_libdir}/libsundials_farkode.a | |
4fdae0ab | 262 | %{_libdir}/libsundials_fcvode.a |
4fdae0ab | 263 | %{_libdir}/libsundials_fida.a |
4fdae0ab | 264 | %{_libdir}/libsundials_fkinsol.a |
4fdae0ab | 265 | %{_libdir}/libsundials_fnvecserial.a |
bc64d995 | 266 | %{_includedir}/arkode |
4fdae0ab JB |
267 | %{_includedir}/cvode |
268 | %{_includedir}/cvodes | |
269 | %{_includedir}/ida | |
bc64d995 | 270 | %{_includedir}/idas |
4fdae0ab JB |
271 | %{_includedir}/kinsol |
272 | %{_includedir}/nvector | |
273 | %{_includedir}/sundials | |
ae7c7d3c JB |
274 | %{_includedir}/sunlinsol |
275 | %{_includedir}/sunmatrix | |
19938fc0 | 276 | %{_examplesdir}/%{name}-%{version} |
9b589973 JR |
277 | |
278 | %files static | |
279 | %defattr(644,root,root,755) | |
bc64d995 | 280 | %{_libdir}/libsundials_arkode.a |
4fdae0ab JB |
281 | %{_libdir}/libsundials_cvode.a |
282 | %{_libdir}/libsundials_cvodes.a | |
283 | %{_libdir}/libsundials_ida.a | |
bc64d995 | 284 | %{_libdir}/libsundials_idas.a |
4fdae0ab | 285 | %{_libdir}/libsundials_kinsol.a |
bc64d995 JB |
286 | %if %{with openmp} |
287 | %{_libdir}/libsundials_nvecopenmp.a | |
288 | %endif | |
289 | %{_libdir}/libsundials_nvecpthreads.a | |
4fdae0ab | 290 | %{_libdir}/libsundials_nvecserial.a |
ae7c7d3c JB |
291 | %{_libdir}/libsundials_sunlinsolband.a |
292 | %{_libdir}/libsundials_sunlinsoldense.a | |
293 | %{_libdir}/libsundials_sunlinsolklu.a | |
294 | %{_libdir}/libsundials_sunlinsolpcg.a | |
295 | %{_libdir}/libsundials_sunlinsolspbcgs.a | |
296 | %{_libdir}/libsundials_sunlinsolspfgmr.a | |
297 | %{_libdir}/libsundials_sunlinsolspgmr.a | |
298 | %{_libdir}/libsundials_sunlinsolsptfqmr.a | |
299 | %{_libdir}/libsundials_sunmatrixband.a | |
300 | %{_libdir}/libsundials_sunmatrixdense.a | |
301 | %{_libdir}/libsundials_sunmatrixsparse.a | |
bc64d995 JB |
302 | # Fortran |
303 | %if %{with openmp} | |
304 | %{_libdir}/libsundials_fnvecopenmp.a | |
305 | %endif | |
306 | %{_libdir}/libsundials_fnvecpthreads.a | |
307 | %{_libdir}/libsundials_fnvecserial.a | |
ae7c7d3c JB |
308 | %{_libdir}/libsundials_fsunlinsolband.a |
309 | %{_libdir}/libsundials_fsunlinsoldense.a | |
310 | %{_libdir}/libsundials_fsunlinsolklu.a | |
311 | %{_libdir}/libsundials_fsunlinsolpcg.a | |
312 | %{_libdir}/libsundials_fsunlinsolspbcgs.a | |
313 | %{_libdir}/libsundials_fsunlinsolspfgmr.a | |
314 | %{_libdir}/libsundials_fsunlinsolspgmr.a | |
315 | %{_libdir}/libsundials_fsunlinsolsptfqmr.a | |
316 | %{_libdir}/libsundials_fsunmatrixband.a | |
317 | %{_libdir}/libsundials_fsunmatrixdense.a | |
318 | %{_libdir}/libsundials_fsunmatrixsparse.a | |
4fdae0ab JB |
319 | |
320 | %files apidocs | |
321 | %defattr(644,root,root,755) | |
322 | %doc doc/*/*.pdf |