]> git.pld-linux.org Git - packages/sundials.git/blob - sundials.spec
d06b38e91ae699dc1d99cf890fc1116e18293073
[packages/sundials.git] / sundials.spec
1 Summary:        SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
2 Name:           sundials
3 Version:        2.3.0
4 Release:        1
5 License:        BSD
6 Group:          Applications/Math
7 Source0:        https://computation.llnl.gov/casc/sundials/download/code/%{name}-%{version}.tar.gz
8 # Source0-md5:  c236f2a7e0e6a03b8fab3d189471b933
9 Patch0:         %{name}-DESTDIR.patch
10 URL:            https://computation.llnl.gov/casc/sundials/
11 BuildRequires:  autoconf
12 BuildRequires:  libtool
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation Solvers)
17 consists of the following four solvers:
18
19 CVODE   solves initial value problems for ordinary differential
20         equation (ODE) systems.
21 CVODES  solves ODE systems and includes sensitivity analysis
22         capabilities (forward and adjoint).
23 IDA     solves initial value problems for differential-algebraic
24         equation (DAE) systems.
25 KINSOL  solves nonlinear algebraic systems.
26
27 %prep
28 %setup -q
29 %patch0 -p1
30
31 %build
32 rm -f libtool ltmain.sh
33 cp -f /usr/share/libtool/config/ltmain.sh config
34 %{__aclocal}
35 %{__autoconf}
36 %configure \
37         F77="gfortran" \
38         --enable-shared \
39         --disable-mpi \
40         --enable-examples
41
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT \
50         EXS_INSTDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post   -p /sbin/ldconfig
56 %postun -p /sbin/ldconfig
57
58 %files
59 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/sundials-config
61 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
62 %attr(755,root,root) %{_libdir}/lib*.so
63 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
64 %attr(755,root,root) %ghost %{_libdir}/lib*.so.1
65 %{_libdir}/lib*.a
66 %{_libdir}/lib*.la
67 %{_includedir}/*
68 %{_examplesdir}/%{name}-%{version}
This page took 0.385308 seconds and 2 git commands to generate.