/[packages]/cauldron/maxima/current/SPECS/maxima.spec
ViewVC logotype

Contents of /cauldron/maxima/current/SPECS/maxima.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95217 - (show annotations) (download)
Thu May 5 20:48:56 2011 UTC (12 years, 11 months ago) by grenoya
File size: 5619 byte(s)
- clean old Mdv syntax
- diseable sbcl
1 %define enable_clisp 1
2 %define enable_gcl 1
3 %define enable_sbcl 0
4 %define enable_ecl 1
5 %define defaultlisp clisp
6
7 %if %enable_clisp
8 %define clisp_flags --enable-clisp
9 %else
10 %define clisp_flags --disable-clisp
11 %endif
12
13 %if %enable_gcl
14 %define gcl_flags --enable-gcl
15 %else
16 %define gcl_flags --disable-gcl
17 %endif
18
19 %if %enable_sbcl
20 %define sbcl_flags --enable-sbcl
21 %else
22 %define sbcl_flags --disable-sbcl
23 %endif
24
25 %if %enable_ecl
26 %define ecl_flags --enable-ecl
27 %else
28 %define ecl_flags --disable-ecl
29 %endif
30
31 Summary: Maxima Symbolic Computation Program
32 Name: maxima
33 Version: 5.24.0
34 Release: %mkrel 1
35 License: GPLv2
36 Group: Sciences/Mathematics
37 URL: http://maxima.sourceforge.net
38 Source0: http://prdownloads.sourceforge.net/maxima/%{name}-%{version}.tar.gz
39 Source1: icons-%{name}.tar.bz2
40 Patch0: maxima-5.22.0-xdg-utils.patch
41 Patch1: maxima-5.14.0-missed-extract-categories.patch
42 Patch2: maxima-fix-contrib-docs.patch
43 Patch3: maxima-5.23.0-clisp-noreadline.patch
44 Patch4: maxima-5.22.0-ecl-ldflags.patch
45 BuildRequires: texinfo
46 BuildRequires: texlive
47 BuildRequires: python
48 Suggests: tk
49 Suggests: tcl
50 Requires: maxima-runtime
51 Requires: gnuplot
52 %if %{enable_clisp}
53 BuildRequires: clisp
54 %endif
55 %if %{enable_gcl}
56 BuildRequires: gcl > 2.5.3
57 %endif
58 %if %{enable_sbcl}
59 BuildRequires: sbcl
60 %endif
61 %if %{enable_ecl}
62 BuildRequires: ecl
63 %endif
64 BuildRoot: %{_tmppath}/%{name}-%{version}
65
66 %description
67 Maxima is a full symbolic computation program. It is full featured
68 doing symbolic manipulation of polynomials, matrices, rational
69 functions, integration, Todd-coxeter, graphing, bigfloats. It has a
70 symbolic debugger source level debugger for maxima code. Maxima is
71 based on the original Macsyma developed at MIT in the 1970's. It is
72 quite reliable, and has good garbage collection, and no memory leaks.
73 It comes with hundreds of self tests.
74
75 #--------------------------------------------------------------------
76
77 %package gui
78 Summary: Tcl/Tk GUI interface to Maxima
79 Group: Sciences/Mathematics
80 Requires: maxima
81 Requires: tk
82 Provides: xmaxima = %{version}-%{release}
83 %description gui
84 Tcl/Tk GUI interface to Maxima.
85
86 %files gui
87 %defattr(-,root,root)
88 %{_bindir}/xmaxima
89 %{_datadir}/applications/mageia-%{name}.desktop
90 %{_iconsdir}/hicolor/*/apps/*.png
91
92 #--------------------------------------------------------------------
93
94 %if %{enable_clisp}
95 %package runtime-clisp
96 Summary: Maxima compiled with clisp
97 Group: Sciences/Mathematics
98 Requires: clisp
99 Requires: maxima = %{version}-%{release}
100 Provides: maxima-runtime = %{version}-%{release}
101 %description runtime-clisp
102 Maxima compiled with clisp.
103
104 %files runtime-clisp
105 %defattr(-,root,root)
106 %dir %{_libdir}/maxima/%{version}/binary-clisp
107 %{_libdir}/maxima/%{version}/binary-clisp/*
108 %endif
109
110 #--------------------------------------------------------------------
111
112 %if %{enable_gcl}
113 %package runtime-gcl
114 Summary: Maxima compiled with GCL
115 Group: Sciences/Mathematics
116 Requires: maxima = %{version}-%{release}
117 Suggests: rlwrap
118 Provides: maxima-runtime = %{version}-%{release}
119 %description runtime-gcl
120 Maxima compiled with Gnu Common Lisp.
121
122 %files runtime-gcl
123 %defattr(-,root,root)
124 %{_bindir}/rmaxima
125 %dir %{_libdir}/maxima/%{version}/binary-gcl
126 %{_libdir}/maxima/%{version}/binary-gcl/*
127 %endif
128
129 #--------------------------------------------------------------------
130 %if %{enable_sbcl}
131 %package runtime-sbcl
132 Summary: Maxima compiled with SBCL
133 Group: Sciences/Mathematics
134 Requires: sbcl = 1.0.45
135 Requires: maxima = %{version}-%{release}
136 Provides: maxima-runtime = %{version}-%{release}
137
138 %description runtime-sbcl
139 Maxima compiled with SBCL.
140
141 %files runtime-sbcl
142 %defattr(-,root,root)
143 %dir %{_libdir}/maxima/%{version}/binary-sbcl
144 %{_libdir}/maxima/%{version}/binary-sbcl/*
145 %endif
146
147 %if %{enable_ecl}
148 %package runtime-ecl
149 Summary: Maxima compiled with ECL
150 Group: Sciences/Mathematics
151 Requires: maxima = %{version}-%{release}
152 Provides: maxima-runtime = %{version}-%{release}
153
154 %description runtime-ecl
155 Maxima compiled with ECL.
156
157 %files runtime-ecl
158 %defattr(-,root,root)
159 %dir %{_libdir}/maxima/%{version}/binary-ecl
160 %{_libdir}/maxima/%{version}/binary-ecl/*
161 %endif
162
163 #--------------------------------------------------------------------
164
165 %prep
166 %setup -q -n %{name}-%{version}
167 %patch0 -p1
168 %patch1 -p1
169 %patch2 -p1
170 %patch3 -p1
171 %patch4 -p1
172
173 %build
174 export GCL_ANSI=y
175 %if %{enable_sbcl}
176 export SBCL_HOME=%{_libdir}/sbcl
177 %endif
178 CFLAGS="%optflags -fno-fast-math" \
179 CXXFLAGS="%optflags -fno-fast-math" \
180 %configure2_5x \
181 %{clisp_flags} \
182 %{gcl_flags} \
183 %{sbcl_flags} \
184 %{ecl_flags} \
185 --with-default-lisp=%{defaultlisp}
186
187 make
188 make check
189
190 (cd doc/info
191 texi2dvi -p -t @afourpaper -t @finalout maxima.texi
192 )
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 %makeinstall
197 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
198
199 # menu
200 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
201 cat > $RPM_BUILD_ROOT%{_datadir}/applications/%_real_vendor-%{name}.desktop << EOF
202 [Desktop Entry]
203 Name=Maxima
204 Comment=Tcl/Tk interface to Maxima
205 Exec=%{_bindir}/xmaxima
206 Icon=%{name}
207 Terminal=false
208 Type=Application
209 Categories=Science;Math;
210 EOF
211
212 # icons
213 mkdir -p $RPM_BUILD_ROOT%{_iconsdir}
214 tar xjf %{SOURCE1} -C $RPM_BUILD_ROOT%{_iconsdir}
215
216 # don't compress info pages
217 export EXCLUDE_FROM_COMPRESS=info
218
219 %post
220 %_install_info maxima.info
221 %update_icon_cache hicolor
222
223 %postun
224 %_remove_install_info maxima.info
225 %clean_icon_cache hicolor
226
227 %clean
228 rm -rf $RPM_BUILD_ROOT
229
230 %files
231 %defattr(-,root,root)
232 %doc AUTHORS COPYING README README.lisps
233 %doc doc/info/maxima.pdf
234 %{_bindir}/maxima
235 %{_bindir}/rmaxima
236 %{_libdir}/maxima/%{version}/mgnuplot
237 %{_datadir}/maxima/%{version}/*
238 %{_infodir}/*.info*
239 %{_infodir}/maxima-index.lisp*
240 %{_mandir}/man1/maxima.*
241
242

  ViewVC Help
Powered by ViewVC 1.1.30