File sundials.spec of Package sundials
#
# spec file for package sundials (Version 0.1a)
#
# Copyright (c) 2008 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#
#norootforbuild
#BuildRequires:
Summary: Robust time integrators and non-linear solvers
Name: sundials
Version: 2.3.0
Release: 0.1a
License: BSD
Group: Science
Source: sundials-%{version}.tar.gz
URL: http://computation.llnl.gov/casc/sundials/main.html
Vendor: CASC
Packager: Karl Edler
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Patch: svnSnapShot.patch
%description
SUNDIALS was implemented with the goal of providing robust time integrators and nonlinear solvers that can easily be incorporated into existing simulation codes. The primary design goals were to require minimal information from the user, allow users to easily supply their own data structures underneath the solvers, and allow for easy incorporation of user-supplied linear solvers and preconditioners.
The main numerical operations performed in these codes are operations on data vectors, and the codes have been written in terms of interfaces to these vector operations. The result of this design is that users can relatively easily provide their own data structures to the solvers by telling the solver about their structures and providing the required operations on them. The codes also come with default vector structures with pre-defined operation implementations for both serial and distributed memory parallel environments in case a user prefers not to supply their own structures. In addition, all parallelism is contained within specific vector operations (norms, dot products, etc.) No other operations within the solvers require knowledge of parallelism. Thus, using a solver in parallel consists of using a parallel vector implementation, either the one provided with SUNDIALS, or the user\'s own parallel vector structure, underneath the solver. Hence, we do not make a distinction between parallel and serial versions of the codes.
%package sundials-cvode-devel
Summary: Delelopment Files for cvode
Group: sundials/cvode/devel
%description sundials-cvode-devel
Development files for cvode
%package sundials-cvodes-devel
Summary: Delelopment Files for cvodes
Group: sundials/cvodes/devel
%description sundials-cvodes-devel
Development files for cvodes
%package sundials-ida-devel
Summary: Delelopment Files for ida
Group: sundials/ida/devel
%description sundials-ida-devel
Development files for ida
%package sundials-kinsol-devel
Summary: Delelopment Files for kinsol
Group: sundials/kinsol/devel
%description sundials-kinsol-devel
Development files for kinsol
%package sundials-nvector-devel
Summary: Delelopment Files for nvector
Group: sundials/nvector/devel
%description sundials-nvector-devel
Development files for nvector
%package sundials-devel
Summary: Delelopment Files for sundials
Group: sundials/devel
%description sundials-devel
Development files for sundials
#################################################
%prep
%setup
#%patch -p1
#################################################
%build
./configure --prefix=/usr --libdir=%{_libdir}
make
#################################################
%install
make prefix=%{buildroot}/usr libdir=%{buildroot}%{_libdir} install
#################################################
%files
%defattr(-,root,root)
%{_libdir}/libsundials*
/usr/bin/sundials-config
%files sundials-cvode-devel
%defattr(-,root,root)
%dir /usr/include/cvode
/usr/include/cvode/*
%files sundials-cvodes-devel
%defattr(-,root,root)
%dir /usr/include/cvodes
/usr/include/cvodes/*
%files sundials-ida-devel
%defattr(-,root,root)
%dir /usr/include/ida
/usr/include/ida/*
%files sundials-kinsol-devel
%defattr(-,root,root)
%dir /usr/include/kinsol
/usr/include/kinsol/*
%files sundials-nvector-devel
%defattr(-,root,root)
%dir /usr/include/nvector
/usr/include/nvector/*
%files sundials-devel
%defattr(-,root,root)
%dir /usr/include/sundials
/usr/include/sundials/*