]> git.pld-linux.org Git - packages/sundials.git/blob - sundials.spec
805de4f1f0eb4d824649fea3b1992cf46eb42fd9
[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:        2
5 License:        BSD
6 Group:          Development/Libraries
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 %package devel
28 Summary:        SUNDIALS development files
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 This package contains headers and development files needed to
34 develop applications with SUNDIALS.
35
36 %package static
37 Summary:        SUNDIALS static libraries
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40
41 %description static
42 This package contains SUNDIALS static libraries.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47
48 %build
49 rm -f libtool ltmain.sh
50 cp -f /usr/share/libtool/config/ltmain.sh config
51 %{__aclocal}
52 %{__autoconf}
53 %configure \
54         F77="gfortran" \
55         --enable-shared \
56         --disable-mpi \
57         --enable-examples
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT \
67         EXS_INSTDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post   -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
74
75 %files
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
78 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
79 %attr(755,root,root) %ghost %{_libdir}/lib*.so.1
80
81 %files devel
82 %defattr(644,root,root,755)
83 %doc README doc/*/*.pdf
84 %attr(755,root,root) %{_bindir}/sundials-config
85 %attr(755,root,root) %{_libdir}/lib*.so
86 %{_libdir}/lib*.la
87 %{_includedir}/*
88 %{_examplesdir}/%{name}-%{version}
89
90 %files static
91 %defattr(644,root,root,755)
92 %{_libdir}/lib*.a
This page took 0.053028 seconds and 2 git commands to generate.