Summary: Suite of nonlinear solvers Name: sundials Version: 2.3.0 Release: 1%{?dist} License: BSD-style Group: Development/Libraries URL: http://www.llnl.gov/casc/sundials/ Source0: http://ascend.cheme.cmu.edu/ftp/%{name}-%{version}.tar.gz # patch replaces config/ltmain.sh with a newer one. Patch0: sundials-ltmain.patch BuildRoot: /var/tmp/%{name}-%{version} BuildRequires: openmpi-devel BuildRequires: gcc-gfortran BuildRequires: automake, autoconf %description SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers for use in writing mathematical software. 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. %package devel Summary: Suite of nonlinear solvers (developer files) Group: Development/Libraries Requires: %{name} = %{version} %description devel SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers for use in writing mathematical software. This package contains the developer files (.so file, header files) %package doc Summary: Suite of nonlinear solvers (documentation) Group: Development/Libraries %description doc SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers for use in writing mathematical software. This package contains the documentation files %prep %setup -q %patch -p1 %build aclocal autoconf autoheader ./configure \ CXX=g++ \ CC=gcc \ F77=gfortran \ --enable-static=no \ --enable-shared=yes \ --prefix=%_prefix make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT %makeinstall # spot says better no .la files in RPMs rm $RPM_BUILD_ROOT%_libdir/*.la %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig 2>/dev/null %postun /sbin/ldconfig 2>/dev/null %files %defattr(-,root,root) %doc INSTALL_NOTES LICENSE README %_libdir/*.so.[0-9].* %_libdir/*.so.[0-9] %files doc %doc doc/cvode/cv_examples.pdf %doc doc/cvode/cv_guide.pdf %doc doc/kinsol/kin_examples.pdf %doc doc/kinsol/kin_guide.pdf %doc doc/cvodes/cvs_examples.pdf %doc doc/cvodes/cvs_guide.pdf %doc doc/ida/ida_examples.pdf %doc doc/ida/ida_guide.pdf %files devel %_libdir/*.so %_libdir/*.a %_includedir/* %_bindir/sundials-config %changelog * Sun Jul 29 2007 John Pye 2.3.0-1 - Converting to Fedora RPM by removing distro-specific stuff * Wed Jun 27 2007 John Pye 2.3.0 - Creating separate devel, doc and library packages. * Sun Jun 24 2007 John Pye 2.3.0 - Fixed problem with creation of shared libraries (correction thanks to Andrey Romanenko in Debian). * Sat Jun 23 2007 John Pye 2.3.0 - Ported to OpenSUSE Build Service, working on support for openSUSE alongside FC6, FC7. * Thu Jul 27 2006 John Pye 2.3.0-0 - First RPM spec created