/[ascend]/trunk/tools/sundials/sundials.spec
ViewVC logotype

Contents of /trunk/tools/sundials/sundials.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2647 - (show annotations) (download)
Wed Dec 12 02:31:10 2012 UTC (9 years, 6 months ago) by jpye
File size: 3717 byte(s)
Revert to SUNDIALS 2.4.0 (we need to make some changes as noted in bug 559).
1 # This is a SPEC file to build SUNDIALS RPM for Fedora 17 and thereabouts.
2 #
3 #
4 %define libname sundials
5
6 Summary: Suite of nonlinear solvers
7 Name: sundials
8 Version: 2.4.0
9 Release: 0%{?dist}
10 License: BSD-style
11 Group: System/Libraries
12 URL: http://www.llnl.gov/casc/sundials/
13 Source0: https://computation.llnl.gov/casc/sundials/download/code/%{name}-%{version}.tar.gz
14
15 # patch replaces config/ltmain.sh with a newer one.
16 #Patch0: sundials-ltmain.patch
17
18 BuildRoot: /var/tmp/%{name}-%{version}
19
20 %if 0%{?fedora_version}
21 %define makeinstall1 %makeinstall
22 BuildRequires: openmpi-devel
23 BuildRequires: gcc-gfortran
24 %else
25 %define makeinstall1 make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir} includedir=$RPM_BUILD_ROOT%{_includedir} bindir=$RPM_BUILD_ROOT%{_bindir} datadir=$RPM_BUILD_ROOT%{_datadir} mandir=$RPM_BUILD_ROOT%{_mandir} infodir=$RPM_BUILD_ROOT%{_infodir} install
26 %if 0%{?mandriva_version}
27 BuildRequires: libmpich1-devel mpicc
28 BuildRequires: gcc-gfortran
29 %else
30 %if 0%{?suse_version}
31 BuildRequires: mpich-devel
32 BuildRequires: gcc-fortran
33 %else
34 # fallback is xubuntu
35 BuildRequires: gfortran mpich
36 %endif
37 %endif
38 %endif
39
40 %description
41 SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers
42 for use in writing mathematical software.
43
44 SUNDIALS was implemented with the goal of providing robust time integrators
45 and nonlinear solvers that can easily be incorporated into existing simulation
46 codes. The primary design goals were to require minimal information from the
47 user, allow users to easily supply their own data structures underneath the
48 solvers, and allow for easy incorporation of user-supplied linear solvers and
49 preconditioners.
50
51 %package devel
52 Summary: Suite of nonlinear solvers (developer files)
53 Group: System/Libraries
54 Requires: %{name} = %{version}
55 %description devel
56 SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers
57 for use in writing mathematical software.
58
59 This package contains the developer files (.so file, header files)
60
61 %package doc
62 Summary: Suite of nonlinear solvers (documentation)
63 Group: System/Libraries
64 %description doc
65 SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers
66 for use in writing mathematical software.
67
68 This package contains the documentation files
69
70 %prep
71 %setup -q
72 #%patch -p1
73
74 %build
75 ./configure \
76 CXX=g++ \
77 CC=gcc \
78 F77=gfortran \
79 --enable-static=no \
80 --enable-shared=yes \
81 --prefix=%_prefix
82 make %{?_smp_mflags}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 mkdir -p $RPM_BUILD_ROOT
87 %makeinstall1
88
89 # spot says better no .la files in RPMs
90 rm $RPM_BUILD_ROOT%_libdir/*.la
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files
96 %defattr(-,root,root)
97 %doc INSTALL_NOTES LICENSE README
98 %_libdir/*.so.[0-9].*
99 %_libdir/*.so.[0-9]
100
101 %files doc
102 %doc doc/cvode/cv_examples.pdf
103 %doc doc/cvode/cv_guide.pdf
104 %doc doc/kinsol/kin_examples.pdf
105 %doc doc/kinsol/kin_guide.pdf
106 %doc doc/cvodes/cvs_examples.pdf
107 %doc doc/cvodes/cvs_guide.pdf
108 %doc doc/ida/ida_examples.pdf
109 %doc doc/ida/ida_guide.pdf
110
111 %files devel
112 %_libdir/*.so
113 %_libdir/*.a
114 %_includedir
115 %_bindir/sundials-config
116
117 %changelog
118 * Wed Dec 12 2012 John Pye <john@curioussymbols.com> 2.5.0
119 - Updating for Fedora 17 (time passes...)
120
121 * Wed Jun 27 2007 John Pye <john@curioussymbols.com> 2.3.0
122 - Creating separate devel, doc and library packages.
123
124 * Sun Jun 24 2007 John Pye <john@curioussymbols.com> 2.3.0
125 - Fixed problem with creation of shared libraries (correction thanks to Andrey Romanenko in Debian).
126
127 * Sat Jun 23 2007 John Pye <john@curioussymbols.com> 2.3.0
128 - Ported to OpenSUSE Build Service, working on support for openSUSE alongside FC6, FC7.
129
130 * Thu Jul 27 2006 John Pye <john.pye@student.unsw.edu.au> 2.3.0-0
131 - First RPM spec created
132

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22