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
8 %define ccl_flags
--disable
-ccl
--with
-ccl
=lx86cl
10 %define cmucl_flags
--disable
-cmucl
12 %define sbcl_flags
--disable
-sbcl
14 %define gcl_flags
--disable
-gcl
16 # Options to build language packs
18 %define enable_lang_es
1
19 %define lang_es_flags
--enable-lang
-es
21 %define enable_lang_es_utf
1
22 %define lang_es_flags_utf
--enable-lang
-es
-utf8
24 %define enable_lang_pt
1
25 %define lang_pt_flags
--enable-lang
-pt
27 %define enable_lang_pt_utf
1
28 %define lang_pt_flags_utf
--enable-lang
-pt
-utf8
29 # Brazilian Portuguese
30 %define enable_lang_pt_br
1
31 %define lang_pt_br_flags
--enable-lang
-pt_BR
32 # Brazilian Portuguese (UTF-8)
33 %define enable_lang_pt_br_utf
1
34 %define lang_pt_br_flags_utf
--enable-lang
-pt_BR
-utf8
36 # Inhibit automatic compressing of info files. Compressed info
37 # files break maxima's internal help.
38 %define __spec_install_post
/bin
/true
40 Summary: Symbolic Computation Program
45 Group: Sciences
/Mathematics
46 URL: http
://maxima.sourceforge.net
47 Source0: %{name}-%{version}.tar.gz
48 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
49 Requires: maxima
-exec = %{version}
54 Maxima is a system
for the manipulation of symbolic
55 and numerical expressions
, including differentiation
,
56 integration
, Taylor series
, Laplace transforms
,
57 ordinary differential equations
, systems of linear
58 equations
, polynomials
, sets
, lists
, vectors
, matrices
60 Maxima yields high precision numeric results by using
61 exact fractions
, arbitrary
-precision integers and
62 arbitrary
-precision floating point numbers.
63 Maxima can plot functions and data
in two and three
64 dimensions
, and it comes with hundreds of self tests.
65 Maxima is based on the original Macsyma developed
69 Summary: Maxima graphics program and graphical interface to Maxima
70 Group: Sciences
/Mathematics
71 Requires: maxima
= %{version}, tk
75 A graphical interface to the Maxima symbolic computation
76 program. It also provides a graphics program
77 that can be used from Maxima
, and a Web browser that
78 accepts a custom html tag to execute Maxima commands from
79 an html page. Xmaxima is written
in the Tcl
/Tk language.
83 Summary: Maxima compiled with clisp
84 Group: Sciences
/Mathematics
85 Requires: maxima
= %{version}
87 %description exec-clisp
88 Maxima compiled with clisp.
93 Summary: Maxima compiled with Clozure CL
94 Group: Sciences
/Mathematics
95 Requires: maxima
= %{version}
98 Maxima compiled with Clozure Common Lisp.
103 Summary: Maxima compiled with CMUCL
104 Group: Sciences
/Mathematics
105 Requires: maxima
= %{version}
106 Provides: maxima
-exec
107 %description exec-cmucl
108 Maxima compiled with CMUCL.
113 Summary: Maxima compiled with SBCL
114 Group: Sciences
/Mathematics
115 Requires: maxima
= %{version}
116 Provides: maxima
-exec
117 %description exec-sbcl
118 Maxima compiled with SBCL.
123 Summary: Maxima compiled with GCL
124 Group: Sciences
/Mathematics
125 Requires: maxima
= %{version}
126 Provides: maxima
-exec
127 %description exec-gcl
128 Maxima compiled with Gnu Common Lisp.
131 %if %{enable_lang_es}
133 Summary: Maxima Spanish language pack
134 Group: Sciences
/Mathematics
135 Requires: maxima
= %{version}
137 Maxima Spanish language support.
140 %if %{enable_lang_es_utf}
141 %package lang
-es
-utf8
142 Summary: Maxima Spanish UTF
-8 language pack
143 Group: Sciences
/Mathematics
144 Requires: maxima
= %{version}
145 %description lang
-es
-utf8
146 Maxima Spanish language support
(UTF
-8).
149 %if %{enable_lang_pt}
151 Summary: Maxima Portuguese language pack
152 Group: Sciences
/Mathematics
153 Requires: maxima
= %{version}
155 Maxima Portuguese language support.
158 %if %{enable_lang_pt_utf}
159 %package lang
-pt
-utf8
160 Summary: Maxima Portuguese UTF
-8 language pack
161 Group: Sciences
/Mathematics
162 Requires: maxima
= %{version}
163 %description lang
-pt
-utf8
164 Maxima Portuguese language support
(UTF
-8).
167 %if %{enable_lang_pt_br}
169 Summary: Maxima Brazilian Portuguese language pack
170 Group: Sciences
/Mathematics
171 Requires: maxima
= %{version}
172 %description lang
-pt_BR
173 Maxima Brazilian Portuguese language support.
176 %if %{enable_lang_pt_br_utf}
177 %package lang
-pt_BR
-utf8
178 Summary: Maxima Brazilian Portuguese UTF
-8 language pack
179 Group: Sciences
/Mathematics
180 Requires: maxima
= %{version}
181 %description lang
-pt_BR
-utf8
182 Maxima Brazilian Portuguese language support
(UTF
-8).
187 %configure %{?sbcl_flags:} %{?cmucl_flags:} %{?gcl_flags:} %{?clisp_flags:} %{?ccl_flags:} \
188 %{?lang_es_flags:} %{?lang_es_flags_utf:} \
189 %{?lang_pt_flags:} %{?lang_pt_flags_utf:} \
190 %{?lang_pt_br_flags:} %{?lang_pt_br_flags_utf:}
196 rm -rf $RPM_BUILD_ROOT
199 prefix
=%{?buildroot:%{buildroot}}%{_prefix} \
200 exec_prefix
=%{?buildroot:%{buildroot}}%{_exec_prefix} \
201 bindir
=%{?buildroot:%{buildroot}}%{_bindir} \
202 sbindir
=%{?buildroot:%{buildroot}}%{_sbindir} \
203 sysconfdir
=%{?buildroot:%{buildroot}}%{_sysconfdir} \
204 datadir
=%{?buildroot:%{buildroot}}%{_datadir} \
205 includedir
=%{?buildroot:%{buildroot}}%{_includedir} \
206 libdir
=%{?buildroot:%{buildroot}}%{_libdir} \
207 libexecdir
=%{?buildroot:%{buildroot}}%{_libexecdir} \
208 localstatedir
=%{?buildroot:%{buildroot}}%{_localstatedir} \
209 sharedstatedir
=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
210 mandir
=%{?buildroot:%{buildroot}}%{_mandir} \
211 infodir
=%{?buildroot:%{buildroot}}%{_infodir} \
213 touch debugfiles.list
215 rm -f $RPM_BUILD_ROOT
%{_datadir}/info
/dir
218 /sbin
/install-info
%{_infodir}/maxima.info %{_infodir}/dir
221 if [ "$
1"
= 0 ]; then
222 /sbin
/install-info
--delete
%{_infodir}/maxima.info %{_infodir}/dir
226 /sbin
/install-info
%{_infodir}/xmaxima.info %{_infodir}/dir
229 if [ "$
1"
= 0 ]; then
230 /sbin
/install-info
--delete
%{_infodir}/xmaxima.info %{_infodir}/dir
234 rm -rf $RPM_BUILD_ROOT
237 %defattr(-,root
,root
,-)
238 %dir %{_datadir}/maxima
239 %exclude %{_datadir}/maxima/%{version}/xmaxima
240 %{_datadir}/maxima/%{version}
241 %if %{enable_lang_es}
242 %exclude %{_datadir}/maxima/%{version}/doc
/html
/es
244 %if %{enable_lang_pt}
245 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt
247 %if %{enable_lang_pt_br}
248 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt_BR
250 %if %{enable_lang_es_utf}
251 %exclude %{_datadir}/maxima/%{version}/doc
/html
/es.utf8
253 %if %{enable_lang_pt_utf}
254 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt.utf8
256 %if %{enable_lang_pt_br_utf}
257 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt_BR.utf8
259 %dir %{_libexecdir}/maxima
260 %{_libexecdir}/maxima/%{version}
262 %exclude %{_infodir}/xmaxima.info
*
263 %if %{enable_lang_es}
264 %exclude %{_infodir}/es
266 %if %{enable_lang_pt}
267 %exclude %{_infodir}/pt
269 %if %{enable_lang_pt_br}
270 %exclude %{_infodir}/pt_BR
272 %if %{enable_lang_es_utf}
273 %exclude %{_infodir}/es.utf8
275 %if %{enable_lang_pt_utf}
276 %exclude %{_infodir}/pt.utf8
278 %if %{enable_lang_pt_br_utf}
279 %exclude %{_infodir}/pt_BR.utf8
281 %{_mandir}/man1
/maxima
.1
284 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS
285 %doc README README.lisps README.rpms README.external README.i18n
289 %{_datadir}/maxima/%{version}/xmaxima
294 %{_libdir}/maxima/%{version}/binary
-clisp
299 %{_libdir}/maxima/%{version}/binary
-openmcl
304 %{_libdir}/maxima/%{version}/binary
-cmucl
309 /usr
/lib
/maxima
/%{version}/binary
-sbcl
314 %{_libdir}/maxima/%{version}/binary
-gcl
317 %if %{enable_lang_es}
319 %{_datadir}/maxima/%{version}/doc
/html
/es
323 %if %{enable_lang_es_utf}
325 %{_datadir}/maxima/%{version}/doc
/html
/es.utf8
329 %if %{enable_lang_pt}
331 %{_datadir}/maxima/%{version}/doc
/html
/pt
335 %if %{enable_lang_pt_utf}
337 %{_datadir}/maxima/%{version}/doc
/html
/pt.utf8
341 %if %{enable_lang_pt_br}
343 %{_datadir}/maxima/%{version}/doc
/html
/pt_BR
347 %if %{enable_lang_pt_br_utf}
348 %files lang
-pt_BR
-utf8
349 %{_datadir}/maxima/%{version}/doc
/html
/pt_BR.utf8
350 %{_infodir}/pt_BR.utf8
357 * Sat Jan
20 2007 Vadim Zhytnikov
<vvzhy@netorn.ru
>
358 - Brazilian Portuguese language packs.
360 * Mon Dec
11 2006 Jaime Villate
<villate@fe.up.pt
>
361 - Moved xmaxima files to the maxima
-xmaxima package.
362 - Updated description of Xmaxima.
364 * Wed Dec
28 2005 Vadim Zhytnikov
<vvzhy@netorn.ru
>
365 - Spanish and Portuguese language packs.
366 - Package maxima subdirectories
for clean uninstall.
368 * Sat Jan
4 2003 James Amundson
<amundson@fnal.gov
>
370 - Added explicit clisp version
371 - Added conditional to postun
372 - Renamed exec_
* packages to
exec-*
373 - Use rpm macros instead of hard
-coded paths
374 - Thanks to Rex Dieter
for helpful suggestions
376 * Sun Sep
8 2002 James Amundson
<amundson@fnal.gov
>