Dropping more non-ASCII characters from a comment in ifactor.lisp
[maxima.git] / maxima.spec.in
blob01fd2e65d0d68ec1f7cbdab02b18a280683ee227
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_ccl 0
8 %define ccl_flags --disable-ccl --with-ccl=lx86cl
9 %define enable_cmucl 0
10 %define cmucl_flags --disable-cmucl
11 %define enable_sbcl 0
12 %define sbcl_flags --disable-sbcl
13 %define enable_gcl 0
14 %define gcl_flags --disable-gcl
16 # Options to build language packs
17 # Spanish
18 %define enable_lang_es 1
19 %define lang_es_flags --enable-lang-es
20 # Spanish UTF-8
21 %define enable_lang_es_utf 1
22 %define lang_es_flags_utf --enable-lang-es-utf8
23 # Portuguese
24 %define enable_lang_pt 1
25 %define lang_pt_flags --enable-lang-pt
26 # Portuguese UTF-8
27 %define enable_lang_pt_utf 1
28 %define lang_pt_flags_utf --enable-lang-pt-utf8
29 # Brazilian Portuguese
30 %define enable_lang_pt_br 1
31 %define lang_pt_br_flags --enable-lang-pt_BR
32 # Brazilian Portuguese (UTF-8)
33 %define enable_lang_pt_br_utf 1
34 %define lang_pt_br_flags_utf --enable-lang-pt_BR-utf8
36 # Inhibit automatic compressing of info files. Compressed info
37 # files break maxima's internal help.
38 %define __spec_install_post /bin/true
40 Summary: Symbolic Computation Program
41 Name: maxima
42 Version: @VERSION@
43 Release: 1
44 License: GPL
45 Group: Sciences/Mathematics
46 URL: http://maxima.sourceforge.net
47 Source0: %{name}-%{version}.tar.gz
48 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
49 Requires: maxima-exec = %{version}
50 Provides: maxima-doc
52 %description
54 Maxima is a system for the manipulation of symbolic
55 and numerical expressions, including differentiation,
56 integration, Taylor series, Laplace transforms,
57 ordinary differential equations, systems of linear
58 equations, polynomials, sets, lists, vectors, matrices
59 and tensors.
60 Maxima yields high precision numeric results by using
61 exact fractions, arbitrary-precision integers and
62 arbitrary-precision floating point numbers.
63 Maxima can plot functions and data in two and three
64 dimensions, and it comes with hundreds of self tests.
65 Maxima is based on the original Macsyma developed
66 at MIT in the 1970's.
68 %package xmaxima
69 Summary: Maxima graphics program and graphical interface to Maxima
70 Group: Sciences/Mathematics
71 Requires: maxima = %{version}, tk
72 Provides: xmaxima
73 %description xmaxima
75 A graphical interface to the Maxima symbolic computation
76 program. It also provides a graphics program
77 that can be used from Maxima, and a Web browser that
78 accepts a custom html tag to execute Maxima commands from
79 an html page. Xmaxima is written in the Tcl/Tk language.
81 %if %{enable_clisp}
82 %package exec-clisp
83 Summary: Maxima compiled with clisp
84 Group: Sciences/Mathematics
85 Requires: maxima = %{version}
86 Provides: maxima-exec
87 %description exec-clisp
88 Maxima compiled with clisp.
89 %endif
91 %if %{enable_ccl}
92 %package exec-ccl
93 Summary: Maxima compiled with Clozure CL
94 Group: Sciences/Mathematics
95 Requires: maxima = %{version}
96 Provides: maxima-exec
97 %description exec-ccl
98 Maxima compiled with Clozure Common Lisp.
99 %endif
101 %if %{enable_cmucl}
102 %package exec-cmucl
103 Summary: Maxima compiled with CMUCL
104 Group: Sciences/Mathematics
105 Requires: maxima = %{version}
106 Provides: maxima-exec
107 %description exec-cmucl
108 Maxima compiled with CMUCL.
109 %endif
111 %if %{enable_sbcl}
112 %package exec-sbcl
113 Summary: Maxima compiled with SBCL
114 Group: Sciences/Mathematics
115 Requires: maxima = %{version}
116 Provides: maxima-exec
117 %description exec-sbcl
118 Maxima compiled with SBCL.
119 %endif
121 %if %{enable_gcl}
122 %package exec-gcl
123 Summary: Maxima compiled with GCL
124 Group: Sciences/Mathematics
125 Requires: maxima = %{version}
126 Provides: maxima-exec
127 %description exec-gcl
128 Maxima compiled with Gnu Common Lisp.
129 %endif
131 %if %{enable_lang_es}
132 %package lang-es
133 Summary: Maxima Spanish language pack
134 Group: Sciences/Mathematics
135 Requires: maxima = %{version}
136 %description lang-es
137 Maxima Spanish language support.
138 %endif
140 %if %{enable_lang_es_utf}
141 %package lang-es-utf8
142 Summary: Maxima Spanish UTF-8 language pack
143 Group: Sciences/Mathematics
144 Requires: maxima = %{version}
145 %description lang-es-utf8
146 Maxima Spanish language support (UTF-8).
147 %endif
149 %if %{enable_lang_pt}
150 %package lang-pt
151 Summary: Maxima Portuguese language pack
152 Group: Sciences/Mathematics
153 Requires: maxima = %{version}
154 %description lang-pt
155 Maxima Portuguese language support.
156 %endif
158 %if %{enable_lang_pt_utf}
159 %package lang-pt-utf8
160 Summary: Maxima Portuguese UTF-8 language pack
161 Group: Sciences/Mathematics
162 Requires: maxima = %{version}
163 %description lang-pt-utf8
164 Maxima Portuguese language support (UTF-8).
165 %endif
167 %if %{enable_lang_pt_br}
168 %package lang-pt_BR
169 Summary: Maxima Brazilian Portuguese language pack
170 Group: Sciences/Mathematics
171 Requires: maxima = %{version}
172 %description lang-pt_BR
173 Maxima Brazilian Portuguese language support.
174 %endif
176 %if %{enable_lang_pt_br_utf}
177 %package lang-pt_BR-utf8
178 Summary: Maxima Brazilian Portuguese UTF-8 language pack
179 Group: Sciences/Mathematics
180 Requires: maxima = %{version}
181 %description lang-pt_BR-utf8
182 Maxima Brazilian Portuguese language support (UTF-8).
183 %endif
185 %prep
186 %setup -q
187 %configure %{?sbcl_flags:} %{?cmucl_flags:} %{?gcl_flags:} %{?clisp_flags:} %{?ccl_flags:} \
188 %{?lang_es_flags:} %{?lang_es_flags_utf:} \
189 %{?lang_pt_flags:} %{?lang_pt_flags_utf:} \
190 %{?lang_pt_br_flags:} %{?lang_pt_br_flags_utf:}
192 %build
193 make
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 %makeinstall
198 make \
199 prefix=%{?buildroot:%{buildroot}}%{_prefix} \
200 exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \
201 bindir=%{?buildroot:%{buildroot}}%{_bindir} \
202 sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \
203 sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \
204 datadir=%{?buildroot:%{buildroot}}%{_datadir} \
205 includedir=%{?buildroot:%{buildroot}}%{_includedir} \
206 libdir=%{?buildroot:%{buildroot}}%{_libdir} \
207 libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \
208 localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \
209 sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
210 mandir=%{?buildroot:%{buildroot}}%{_mandir} \
211 infodir=%{?buildroot:%{buildroot}}%{_infodir} \
212 install-info
213 touch debugfiles.list
214 # Deal with info/dir
215 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
217 %post
218 /sbin/install-info %{_infodir}/maxima.info %{_infodir}/dir
220 %postun
221 if [ "$1" = 0 ]; then
222 /sbin/install-info --delete %{_infodir}/maxima.info %{_infodir}/dir
225 %post xmaxima
226 /sbin/install-info %{_infodir}/xmaxima.info %{_infodir}/dir
228 %postun xmaxima
229 if [ "$1" = 0 ]; then
230 /sbin/install-info --delete %{_infodir}/xmaxima.info %{_infodir}/dir
233 %clean
234 rm -rf $RPM_BUILD_ROOT
236 %files
237 %defattr(-,root,root,-)
238 %dir %{_datadir}/maxima
239 %exclude %{_datadir}/maxima/%{version}/xmaxima
240 %{_datadir}/maxima/%{version}
241 %if %{enable_lang_es}
242 %exclude %{_datadir}/maxima/%{version}/doc/html/es
243 %endif
244 %if %{enable_lang_pt}
245 %exclude %{_datadir}/maxima/%{version}/doc/html/pt
246 %endif
247 %if %{enable_lang_pt_br}
248 %exclude %{_datadir}/maxima/%{version}/doc/html/pt_BR
249 %endif
250 %if %{enable_lang_es_utf}
251 %exclude %{_datadir}/maxima/%{version}/doc/html/es.utf8
252 %endif
253 %if %{enable_lang_pt_utf}
254 %exclude %{_datadir}/maxima/%{version}/doc/html/pt.utf8
255 %endif
256 %if %{enable_lang_pt_br_utf}
257 %exclude %{_datadir}/maxima/%{version}/doc/html/pt_BR.utf8
258 %endif
259 %dir %{_libexecdir}/maxima
260 %{_libexecdir}/maxima/%{version}
261 %{_infodir}/*
262 %exclude %{_infodir}/xmaxima.info*
263 %if %{enable_lang_es}
264 %exclude %{_infodir}/es
265 %endif
266 %if %{enable_lang_pt}
267 %exclude %{_infodir}/pt
268 %endif
269 %if %{enable_lang_pt_br}
270 %exclude %{_infodir}/pt_BR
271 %endif
272 %if %{enable_lang_es_utf}
273 %exclude %{_infodir}/es.utf8
274 %endif
275 %if %{enable_lang_pt_utf}
276 %exclude %{_infodir}/pt.utf8
277 %endif
278 %if %{enable_lang_pt_br_utf}
279 %exclude %{_infodir}/pt_BR.utf8
280 %endif
281 %{_mandir}/man1/maxima.1
282 %{_bindir}/maxima
283 %{_bindir}/rmaxima
284 %doc AUTHORS COPYING INSTALL INSTALL.lisp NEWS
285 %doc README README.lisps README.rpms README.external README.i18n
287 %files xmaxima
288 %{_bindir}/xmaxima
289 %{_datadir}/maxima/%{version}/xmaxima
290 %{_infodir}/xmaxima*
292 %if %{enable_clisp}
293 %files exec-clisp
294 %{_libdir}/maxima/%{version}/binary-clisp
295 %endif
297 %if %{enable_ccl}
298 %files exec-ccl
299 %{_libdir}/maxima/%{version}/binary-openmcl
300 %endif
302 %if %{enable_cmucl}
303 %files exec-cmucl
304 %{_libdir}/maxima/%{version}/binary-cmucl
305 %endif
307 %if %{enable_sbcl}
308 %files exec-sbcl
309 /usr/lib/maxima/%{version}/binary-sbcl
310 %endif
312 %if %{enable_gcl}
313 %files exec-gcl
314 %{_libdir}/maxima/%{version}/binary-gcl
315 %endif
317 %if %{enable_lang_es}
318 %files lang-es
319 %{_datadir}/maxima/%{version}/doc/html/es
320 %{_infodir}/es
321 %endif
323 %if %{enable_lang_es_utf}
324 %files lang-es-utf8
325 %{_datadir}/maxima/%{version}/doc/html/es.utf8
326 %{_infodir}/es.utf8
327 %endif
329 %if %{enable_lang_pt}
330 %files lang-pt
331 %{_datadir}/maxima/%{version}/doc/html/pt
332 %{_infodir}/pt
333 %endif
335 %if %{enable_lang_pt_utf}
336 %files lang-pt-utf8
337 %{_datadir}/maxima/%{version}/doc/html/pt.utf8
338 %{_infodir}/pt.utf8
339 %endif
341 %if %{enable_lang_pt_br}
342 %files lang-pt_BR
343 %{_datadir}/maxima/%{version}/doc/html/pt_BR
344 %{_infodir}/pt_BR
345 %endif
347 %if %{enable_lang_pt_br_utf}
348 %files lang-pt_BR-utf8
349 %{_datadir}/maxima/%{version}/doc/html/pt_BR.utf8
350 %{_infodir}/pt_BR.utf8
351 %endif
353 %doc
356 %changelog
357 * Sat Jan 20 2007 Vadim Zhytnikov <vvzhy@netorn.ru>
358 - Brazilian Portuguese language packs.
360 * Mon Dec 11 2006 Jaime Villate <villate@fe.up.pt>
361 - Moved xmaxima files to the maxima-xmaxima package.
362 - Updated description of Xmaxima.
364 * Wed Dec 28 2005 Vadim Zhytnikov <vvzhy@netorn.ru>
365 - Spanish and Portuguese language packs.
366 - Package maxima subdirectories for clean uninstall.
368 * Sat Jan 4 2003 James Amundson <amundson@fnal.gov>
369 - Added doc files
370 - Added explicit clisp version
371 - Added conditional to postun
372 - Renamed exec_* packages to exec-*
373 - Use rpm macros instead of hard-coded paths
374 - Thanks to Rex Dieter for helpful suggestions
376 * Sun Sep 8 2002 James Amundson <amundson@fnal.gov>
377 - Initial build.