1 # -*- mode: rpm-spec -*-
3 # By default, this spec file will generate RPMs for clisp
4 # This can be changed by modifying the variables below.
6 %define clisp_flags
--enable-clisp
-exec
8 %define ccl_flags
--disable
-ccl
9 # ccl_flags --enable-ccl-exec --with-ccl=lx86cl
10 %define enable_cmucl
0
11 %define cmucl_flags
--disable
-cmucl
13 %define sbcl_flags
--disable
-sbcl
-exec
15 %define gcl_flags
--disable
-gcl
17 # Options to build language packs
19 %define enable_lang_es
1
20 %define lang_es_flags
--enable-lang
-es
22 %define enable_lang_es_utf
1
23 %define lang_es_flags_utf
--enable-lang
-es
-utf8
25 %define enable_lang_pt
1
26 %define lang_pt_flags
--enable-lang
-pt
28 %define enable_lang_pt_utf
1
29 %define lang_pt_flags_utf
--enable-lang
-pt
-utf8
30 # Brazilian Portuguese
31 %define enable_lang_pt_br
1
32 %define lang_pt_br_flags
--enable-lang
-pt_BR
33 # Brazilian Portuguese (UTF-8)
34 %define enable_lang_pt_br_utf
1
35 %define lang_pt_br_flags_utf
--enable-lang
-pt_BR
-utf8
37 # Inhibit automatic compressing of info files. Compressed info
38 # files break maxima's internal help.
39 %define __spec_install_post
/bin
/true
41 Summary: Symbolic Computation Program
46 Group: Sciences
/Mathematics
47 URL: http
://maxima.sourceforge.net
48 Source0: %{name}-%{version}.tar.gz
49 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
50 Requires: maxima
-exec = %{version}
55 Maxima is a system
for the manipulation of symbolic
56 and numerical expressions
, including differentiation
,
57 integration
, Taylor series
, Laplace transforms
,
58 ordinary differential equations
, systems of linear
59 equations
, polynomials
, sets
, lists
, vectors
, matrices
61 Maxima yields high precision numeric results by using
62 exact fractions
, arbitrary
-precision integers and
63 arbitrary
-precision floating point numbers.
64 Maxima can plot functions and data
in two and three
65 dimensions
, and it comes with hundreds of self tests.
66 Maxima is based on the original Macsyma developed
70 Summary: Maxima graphics program and graphical interface to Maxima
71 Group: Sciences
/Mathematics
72 Requires: maxima
= %{version}, tk
76 A graphical interface to the Maxima symbolic computation
77 program. It also provides a graphics program
78 that can be used from Maxima
, and a Web browser that
79 accepts a custom html tag to execute Maxima commands from
80 an html page. Xmaxima is written
in the Tcl
/Tk language.
84 Summary: Maxima compiled with clisp
85 Group: Sciences
/Mathematics
86 Requires: maxima
= %{version}
88 %description exec-clisp
89 Maxima compiled with clisp.
94 Summary: Maxima compiled with Clozure CL
95 Group: Sciences
/Mathematics
96 Requires: maxima
= %{version}
99 Maxima compiled with Clozure Common Lisp.
104 Summary: Maxima compiled with CMUCL
105 Group: Sciences
/Mathematics
106 Requires: maxima
= %{version}
107 Provides: maxima
-exec
108 %description exec-cmucl
109 Maxima compiled with CMUCL.
114 Summary: Maxima compiled with SBCL
115 Group: Sciences
/Mathematics
116 Requires: maxima
= %{version}
117 Provides: maxima
-exec
118 %description exec-sbcl
119 Maxima compiled with SBCL.
124 Summary: Maxima compiled with GCL
125 Group: Sciences
/Mathematics
126 Requires: maxima
= %{version}
127 Provides: maxima
-exec
128 %description exec-gcl
129 Maxima compiled with Gnu Common Lisp.
132 %if %{enable_lang_es}
134 Summary: Maxima Spanish language pack
135 Group: Sciences
/Mathematics
136 Requires: maxima
= %{version}
138 Maxima Spanish language support.
141 %if %{enable_lang_es_utf}
142 %package lang
-es
-utf8
143 Summary: Maxima Spanish UTF
-8 language pack
144 Group: Sciences
/Mathematics
145 Requires: maxima
= %{version}
146 %description lang
-es
-utf8
147 Maxima Spanish language support
(UTF
-8).
150 %if %{enable_lang_pt}
152 Summary: Maxima Portuguese language pack
153 Group: Sciences
/Mathematics
154 Requires: maxima
= %{version}
156 Maxima Portuguese language support.
159 %if %{enable_lang_pt_utf}
160 %package lang
-pt
-utf8
161 Summary: Maxima Portuguese UTF
-8 language pack
162 Group: Sciences
/Mathematics
163 Requires: maxima
= %{version}
164 %description lang
-pt
-utf8
165 Maxima Portuguese language support
(UTF
-8).
168 %if %{enable_lang_pt_br}
170 Summary: Maxima Brazilian Portuguese language pack
171 Group: Sciences
/Mathematics
172 Requires: maxima
= %{version}
173 %description lang
-pt_BR
174 Maxima Brazilian Portuguese language support.
177 %if %{enable_lang_pt_br_utf}
178 %package lang
-pt_BR
-utf8
179 Summary: Maxima Brazilian Portuguese UTF
-8 language pack
180 Group: Sciences
/Mathematics
181 Requires: maxima
= %{version}
182 %description lang
-pt_BR
-utf8
183 Maxima Brazilian Portuguese language support
(UTF
-8).
188 %configure %{?sbcl_flags:} %{?cmucl_flags:} %{?gcl_flags:} %{?clisp_flags:} %{?ccl_flags:} \
189 %{?lang_es_flags:} %{?lang_es_flags_utf:} \
190 %{?lang_pt_flags:} %{?lang_pt_flags_utf:} \
191 %{?lang_pt_br_flags:} %{?lang_pt_br_flags_utf:}
197 rm -rf $RPM_BUILD_ROOT
200 prefix
=%{?buildroot:%{buildroot}}%{_prefix} \
201 exec_prefix
=%{?buildroot:%{buildroot}}%{_exec_prefix} \
202 bindir
=%{?buildroot:%{buildroot}}%{_bindir} \
203 sbindir
=%{?buildroot:%{buildroot}}%{_sbindir} \
204 sysconfdir
=%{?buildroot:%{buildroot}}%{_sysconfdir} \
205 datadir
=%{?buildroot:%{buildroot}}%{_datadir} \
206 includedir
=%{?buildroot:%{buildroot}}%{_includedir} \
207 libdir
=%{?buildroot:%{buildroot}}%{_libdir} \
208 libexecdir
=%{?buildroot:%{buildroot}}%{_libexecdir} \
209 localstatedir
=%{?buildroot:%{buildroot}}%{_localstatedir} \
210 sharedstatedir
=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
211 mandir
=%{?buildroot:%{buildroot}}%{_mandir} \
212 infodir
=%{?buildroot:%{buildroot}}%{_infodir} \
214 touch debugfiles.list
216 rm -f $RPM_BUILD_ROOT
%{_datadir}/info
/dir
219 /sbin
/install-info
%{_infodir}/maxima.info %{_infodir}/dir
222 if [ "$
1"
= 0 ]; then
223 /sbin
/install-info
--delete
%{_infodir}/maxima.info %{_infodir}/dir
227 /sbin
/install-info
%{_infodir}/xmaxima.info %{_infodir}/dir
230 if [ "$
1"
= 0 ]; then
231 /sbin
/install-info
--delete
%{_infodir}/xmaxima.info %{_infodir}/dir
235 rm -rf $RPM_BUILD_ROOT
238 %defattr(-,root
,root
,-)
239 %dir %{_datadir}/maxima
240 %exclude %{_datadir}/maxima/%{version}/xmaxima
241 %{_datadir}/maxima/%{version}
242 %if %{enable_lang_es}
243 %exclude %{_datadir}/maxima/%{version}/doc
/html
/es
245 %if %{enable_lang_pt}
246 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt
248 %if %{enable_lang_pt_br}
249 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt_BR
251 %if %{enable_lang_es_utf}
252 %exclude %{_datadir}/maxima/%{version}/doc
/html
/es.utf8
254 %if %{enable_lang_pt_utf}
255 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt.utf8
257 %if %{enable_lang_pt_br_utf}
258 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt_BR.utf8
260 %{_datadir}/applications
261 %{_datadir}/bash
-completion
264 %dir %{_libexecdir}/maxima
265 %{_libexecdir}/maxima/%{version}
267 %exclude %{_infodir}/xmaxima.info
*
268 %if %{enable_lang_es}
269 %exclude %{_infodir}/es
271 %if %{enable_lang_pt}
272 %exclude %{_infodir}/pt
274 %if %{enable_lang_pt_br}
275 %exclude %{_infodir}/pt_BR
277 %if %{enable_lang_es_utf}
278 %exclude %{_infodir}/es.utf8
280 %if %{enable_lang_pt_utf}
281 %exclude %{_infodir}/pt.utf8
283 %if %{enable_lang_pt_br_utf}
284 %exclude %{_infodir}/pt_BR.utf8
286 %{_mandir}/man1
/maxima
.1
289 %exclude %{_datadir}/mime
/packages
/x
-mac.xml
290 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS desktopintegration
/x
-mac.xml
291 %doc README README.lisps README.rpms README.external README.i18n
295 %{_datadir}/maxima/%{version}/xmaxima
300 %{_libdir}/maxima/%{version}/binary
-clisp
305 %{_libdir}/maxima/%{version}/binary
-openmcl
310 %{_libdir}/maxima/%{version}/binary
-cmucl
315 %{_libdir}/maxima/%{version}/binary
-sbcl
320 %{_libdir}/maxima/%{version}/binary
-gcl
323 %if %{enable_lang_es}
325 %{_datadir}/maxima/%{version}/doc
/html
/es
329 %if %{enable_lang_es_utf}
331 %{_datadir}/maxima/%{version}/doc
/html
/es.utf8
335 %if %{enable_lang_pt}
337 %{_datadir}/maxima/%{version}/doc
/html
/pt
341 %if %{enable_lang_pt_utf}
343 %{_datadir}/maxima/%{version}/doc
/html
/pt.utf8
347 %if %{enable_lang_pt_br}
349 %{_datadir}/maxima/%{version}/doc
/html
/pt_BR
353 %if %{enable_lang_pt_br_utf}
354 %files lang
-pt_BR
-utf8
355 %{_datadir}/maxima/%{version}/doc
/html
/pt_BR.utf8
356 %{_infodir}/pt_BR.utf8
363 * Sat Jan
20 2007 Vadim Zhytnikov
<vvzhy@netorn.ru
>
364 - Brazilian Portuguese language packs.
366 * Mon Dec
11 2006 Jaime Villate
<villate@fe.up.pt
>
367 - Moved xmaxima files to the maxima
-xmaxima package.
368 - Updated description of Xmaxima.
370 * Wed Dec
28 2005 Vadim Zhytnikov
<vvzhy@netorn.ru
>
371 - Spanish and Portuguese language packs.
372 - Package maxima subdirectories
for clean uninstall.
374 * Sat Jan
4 2003 James Amundson
<amundson@fnal.gov
>
376 - Added explicit clisp version
377 - Added conditional to postun
378 - Renamed exec_
* packages to
exec-*
379 - Use rpm macros instead of hard
-coded paths
380 - Thanks to Rex Dieter
for helpful suggestions
382 * Sun Sep
8 2002 James Amundson
<amundson@fnal.gov
>