]>
Commit | Line | Data |
---|---|---|
4fdae0ab | 1 | # TODO: MPI support |
2e84b9e1 | 2 | Summary: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers |
4fdae0ab | 3 | Summary(pl.UTF-8): Zbiór procedur do rozwiązywania równań nieliniowych i różniczkowych/algebraicznych |
2e84b9e1 JR |
4 | Name: sundials |
5 | Version: 2.3.0 | |
9b589973 | 6 | Release: 2 |
2e84b9e1 | 7 | License: BSD |
4fdae0ab | 8 | Group: Libraries |
2e84b9e1 JR |
9 | Source0: https://computation.llnl.gov/casc/sundials/download/code/%{name}-%{version}.tar.gz |
10 | # Source0-md5: c236f2a7e0e6a03b8fab3d189471b933 | |
19938fc0 | 11 | Patch0: %{name}-DESTDIR.patch |
4fdae0ab JB |
12 | Patch1: %{name}-ac.patch |
13 | Patch2: %{name}-format.patch | |
2e84b9e1 | 14 | URL: https://computation.llnl.gov/casc/sundials/ |
4fdae0ab JB |
15 | BuildRequires: autoconf >= 2.50 |
16 | BuildRequires: gcc-fortran | |
19938fc0 | 17 | BuildRequires: libtool |
4fdae0ab | 18 | BuildRequires: rpm-build >= 4.6 |
2e84b9e1 JR |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
4fdae0ab JB |
22 | SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation |
23 | Solvers) consists of the following four solvers: | |
24 | ||
25 | CVODE: solves initial value problems for ordinary differential | |
26 | equation (ODE) systems. | |
27 | ||
28 | CVODES: solves ODE systems and includes sensitivity analysis | |
29 | capabilities (forward and adjoint). | |
30 | ||
31 | IDA: solves initial value problems for differential-algebraic equation | |
32 | (DAE) systems. | |
33 | ||
34 | KINSOL: solves nonlinear algebraic systems. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation | |
38 | Solvers) to zbiór procedur do rozwiązywania równań nieliniowych i | |
39 | różniczkowych/algebraicznych, składający się z czterech części: | |
40 | ||
41 | CVODE - rozwiązuje problemy wartości początkowej dla układów | |
42 | równań różniczkowych zwyczajnych (ODE) | |
43 | ||
44 | CVODES - rozwiązuje układy równań różniczkowych zwyczajnych; zawiera | |
45 | funkcjonalność analizy wrażliwości (prostej i sprzężonej). | |
2e84b9e1 | 46 | |
4fdae0ab JB |
47 | IDA - rozwiązuje problemy wartości początkowej dla układów równań |
48 | różniczkowo-algebraicznych (DAE). | |
49 | ||
50 | KINSOL - rozwiązuje układy nieliniowych równań algebraicznych. | |
2e84b9e1 | 51 | |
9b589973 JR |
52 | %package devel |
53 | Summary: SUNDIALS development files | |
4fdae0ab | 54 | Summary(pl.UTF-8): Pliki programistyczne SUNDIALS |
9b589973 JR |
55 | Group: Development/Libraries |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description devel | |
59 | This package contains headers and development files needed to | |
60 | develop applications with SUNDIALS. | |
61 | ||
4fdae0ab JB |
62 | %description devel -l pl.UTF-8 |
63 | Ten pakiet zawiera pliki nagłówkowe i programistyczne potrzebne do | |
64 | tworzenia aplikacji z użyciem SUNDIALS. | |
65 | ||
9b589973 JR |
66 | %package static |
67 | Summary: SUNDIALS static libraries | |
4fdae0ab | 68 | Summary(pl.UTF-8): Biblioteki statyczne SUNDIALS |
9b589973 JR |
69 | Group: Development/Libraries |
70 | Requires: %{name}-devel = %{version}-%{release} | |
71 | ||
72 | %description static | |
73 | This package contains SUNDIALS static libraries. | |
74 | ||
4fdae0ab JB |
75 | %description static -l pl.UTF-8 |
76 | Ten pakiet zawiera statyczne biblioteki SUNDIALS. | |
77 | ||
78 | %package apidocs | |
79 | Summary: API documentation for SUNDIALS libraries | |
80 | Summary(pl.UTF-8): Dokumentacja API bibliotek SUNDIALS | |
81 | Group: Documentation | |
82 | BuildArch: noarch | |
83 | ||
84 | %description apidocs | |
85 | API documentation for SUNDIALS libraries. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API bibliotek SUNDIALS. | |
89 | ||
2e84b9e1 JR |
90 | %prep |
91 | %setup -q | |
19938fc0 | 92 | %patch0 -p1 |
4fdae0ab JB |
93 | %patch1 -p1 |
94 | %patch2 -p1 | |
2e84b9e1 JR |
95 | |
96 | %build | |
4fdae0ab JB |
97 | %{__libtoolize} |
98 | %{__mv} ltmain.sh config | |
99 | %{__aclocal} -I config | |
19938fc0 JR |
100 | %{__autoconf} |
101 | %configure \ | |
102 | F77="gfortran" \ | |
4fdae0ab | 103 | --enable-examples \ |
19938fc0 | 104 | --disable-mpi \ |
4fdae0ab | 105 | --enable-shared |
19938fc0 | 106 | |
2e84b9e1 JR |
107 | %{__make} |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
19938fc0 | 111 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2e84b9e1 JR |
112 | |
113 | %{__make} install \ | |
19938fc0 JR |
114 | DESTDIR=$RPM_BUILD_ROOT \ |
115 | EXS_INSTDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
2e84b9e1 JR |
116 | |
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
4fdae0ab JB |
125 | %doc LICENSE README |
126 | %attr(755,root,root) %{_libdir}/libsundials_cvode.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/libsundials_cvode.so.0 | |
128 | %attr(755,root,root) %{_libdir}/libsundials_cvodes.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libsundials_cvodes.so.1 | |
130 | %attr(755,root,root) %{_libdir}/libsundials_ida.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libsundials_ida.so.1 | |
132 | %attr(755,root,root) %{_libdir}/libsundials_kinsol.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libsundials_kinsol.so.0 | |
134 | %attr(755,root,root) %{_libdir}/libsundials_nvecserial.so.*.*.* | |
135 | %attr(755,root,root) %ghost %{_libdir}/libsundials_nvecserial.so.0 | |
9b589973 JR |
136 | |
137 | %files devel | |
138 | %defattr(644,root,root,755) | |
9b589973 | 139 | %attr(755,root,root) %{_bindir}/sundials-config |
4fdae0ab JB |
140 | %attr(755,root,root) %{_libdir}/libsundials_cvode.so |
141 | %attr(755,root,root) %{_libdir}/libsundials_cvodes.so | |
142 | %attr(755,root,root) %{_libdir}/libsundials_ida.so | |
143 | %attr(755,root,root) %{_libdir}/libsundials_kinsol.so | |
144 | %attr(755,root,root) %{_libdir}/libsundials_nvecserial.so | |
145 | %{_libdir}/libsundials_cvode.la | |
146 | %{_libdir}/libsundials_cvodes.la | |
147 | %{_libdir}/libsundials_ida.la | |
148 | %{_libdir}/libsundials_kinsol.la | |
149 | %{_libdir}/libsundials_nvecserial.la | |
150 | # Fortran | |
151 | %{_libdir}/libsundials_fcvode.a | |
152 | %{_libdir}/libsundials_fcvode.la | |
153 | %{_libdir}/libsundials_fida.a | |
154 | %{_libdir}/libsundials_fida.la | |
155 | %{_libdir}/libsundials_fkinsol.a | |
156 | %{_libdir}/libsundials_fkinsol.la | |
157 | %{_libdir}/libsundials_fnvecserial.a | |
158 | %{_libdir}/libsundials_fnvecserial.la | |
159 | %{_includedir}/cvode | |
160 | %{_includedir}/cvodes | |
161 | %{_includedir}/ida | |
162 | %{_includedir}/kinsol | |
163 | %{_includedir}/nvector | |
164 | %{_includedir}/sundials | |
19938fc0 | 165 | %{_examplesdir}/%{name}-%{version} |
9b589973 JR |
166 | |
167 | %files static | |
168 | %defattr(644,root,root,755) | |
4fdae0ab JB |
169 | %{_libdir}/libsundials_cvode.a |
170 | %{_libdir}/libsundials_cvodes.a | |
171 | %{_libdir}/libsundials_ida.a | |
172 | %{_libdir}/libsundials_kinsol.a | |
173 | %{_libdir}/libsundials_nvecserial.a | |
174 | ||
175 | %files apidocs | |
176 | %defattr(644,root,root,755) | |
177 | %doc doc/*/*.pdf |