Fix an internal error in MSIZE-ARRAY (used in grind / 1D printing)
[maxima.git] / maxima.spec.in
blob7c0bebf499dba73c06e79de388697c74b962eba0
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.
5 %define enable_clisp 1
6 %define clisp_flags --enable-clisp-exec
7 %define enable_ccl 0
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
12 %define enable_sbcl 0
13 %define sbcl_flags --disable-sbcl-exec
14 %define enable_gcl 0
15 %define gcl_flags --disable-gcl
17 # Options to build language packs
18 # Spanish
19 %define enable_lang_es 1
20 %define lang_es_flags --enable-lang-es
21 # Spanish UTF-8
22 %define enable_lang_es_utf 1
23 %define lang_es_flags_utf --enable-lang-es-utf8
24 # Portuguese
25 %define enable_lang_pt 1
26 %define lang_pt_flags --enable-lang-pt
27 # Portuguese UTF-8
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
42 Name: maxima
43 Version: @VERSION@
44 Release: 1
45 License: GPL
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}
51 Provides: maxima-doc
53 %description
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
60 and tensors.
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
67 at MIT in the 1970's.
69 %package xmaxima
70 Summary: Maxima graphics program and graphical interface to Maxima
71 Group: Sciences/Mathematics
72 Requires: maxima = %{version}, tk
73 Provides: xmaxima
74 %description xmaxima
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.
82 %if %{enable_clisp}
83 %package exec-clisp
84 Summary: Maxima compiled with clisp
85 Group: Sciences/Mathematics
86 Requires: maxima = %{version}
87 Provides: maxima-exec
88 %description exec-clisp
89 Maxima compiled with clisp.
90 %endif
92 %if %{enable_ccl}
93 %package exec-ccl
94 Summary: Maxima compiled with Clozure CL
95 Group: Sciences/Mathematics
96 Requires: maxima = %{version}
97 Provides: maxima-exec
98 %description exec-ccl
99 Maxima compiled with Clozure Common Lisp.
100 %endif
102 %if %{enable_cmucl}
103 %package exec-cmucl
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.
110 %endif
112 %if %{enable_sbcl}
113 %package exec-sbcl
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.
120 %endif
122 %if %{enable_gcl}
123 %package exec-gcl
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.
130 %endif
132 %if %{enable_lang_es}
133 %package lang-es
134 Summary: Maxima Spanish language pack
135 Group: Sciences/Mathematics
136 Requires: maxima = %{version}
137 %description lang-es
138 Maxima Spanish language support.
139 %endif
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).
148 %endif
150 %if %{enable_lang_pt}
151 %package lang-pt
152 Summary: Maxima Portuguese language pack
153 Group: Sciences/Mathematics
154 Requires: maxima = %{version}
155 %description lang-pt
156 Maxima Portuguese language support.
157 %endif
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).
166 %endif
168 %if %{enable_lang_pt_br}
169 %package 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.
175 %endif
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).
184 %endif
186 %prep
187 %setup -q
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:}
193 %build
194 make
196 %install
197 rm -rf $RPM_BUILD_ROOT
198 %makeinstall
199 make \
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} \
213 install-info
214 touch debugfiles.list
215 # Deal with info/dir
216 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
218 %post
219 /sbin/install-info %{_infodir}/maxima.info %{_infodir}/dir
221 %postun
222 if [ "$1" = 0 ]; then
223 /sbin/install-info --delete %{_infodir}/maxima.info %{_infodir}/dir
226 %post xmaxima
227 /sbin/install-info %{_infodir}/xmaxima.info %{_infodir}/dir
229 %postun xmaxima
230 if [ "$1" = 0 ]; then
231 /sbin/install-info --delete %{_infodir}/xmaxima.info %{_infodir}/dir
234 %clean
235 rm -rf $RPM_BUILD_ROOT
237 %files
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
244 %endif
245 %if %{enable_lang_pt}
246 %exclude %{_datadir}/maxima/%{version}/doc/html/pt
247 %endif
248 %if %{enable_lang_pt_br}
249 %exclude %{_datadir}/maxima/%{version}/doc/html/pt_BR
250 %endif
251 %if %{enable_lang_es_utf}
252 %exclude %{_datadir}/maxima/%{version}/doc/html/es.utf8
253 %endif
254 %if %{enable_lang_pt_utf}
255 %exclude %{_datadir}/maxima/%{version}/doc/html/pt.utf8
256 %endif
257 %if %{enable_lang_pt_br_utf}
258 %exclude %{_datadir}/maxima/%{version}/doc/html/pt_BR.utf8
259 %endif
260 %{_datadir}/applications
261 %{_datadir}/bash-completion
262 %{_datadir}/pixmaps
263 %{_datadir}/mime
264 %dir %{_libexecdir}/maxima
265 %{_libexecdir}/maxima/%{version}
266 %{_infodir}/*
267 %exclude %{_infodir}/xmaxima.info*
268 %if %{enable_lang_es}
269 %exclude %{_infodir}/es
270 %endif
271 %if %{enable_lang_pt}
272 %exclude %{_infodir}/pt
273 %endif
274 %if %{enable_lang_pt_br}
275 %exclude %{_infodir}/pt_BR
276 %endif
277 %if %{enable_lang_es_utf}
278 %exclude %{_infodir}/es.utf8
279 %endif
280 %if %{enable_lang_pt_utf}
281 %exclude %{_infodir}/pt.utf8
282 %endif
283 %if %{enable_lang_pt_br_utf}
284 %exclude %{_infodir}/pt_BR.utf8
285 %endif
286 %{_mandir}/man1/maxima.1
287 %{_bindir}/maxima
288 %{_bindir}/rmaxima
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
293 %files xmaxima
294 %{_bindir}/xmaxima
295 %{_datadir}/maxima/%{version}/xmaxima
296 %{_infodir}/xmaxima*
298 %if %{enable_clisp}
299 %files exec-clisp
300 %{_libdir}/maxima/%{version}/binary-clisp
301 %endif
303 %if %{enable_ccl}
304 %files exec-ccl
305 %{_libdir}/maxima/%{version}/binary-openmcl
306 %endif
308 %if %{enable_cmucl}
309 %files exec-cmucl
310 %{_libdir}/maxima/%{version}/binary-cmucl
311 %endif
313 %if %{enable_sbcl}
314 %files exec-sbcl
315 %{_libdir}/maxima/%{version}/binary-sbcl
316 %endif
318 %if %{enable_gcl}
319 %files exec-gcl
320 %{_libdir}/maxima/%{version}/binary-gcl
321 %endif
323 %if %{enable_lang_es}
324 %files lang-es
325 %{_datadir}/maxima/%{version}/doc/html/es
326 %{_infodir}/es
327 %endif
329 %if %{enable_lang_es_utf}
330 %files lang-es-utf8
331 %{_datadir}/maxima/%{version}/doc/html/es.utf8
332 %{_infodir}/es.utf8
333 %endif
335 %if %{enable_lang_pt}
336 %files lang-pt
337 %{_datadir}/maxima/%{version}/doc/html/pt
338 %{_infodir}/pt
339 %endif
341 %if %{enable_lang_pt_utf}
342 %files lang-pt-utf8
343 %{_datadir}/maxima/%{version}/doc/html/pt.utf8
344 %{_infodir}/pt.utf8
345 %endif
347 %if %{enable_lang_pt_br}
348 %files lang-pt_BR
349 %{_datadir}/maxima/%{version}/doc/html/pt_BR
350 %{_infodir}/pt_BR
351 %endif
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
357 %endif
359 %doc
362 %changelog
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>
375 - Added doc files
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>
383 - Initial build.