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
--disable
-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
--enable-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.
83 Summary: Emacs modes
for Maxima
84 Group: Sciences
/Mathematics
85 Requires: maxima
= %{version}, emacs
86 Provides: maxima
-emacs
89 emaxima and imaxima
, two emacs packages that allow to run
90 maxima interactively from an emacs buffer.
94 Summary: Maxima compiled with clisp
95 Group: Sciences
/Mathematics
96 Requires: maxima
= %{version}
98 %description exec-clisp
99 Maxima compiled with clisp.
104 Summary: Maxima compiled with Clozure CL
105 Group: Sciences
/Mathematics
106 Requires: maxima
= %{version}
107 Provides: maxima
-exec
108 %description exec-ccl
109 Maxima compiled with Clozure Common Lisp.
114 Summary: Maxima compiled with CMUCL
115 Group: Sciences
/Mathematics
116 Requires: maxima
= %{version}
117 Provides: maxima
-exec
118 %description exec-cmucl
119 Maxima compiled with CMUCL.
124 Summary: Maxima compiled with SBCL
125 Group: Sciences
/Mathematics
126 Requires: maxima
= %{version}
127 Provides: maxima
-exec
128 %description exec-sbcl
129 Maxima compiled with SBCL.
134 Summary: Maxima compiled with GCL
135 Group: Sciences
/Mathematics
136 Requires: maxima
= %{version}
137 Provides: maxima
-exec
138 %description exec-gcl
139 Maxima compiled with Gnu Common Lisp.
142 %if %{enable_lang_es}
144 Summary: Maxima Spanish language pack
145 Group: Sciences
/Mathematics
146 Requires: maxima
= %{version}
148 Maxima Spanish language support.
151 %if %{enable_lang_es_utf}
152 %package lang
-es
-utf8
153 Summary: Maxima Spanish UTF
-8 language pack
154 Group: Sciences
/Mathematics
155 Requires: maxima
= %{version}
156 %description lang
-es
-utf8
157 Maxima Spanish language support
(UTF
-8).
160 %if %{enable_lang_pt}
162 Summary: Maxima Portuguese language pack
163 Group: Sciences
/Mathematics
164 Requires: maxima
= %{version}
166 Maxima Portuguese language support.
169 %if %{enable_lang_pt_utf}
170 %package lang
-pt
-utf8
171 Summary: Maxima Portuguese UTF
-8 language pack
172 Group: Sciences
/Mathematics
173 Requires: maxima
= %{version}
174 %description lang
-pt
-utf8
175 Maxima Portuguese language support
(UTF
-8).
178 %if %{enable_lang_pt_br}
180 Summary: Maxima Brazilian Portuguese language pack
181 Group: Sciences
/Mathematics
182 Requires: maxima
= %{version}
183 %description lang
-pt_BR
184 Maxima Brazilian Portuguese language support.
187 %if %{enable_lang_pt_br_utf}
188 %package lang
-pt_BR
-utf8
189 Summary: Maxima Brazilian Portuguese UTF
-8 language pack
190 Group: Sciences
/Mathematics
191 Requires: maxima
= %{version}
192 %description lang
-pt_BR
-utf8
193 Maxima Brazilian Portuguese language support
(UTF
-8).
198 %configure %{?sbcl_flags:} %{?cmucl_flags:} %{?gcl_flags:} %{?clisp_flags:} %{?ccl_flags:} \
199 %{?lang_es_flags:} %{?lang_es_flags_utf:} \
200 %{?lang_pt_flags:} %{?lang_pt_flags_utf:} \
201 %{?lang_pt_br_flags:} %{?lang_pt_br_flags_utf:}
207 rm -rf $RPM_BUILD_ROOT
210 prefix
=%{?buildroot:%{buildroot}}%{_prefix} \
211 exec_prefix
=%{?buildroot:%{buildroot}}%{_exec_prefix} \
212 bindir
=%{?buildroot:%{buildroot}}%{_bindir} \
213 sbindir
=%{?buildroot:%{buildroot}}%{_sbindir} \
214 sysconfdir
=%{?buildroot:%{buildroot}}%{_sysconfdir} \
215 datadir
=%{?buildroot:%{buildroot}}%{_datadir} \
216 includedir
=%{?buildroot:%{buildroot}}%{_includedir} \
217 libdir
=%{?buildroot:%{buildroot}}%{_libdir} \
218 libexecdir
=%{?buildroot:%{buildroot}}%{_libexecdir} \
219 localstatedir
=%{?buildroot:%{buildroot}}%{_localstatedir} \
220 sharedstatedir
=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
221 mandir
=%{?buildroot:%{buildroot}}%{_mandir} \
222 infodir
=%{?buildroot:%{buildroot}}%{_infodir} \
224 touch debugfiles.list
226 rm -f $RPM_BUILD_ROOT
%{_datadir}/info
/dir
229 /sbin
/install-info
%{_infodir}/maxima.info %{_infodir}/dir
232 if [ "$
1"
= 0 ]; then
233 /sbin
/install-info
--delete
%{_infodir}/maxima.info %{_infodir}/dir
237 /sbin
/install-info
%{_infodir}/xmaxima.info %{_infodir}/dir
240 if [ "$
1"
= 0 ]; then
241 /sbin
/install-info
--delete
%{_infodir}/xmaxima.info %{_infodir}/dir
245 rm -rf $RPM_BUILD_ROOT
248 %defattr(-,root
,root
,-)
249 %dir %{_datadir}/maxima
250 %exclude %{_datadir}/maxima
/*/xmaxima
252 %if %{enable_lang_es}
253 %exclude %{_datadir}/maxima
/*/doc
/html
/es
255 %if %{enable_lang_pt}
256 %exclude %{_datadir}/maxima
/*/doc
/html
/pt
258 %if %{enable_lang_pt_br}
259 %exclude %{_datadir}/maxima
/*/doc
/html
/pt_BR
261 %if %{enable_lang_es_utf}
262 %exclude %{_datadir}/maxima
/*/doc
/html
/es.utf8
264 %if %{enable_lang_pt_utf}
265 %exclude %{_datadir}/maxima
/*/doc
/html
/pt.utf8
267 %if %{enable_lang_pt_br_utf}
268 %exclude %{_datadir}/maxima
/*/doc
/html
/pt_BR.utf8
270 %{_datadir}/applications
271 %{_datadir}/bash
-completion
274 %{_datadir}/metainfo
/
275 %dir %{_libexecdir}/maxima
276 %{_libexecdir}/maxima
/*
278 %exclude %{_infodir}/xmaxima.info
*
279 %if %{enable_lang_es}
280 %exclude %{_infodir}/es
282 %if %{enable_lang_pt}
283 %exclude %{_infodir}/pt
285 %if %{enable_lang_pt_br}
286 %exclude %{_infodir}/pt_BR
288 %if %{enable_lang_es_utf}
289 %exclude %{_infodir}/es.utf8
291 %if %{enable_lang_pt_utf}
292 %exclude %{_infodir}/pt.utf8
294 %if %{enable_lang_pt_br_utf}
295 %exclude %{_infodir}/pt_BR.utf8
297 %{_mandir}/man1
/maxima
.1
300 %exclude %{_datadir}/mime
/packages
/x
-mac.xml
301 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS desktopintegration
/x
-mac.xml
302 %doc README README
-lisps.md README.rpms README.external README.i18n
306 %{_datadir}/maxima
/*/xmaxima
310 %{_datadir}/emacs
/*/*
314 %{_libdir}/maxima
/*/binary
-clisp
319 %{_libdir}/maxima
/*/binary
-openmcl
324 %{_libdir}/maxima
/*/binary
-cmucl
329 %{_libdir}/maxima
/*/binary
-sbcl
334 %{_libdir}/maxima
/*/binary
-gcl
337 %if %{enable_lang_es}
339 %{_datadir}/maxima
/*/doc
/html
/es
343 %if %{enable_lang_es_utf}
345 %{_datadir}/maxima
/*/doc
/html
/es.utf8
349 %if %{enable_lang_pt}
351 %{_datadir}/maxima
/*/doc
/html
/pt
355 %if %{enable_lang_pt_utf}
357 %{_datadir}/maxima
/*/doc
/html
/pt.utf8
361 %if %{enable_lang_pt_br}
363 %{_datadir}/maxima
/*/doc
/html
/pt_BR
367 %if %{enable_lang_pt_br_utf}
368 %files lang
-pt_BR
-utf8
369 %{_datadir}/maxima
/*/doc
/html
/pt_BR.utf8
370 %{_infodir}/pt_BR.utf8
377 * Sat Jan
20 2007 Vadim Zhytnikov
<vvzhy@netorn.ru
>
378 - Brazilian Portuguese language packs.
380 * Mon Dec
11 2006 Jaime Villate
<villate@fe.up.pt
>
381 - Moved xmaxima files to the maxima
-xmaxima package.
382 - Updated description of Xmaxima.
384 * Wed Dec
28 2005 Vadim Zhytnikov
<vvzhy@netorn.ru
>
385 - Spanish and Portuguese language packs.
386 - Package maxima subdirectories
for clean uninstall.
388 * Sat Jan
4 2003 James Amundson
<amundson@fnal.gov
>
390 - Added explicit clisp version
391 - Added conditional to postun
392 - Renamed exec_
* packages to
exec-*
393 - Use rpm macros instead of hard
-coded paths
394 - Thanks to Rex Dieter
for helpful suggestions
396 * Sun Sep
8 2002 James Amundson
<amundson@fnal.gov
>