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 cmucl_flags
--disable
-cmucl
10 %define sbcl_flags
--disable
-sbcl
12 %define gcl_flags
--disable
-gcl
14 # Options to build language packs
16 %define enable_lang_es
1
17 %define lang_es_flags
--enable-lang
-es
19 %define enable_lang_es_utf
1
20 %define lang_es_flags_utf
--enable-lang
-es
-utf8
22 %define enable_lang_pt
1
23 %define lang_pt_flags
--enable-lang
-pt
25 %define enable_lang_pt_utf
1
26 %define lang_pt_flags_utf
--enable-lang
-pt
-utf8
27 # Brazilian Portuguese
28 %define enable_lang_pt_br
1
29 %define lang_pt_br_flags
--enable-lang
-pt_BR
30 # Brazilian Portuguese (UTF-8)
31 %define enable_lang_pt_br_utf
1
32 %define lang_pt_br_flags_utf
--enable-lang
-pt_BR
-utf8
34 # Inhibit automatic compressing of info files. Compressed info
35 # files break maxima's internal help.
36 %define __spec_install_post
/bin
/true
38 Summary: Symbolic Computation Program
43 Group: Sciences
/Mathematics
44 URL: http
://maxima.sourceforge.net
45 Source0: %{name}-%{version}.tar.gz
46 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
47 Requires: maxima
-exec = %{version}
52 Maxima is a system
for the manipulation of symbolic
53 and numerical expressions
, including differentiation
,
54 integration
, Taylor series
, Laplace transforms
,
55 ordinary differential equations
, systems of linear
56 equations
, polynomials
, sets
, lists
, vectors
, matrices
58 Maxima yields high precision numeric results by using
59 exact fractions
, arbitrary
-precision integers and
60 arbitrary
-precision floating point numbers.
61 Maxima can plot functions and data
in two and three
62 dimensions
, and it comes with hundreds of self tests.
63 Maxima is based on the original Macsyma developed
67 Summary: Maxima graphics program and graphical interface to Maxima
68 Group: Sciences
/Mathematics
69 Requires: maxima
= %{version}, tk
73 A graphical interface to the Maxima symbolic computation
74 program. It also provides a graphics program
75 that can be used from Maxima
, and a Web browser that
76 accepts a custom html tag to execute Maxima commands from
77 an html page. Xmaxima is written
in the Tcl
/Tk language.
81 Summary: Maxima compiled with clisp
82 Group: Sciences
/Mathematics
83 Requires: maxima
= %{version}
85 %description exec-clisp
86 Maxima compiled with clisp.
91 Summary: Maxima compiled with CMUCL
92 Group: Sciences
/Mathematics
93 Requires: maxima
= %{version}
95 %description exec-cmucl
96 Maxima compiled with CMUCL.
101 Summary: Maxima compiled with SBCL
102 Group: Sciences
/Mathematics
103 Requires: maxima
= %{version}
104 Provides: maxima
-exec
105 %description exec-sbcl
106 Maxima compiled with SBCL.
111 Summary: Maxima compiled with GCL
112 Group: Sciences
/Mathematics
113 Requires: maxima
= %{version}
114 Provides: maxima
-exec
115 %description exec-gcl
116 Maxima compiled with Gnu Common Lisp.
119 %if %{enable_lang_es}
121 Summary: Maxima Spanish language pack
122 Group: Sciences
/Mathematics
123 Requires: maxima
= %{version}
125 Maxima Spanish language support.
128 %if %{enable_lang_es_utf}
129 %package lang
-es
-utf8
130 Summary: Maxima Spanish UTF
-8 language pack
131 Group: Sciences
/Mathematics
132 Requires: maxima
= %{version}
133 %description lang
-es
-utf8
134 Maxima Spanish language support
(UTF
-8).
137 %if %{enable_lang_pt}
139 Summary: Maxima Portuguese language pack
140 Group: Sciences
/Mathematics
141 Requires: maxima
= %{version}
143 Maxima Portuguese language support.
146 %if %{enable_lang_pt_utf}
147 %package lang
-pt
-utf8
148 Summary: Maxima Portuguese UTF
-8 language pack
149 Group: Sciences
/Mathematics
150 Requires: maxima
= %{version}
151 %description lang
-pt
-utf8
152 Maxima Portuguese language support
(UTF
-8).
155 %if %{enable_lang_pt_br}
157 Summary: Maxima Brazilian Portuguese language pack
158 Group: Sciences
/Mathematics
159 Requires: maxima
= %{version}
160 %description lang
-pt_BR
161 Maxima Brazilian Portuguese language support.
164 %if %{enable_lang_pt_br_utf}
165 %package lang
-pt_BR
-utf8
166 Summary: Maxima Brazilian Portuguese UTF
-8 language pack
167 Group: Sciences
/Mathematics
168 Requires: maxima
= %{version}
169 %description lang
-pt_BR
-utf8
170 Maxima Brazilian Portuguese language support
(UTF
-8).
175 %configure %{?sbcl_flags:} %{?cmucl_flags:} %{?gcl_flags:} %{?clisp_flags:} \
176 %{?lang_es_flags:} %{?lang_es_flags_utf:} \
177 %{?lang_pt_flags:} %{?lang_pt_flags_utf:} \
178 %{?lang_pt_br_flags:} %{?lang_pt_br_flags_utf:}
184 rm -rf $RPM_BUILD_ROOT
187 prefix
=%{?buildroot:%{buildroot}}%{_prefix} \
188 exec_prefix
=%{?buildroot:%{buildroot}}%{_exec_prefix} \
189 bindir
=%{?buildroot:%{buildroot}}%{_bindir} \
190 sbindir
=%{?buildroot:%{buildroot}}%{_sbindir} \
191 sysconfdir
=%{?buildroot:%{buildroot}}%{_sysconfdir} \
192 datadir
=%{?buildroot:%{buildroot}}%{_datadir} \
193 includedir
=%{?buildroot:%{buildroot}}%{_includedir} \
194 libdir
=%{?buildroot:%{buildroot}}%{_libdir} \
195 libexecdir
=%{?buildroot:%{buildroot}}%{_libexecdir} \
196 localstatedir
=%{?buildroot:%{buildroot}}%{_localstatedir} \
197 sharedstatedir
=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
198 mandir
=%{?buildroot:%{buildroot}}%{_mandir} \
199 infodir
=%{?buildroot:%{buildroot}}%{_infodir} \
201 touch debugfiles.list
203 rm -f $RPM_BUILD_ROOT
%{_datadir}/info
/dir
206 /sbin
/install-info
%{_infodir}/maxima.info %{_infodir}/dir
209 if [ "$
1"
= 0 ]; then
210 /sbin
/install-info
--delete
%{_infodir}/maxima.info %{_infodir}/dir
214 /sbin
/install-info
%{_infodir}/xmaxima.info %{_infodir}/dir
217 if [ "$
1"
= 0 ]; then
218 /sbin
/install-info
--delete
%{_infodir}/xmaxima.info %{_infodir}/dir
222 rm -rf $RPM_BUILD_ROOT
225 %defattr(-,root
,root
,-)
226 %dir %{_datadir}/maxima
227 %exclude %{_datadir}/maxima/%{version}/xmaxima
228 %{_datadir}/maxima/%{version}
229 %if %{enable_lang_es}
230 %exclude %{_datadir}/maxima/%{version}/doc
/html
/es
232 %if %{enable_lang_pt}
233 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt
235 %if %{enable_lang_pt_br}
236 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt_BR
238 %if %{enable_lang_es_utf}
239 %exclude %{_datadir}/maxima/%{version}/doc
/html
/es.utf8
241 %if %{enable_lang_pt_utf}
242 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt.utf8
244 %if %{enable_lang_pt_br_utf}
245 %exclude %{_datadir}/maxima/%{version}/doc
/html
/pt_BR.utf8
247 %dir %{_libexecdir}/maxima
248 %{_libexecdir}/maxima/%{version}
250 %exclude %{_infodir}/xmaxima.info
*
251 %if %{enable_lang_es}
252 %exclude %{_infodir}/es
254 %if %{enable_lang_pt}
255 %exclude %{_infodir}/pt
257 %if %{enable_lang_pt_br}
258 %exclude %{_infodir}/pt_BR
260 %if %{enable_lang_es_utf}
261 %exclude %{_infodir}/es.utf8
263 %if %{enable_lang_pt_utf}
264 %exclude %{_infodir}/pt.utf8
266 %if %{enable_lang_pt_br_utf}
267 %exclude %{_infodir}/pt_BR.utf8
269 %{_mandir}/man1
/maxima
.1
272 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS
273 %doc README README.lisps README.rpms README.external README.i18n
277 %{_datadir}/maxima/%{version}/xmaxima
282 %{_libdir}/maxima/%{version}/binary
-clisp
287 %{_libdir}/maxima/%{version}/binary
-cmucl
292 /usr
/lib
/maxima
/%{version}/binary
-sbcl
297 %{_libdir}/maxima/%{version}/binary
-gcl
300 %if %{enable_lang_es}
302 %{_datadir}/maxima/%{version}/doc
/html
/es
306 %if %{enable_lang_es_utf}
308 %{_datadir}/maxima/%{version}/doc
/html
/es.utf8
312 %if %{enable_lang_pt}
314 %{_datadir}/maxima/%{version}/doc
/html
/pt
318 %if %{enable_lang_pt_utf}
320 %{_datadir}/maxima/%{version}/doc
/html
/pt.utf8
324 %if %{enable_lang_pt_br}
326 %{_datadir}/maxima/%{version}/doc
/html
/pt_BR
330 %if %{enable_lang_pt_br_utf}
331 %files lang
-pt_BR
-utf8
332 %{_datadir}/maxima/%{version}/doc
/html
/pt_BR.utf8
333 %{_infodir}/pt_BR.utf8
340 * Sat Jan
20 2007 Vadim Zhytnikov
<vvzhy@netorn.ru
>
341 - Brazilian Portuguese language packs.
343 * Mon Dec
11 2006 Jaime Villate
<villate@fe.up.pt
>
344 - Moved xmaxima files to the maxima
-xmaxima package.
345 - Updated description of Xmaxima.
347 * Wed Dec
28 2005 Vadim Zhytnikov
<vvzhy@netorn.ru
>
348 - Spanish and Portuguese language packs.
349 - Package maxima subdirectories
for clean uninstall.
351 * Sat Jan
4 2003 James Amundson
<amundson@fnal.gov
>
353 - Added explicit clisp version
354 - Added conditional to postun
355 - Renamed exec_
* packages to
exec-*
356 - Use rpm macros instead of hard
-coded paths
357 - Thanks to Rex Dieter
for helpful suggestions
359 * Sun Sep
8 2002 James Amundson
<amundson@fnal.gov
>