Ensuring that riemann() displays nonzero tensor components when frame base is used.
[maxima.git] / maxima.spec.in
blobf93e8293132d01cf81ee603ca8c17294735fbd72
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
7 %define enable_cmucl 0
8 %define cmucl_flags --disable-cmucl
9 %define enable_sbcl 0
10 %define sbcl_flags --disable-sbcl
11 %define enable_gcl 0
12 %define gcl_flags --disable-gcl
14 # Options to build language packs
15 # Spanish
16 %define enable_lang_es 1
17 %define lang_es_flags --enable-lang-es
18 # Spanish UTF-8
19 %define enable_lang_es_utf 1
20 %define lang_es_flags_utf --enable-lang-es-utf8
21 # Portuguese
22 %define enable_lang_pt 1
23 %define lang_pt_flags --enable-lang-pt
24 # Portuguese UTF-8
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
39 Name: maxima
40 Version: @VERSION@
41 Release: 1
42 License: GPL
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}
48 Provides: maxima-doc
50 %description
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
57 and tensors.
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
64 at MIT in the 1970's.
66 %package xmaxima
67 Summary: Maxima graphics program and graphical interface to Maxima
68 Group: Sciences/Mathematics
69 Requires: maxima = %{version}, tk
70 Provides: xmaxima
71 %description xmaxima
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.
79 %if %{enable_clisp}
80 %package exec-clisp
81 Summary: Maxima compiled with clisp
82 Group: Sciences/Mathematics
83 Requires: maxima = %{version}
84 Provides: maxima-exec
85 %description exec-clisp
86 Maxima compiled with clisp.
87 %endif
89 %if %{enable_cmucl}
90 %package exec-cmucl
91 Summary: Maxima compiled with CMUCL
92 Group: Sciences/Mathematics
93 Requires: maxima = %{version}
94 Provides: maxima-exec
95 %description exec-cmucl
96 Maxima compiled with CMUCL.
97 %endif
99 %if %{enable_sbcl}
100 %package exec-sbcl
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.
107 %endif
109 %if %{enable_gcl}
110 %package exec-gcl
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.
117 %endif
119 %if %{enable_lang_es}
120 %package lang-es
121 Summary: Maxima Spanish language pack
122 Group: Sciences/Mathematics
123 Requires: maxima = %{version}
124 %description lang-es
125 Maxima Spanish language support.
126 %endif
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).
135 %endif
137 %if %{enable_lang_pt}
138 %package lang-pt
139 Summary: Maxima Portuguese language pack
140 Group: Sciences/Mathematics
141 Requires: maxima = %{version}
142 %description lang-pt
143 Maxima Portuguese language support.
144 %endif
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).
153 %endif
155 %if %{enable_lang_pt_br}
156 %package 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.
162 %endif
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).
171 %endif
173 %prep
174 %setup -q
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:}
180 %build
181 make
183 %install
184 rm -rf $RPM_BUILD_ROOT
185 %makeinstall
186 make \
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} \
200 install-info
201 touch debugfiles.list
202 # Deal with info/dir
203 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
205 %post
206 /sbin/install-info %{_infodir}/maxima.info %{_infodir}/dir
208 %postun
209 if [ "$1" = 0 ]; then
210 /sbin/install-info --delete %{_infodir}/maxima.info %{_infodir}/dir
213 %post xmaxima
214 /sbin/install-info %{_infodir}/xmaxima.info %{_infodir}/dir
216 %postun xmaxima
217 if [ "$1" = 0 ]; then
218 /sbin/install-info --delete %{_infodir}/xmaxima.info %{_infodir}/dir
221 %clean
222 rm -rf $RPM_BUILD_ROOT
224 %files
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
231 %endif
232 %if %{enable_lang_pt}
233 %exclude %{_datadir}/maxima/%{version}/doc/html/pt
234 %endif
235 %if %{enable_lang_pt_br}
236 %exclude %{_datadir}/maxima/%{version}/doc/html/pt_BR
237 %endif
238 %if %{enable_lang_es_utf}
239 %exclude %{_datadir}/maxima/%{version}/doc/html/es.utf8
240 %endif
241 %if %{enable_lang_pt_utf}
242 %exclude %{_datadir}/maxima/%{version}/doc/html/pt.utf8
243 %endif
244 %if %{enable_lang_pt_br_utf}
245 %exclude %{_datadir}/maxima/%{version}/doc/html/pt_BR.utf8
246 %endif
247 %dir %{_libexecdir}/maxima
248 %{_libexecdir}/maxima/%{version}
249 %{_infodir}/*
250 %exclude %{_infodir}/xmaxima.info*
251 %if %{enable_lang_es}
252 %exclude %{_infodir}/es
253 %endif
254 %if %{enable_lang_pt}
255 %exclude %{_infodir}/pt
256 %endif
257 %if %{enable_lang_pt_br}
258 %exclude %{_infodir}/pt_BR
259 %endif
260 %if %{enable_lang_es_utf}
261 %exclude %{_infodir}/es.utf8
262 %endif
263 %if %{enable_lang_pt_utf}
264 %exclude %{_infodir}/pt.utf8
265 %endif
266 %if %{enable_lang_pt_br_utf}
267 %exclude %{_infodir}/pt_BR.utf8
268 %endif
269 %{_mandir}/man1/maxima.1
270 %{_bindir}/maxima
271 %{_bindir}/rmaxima
272 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS
273 %doc README README.lisps README.rpms README.external README.i18n
275 %files xmaxima
276 %{_bindir}/xmaxima
277 %{_datadir}/maxima/%{version}/xmaxima
278 %{_infodir}/xmaxima*
280 %if %{enable_clisp}
281 %files exec-clisp
282 %{_libdir}/maxima/%{version}/binary-clisp
283 %endif
285 %if %{enable_cmucl}
286 %files exec-cmucl
287 %{_libdir}/maxima/%{version}/binary-cmucl
288 %endif
290 %if %{enable_sbcl}
291 %files exec-sbcl
292 /usr/lib/maxima/%{version}/binary-sbcl
293 %endif
295 %if %{enable_gcl}
296 %files exec-gcl
297 %{_libdir}/maxima/%{version}/binary-gcl
298 %endif
300 %if %{enable_lang_es}
301 %files lang-es
302 %{_datadir}/maxima/%{version}/doc/html/es
303 %{_infodir}/es
304 %endif
306 %if %{enable_lang_es_utf}
307 %files lang-es-utf8
308 %{_datadir}/maxima/%{version}/doc/html/es.utf8
309 %{_infodir}/es.utf8
310 %endif
312 %if %{enable_lang_pt}
313 %files lang-pt
314 %{_datadir}/maxima/%{version}/doc/html/pt
315 %{_infodir}/pt
316 %endif
318 %if %{enable_lang_pt_utf}
319 %files lang-pt-utf8
320 %{_datadir}/maxima/%{version}/doc/html/pt.utf8
321 %{_infodir}/pt.utf8
322 %endif
324 %if %{enable_lang_pt_br}
325 %files lang-pt_BR
326 %{_datadir}/maxima/%{version}/doc/html/pt_BR
327 %{_infodir}/pt_BR
328 %endif
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
334 %endif
336 %doc
339 %changelog
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>
352 - Added doc files
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>
360 - Initial build.