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_pt
1
23 %define lang_pt_flags
--enable-lang
-pt
24 # Brazilian Portuguese
25 %define enable_lang_pt_br
1
26 %define lang_pt_br_flags
--enable-lang
-pt_BR
28 # Inhibit automatic compressing of info files. Compressed info
29 # files break maxima's internal help.
30 %define __spec_install_post
/bin
/true
32 Summary: Symbolic Computation Program
37 Group: Sciences
/Mathematics
38 URL: https
://maxima.sourceforge.io
39 Source0: %{name}-%{version}.tar.gz
40 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
41 Requires: maxima
-exec = %{version}
46 Maxima is a system
for the manipulation of symbolic
47 and numerical expressions
, including differentiation
,
48 integration
, Taylor series
, Laplace transforms
,
49 ordinary differential equations
, systems of linear
50 equations
, polynomials
, sets
, lists
, vectors
, matrices
52 Maxima yields high precision numeric results by using
53 exact fractions
, arbitrary
-precision integers and
54 arbitrary
-precision floating point numbers.
55 Maxima can plot functions and data
in two and three
56 dimensions
, and it comes with hundreds of self tests.
57 Maxima is based on the original Macsyma developed
61 Summary: Maxima graphics program and graphical interface to Maxima
62 Group: Sciences
/Mathematics
63 Requires: maxima
= %{version}, tk
67 A graphical interface to the Maxima symbolic computation
68 program. It also provides a graphics program
69 that can be used from Maxima
, and a Web browser that
70 accepts a custom html tag to execute Maxima commands from
71 an html page. Xmaxima is written
in the Tcl
/Tk language.
74 Summary: Emacs modes
for Maxima
75 Group: Sciences
/Mathematics
76 Requires: maxima
= %{version}, emacs
77 Provides: maxima
-emacs
80 emaxima and imaxima
, two emacs packages that allow to run
81 maxima interactively from an emacs buffer.
85 Summary: Maxima compiled with clisp
86 Group: Sciences
/Mathematics
87 Requires: maxima
= %{version}
89 %description exec-clisp
90 Maxima compiled with clisp.
95 Summary: Maxima compiled with Clozure CL
96 Group: Sciences
/Mathematics
97 Requires: maxima
= %{version}
100 Maxima compiled with Clozure Common Lisp.
105 Summary: Maxima compiled with CMUCL
106 Group: Sciences
/Mathematics
107 Requires: maxima
= %{version}
108 Provides: maxima
-exec
109 %description exec-cmucl
110 Maxima compiled with CMUCL.
115 Summary: Maxima compiled with SBCL
116 Group: Sciences
/Mathematics
117 Requires: maxima
= %{version}
118 Provides: maxima
-exec
119 %description exec-sbcl
120 Maxima compiled with SBCL.
125 Summary: Maxima compiled with GCL
126 Group: Sciences
/Mathematics
127 Requires: maxima
= %{version}
128 Provides: maxima
-exec
129 %description exec-gcl
130 Maxima compiled with Gnu Common Lisp.
133 %if %{enable_lang_es}
135 Summary: Maxima Spanish language pack
136 Group: Sciences
/Mathematics
137 Requires: maxima
= %{version}
139 Maxima Spanish language support.
142 %if %{enable_lang_pt}
144 Summary: Maxima Portuguese language pack
145 Group: Sciences
/Mathematics
146 Requires: maxima
= %{version}
148 Maxima Portuguese language support.
151 %if %{enable_lang_pt_br}
153 Summary: Maxima Brazilian Portuguese language pack
154 Group: Sciences
/Mathematics
155 Requires: maxima
= %{version}
156 %description lang
-pt_BR
157 Maxima Brazilian Portuguese language support.
162 %configure %{?sbcl_flags:} %{?cmucl_flags:} %{?gcl_flags:} %{?clisp_flags:} %{?ccl_flags:} \
165 %{?lang_pt_br_flags:}
171 rm -rf $RPM_BUILD_ROOT
174 prefix
=%{?buildroot:%{buildroot}}%{_prefix} \
175 exec_prefix
=%{?buildroot:%{buildroot}}%{_exec_prefix} \
176 bindir
=%{?buildroot:%{buildroot}}%{_bindir} \
177 sbindir
=%{?buildroot:%{buildroot}}%{_sbindir} \
178 sysconfdir
=%{?buildroot:%{buildroot}}%{_sysconfdir} \
179 datadir
=%{?buildroot:%{buildroot}}%{_datadir} \
180 includedir
=%{?buildroot:%{buildroot}}%{_includedir} \
181 libdir
=%{?buildroot:%{buildroot}}%{_libdir} \
182 libexecdir
=%{?buildroot:%{buildroot}}%{_libexecdir} \
183 localstatedir
=%{?buildroot:%{buildroot}}%{_localstatedir} \
184 sharedstatedir
=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
185 mandir
=%{?buildroot:%{buildroot}}%{_mandir} \
186 infodir
=%{?buildroot:%{buildroot}}%{_infodir} \
188 touch debugfiles.list
190 rm -f $RPM_BUILD_ROOT
%{_datadir}/info
/dir
193 /sbin
/install-info
%{_infodir}/maxima.info %{_infodir}/dir
196 if [ "$
1"
= 0 ]; then
197 /sbin
/install-info
--delete
%{_infodir}/maxima.info %{_infodir}/dir
201 /sbin
/install-info
%{_infodir}/xmaxima.info %{_infodir}/dir
204 if [ "$
1"
= 0 ]; then
205 /sbin
/install-info
--delete
%{_infodir}/xmaxima.info %{_infodir}/dir
209 rm -rf $RPM_BUILD_ROOT
212 %defattr(-,root
,root
,-)
213 %dir %{_datadir}/maxima
214 %exclude %{_datadir}/maxima
/*/xmaxima
216 %if %{enable_lang_es}
217 %exclude %{_datadir}/maxima
/*/doc
/html
/es
219 %if %{enable_lang_pt}
220 %exclude %{_datadir}/maxima
/*/doc
/html
/pt
222 %if %{enable_lang_pt_br}
223 %exclude %{_datadir}/maxima
/*/doc
/html
/pt_BR
225 %{_datadir}/applications
226 %{_datadir}/bash
-completion
229 %{_datadir}/metainfo
/
230 %dir %{_libexecdir}/maxima
231 %{_libexecdir}/maxima
/*
233 %exclude %{_infodir}/xmaxima.info
*
234 %if %{enable_lang_es}
235 %exclude %{_infodir}/es
237 %if %{enable_lang_pt}
238 %exclude %{_infodir}/pt
240 %if %{enable_lang_pt_br}
241 %exclude %{_infodir}/pt_BR
243 %{_mandir}/man1
/maxima
.1
246 %exclude %{_datadir}/mime
/packages
/x
-mac.xml
247 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS desktopintegration
/x
-mac.xml
248 %doc README README
-lisps.md README.rpms README.external README.i18n
252 %{_datadir}/maxima
/*/xmaxima
256 %{_datadir}/emacs
/*/*
260 %{_libdir}/maxima
/*/binary
-clisp
265 %{_libdir}/maxima
/*/binary
-openmcl
270 %{_libdir}/maxima
/*/binary
-cmucl
275 %{_libdir}/maxima
/*/binary
-sbcl
280 %{_libdir}/maxima
/*/binary
-gcl
283 %if %{enable_lang_es}
285 %{_datadir}/maxima
/*/doc
/html
/es
289 %if %{enable_lang_pt}
291 %{_datadir}/maxima
/*/doc
/html
/pt
295 %if %{enable_lang_pt_br}
297 %{_datadir}/maxima
/*/doc
/html
/pt_BR
305 * Sat Jan
20 2007 Vadim Zhytnikov
<vvzhy@netorn.ru
>
306 - Brazilian Portuguese language packs.
308 * Mon Dec
11 2006 Jaime Villate
<villate@fe.up.pt
>
309 - Moved xmaxima files to the maxima
-xmaxima package.
310 - Updated description of Xmaxima.
312 * Wed Dec
28 2005 Vadim Zhytnikov
<vvzhy@netorn.ru
>
313 - Spanish and Portuguese language packs.
314 - Package maxima subdirectories
for clean uninstall.
316 * Sat Jan
4 2003 James Amundson
<amundson@fnal.gov
>
318 - Added explicit clisp version
319 - Added conditional to postun
320 - Renamed exec_
* packages to
exec-*
321 - Use rpm macros instead of hard
-coded paths
322 - Thanks to Rex Dieter
for helpful suggestions
324 * Sun Sep
8 2002 James Amundson
<amundson@fnal.gov
>