]>
Commit | Line | Data |
---|---|---|
2741c093 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without emacs # Emacs mode | |
4 | ||
a486c981 | 5 | Summary: Maxima Symbolic Computation Program |
8753da3b | 6 | Summary(pl.UTF-8): Program do obliczeń symbolicznych Maxima |
a486c981 | 7 | Name: maxima |
133d8cf7 JR |
8 | Version: 5.43.2 |
9 | Release: 1 | |
d907bd06 | 10 | Epoch: 1 |
a486c981 | 11 | License: GPL |
12 | Group: Applications/Math | |
2741c093 | 13 | Source0: http://downloads.sourceforge.net/maxima/%{name}-%{version}.tar.gz |
133d8cf7 | 14 | # Source0-md5: ff334e89324dc4b1cd2aa89e1faaf436 |
29fde64e | 15 | Source2: %{name}-mode-init.el |
7189a287 | 16 | Patch0: %{name}-info.patch |
a51927e1 | 17 | Patch1: %{name}-missed-files.patch |
88f300a0 KK |
18 | Patch3: x%{name}-doc.patch |
19 | Patch4: %{name}-install.patch | |
da1eff4f | 20 | Patch5: %{name}-info-compressed.patch |
133d8cf7 | 21 | Patch6: utf8.patch |
3a9b294c | 22 | URL: http://maxima.sourceforge.net/ |
2741c093 | 23 | BuildRequires: autoconf >= 2.50 |
a486c981 | 24 | BuildRequires: automake |
25 | BuildRequires: clisp | |
2741c093 JB |
26 | %{?with_emacs:BuildRequires: emacs} |
27 | BuildRequires: gettext-tools | |
28 | BuildRequires: perl-base >= 5 | |
29 | BuildRequires: python >= 2 | |
30 | BuildRequires: rpmbuild(macros) >= 1.311 | |
7189a287 | 31 | BuildRequires: texinfo |
8918acd0 | 32 | %requires_eq clisp |
da1eff4f | 33 | Requires: gzip |
dca43053 | 34 | Suggests: gnuplot |
a486c981 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Maxima is a full symbolic computation program. It is full featured | |
39 | doing symbolic manipulation of polynomials, matrices, rational | |
40 | functions, integration, Todd-coxeter, graphing, bigfloats. It has a | |
41 | symbolic debugger source level debugger for maxima code. Maxima is | |
42 | based on the original Macsyma developed at MIT in the 1970's. It is | |
43 | quite reliable, and has good garbage collection, and no memory leaks. | |
44 | It comes with hundreds of self tests. William Schelter at University | |
45 | of Texas, has been responsible for development since the mid 1980's. | |
46 | See http://www.ma.utexas.edu/maxima.html for more information. He has | |
47 | recently been able to get DOE to allow him to distribute Maxima under | |
48 | the GPL. | |
49 | ||
abdbe5c9 JR |
50 | %description -l pl.UTF-8 |
51 | Maxima jest pakietem do pełnych obliczeń matematycznych. Ma duże | |
52 | możliwości symbolicznych obliczeń na wielomianach, macierzach, | |
53 | funkcjach wymiernych, całkowania, stosowania metody Todda-Coxetera, | |
54 | rysowania, obliczeń na wielkich liczbach. Posiada symboliczny debugger | |
55 | kodu źródłowego w maximie. Maxima bazuje na oryginalnej Macsyma | |
56 | utworzonej w MIT w roku 1970. Ma dobrą obsługę błędów, nie ma wycieków | |
57 | pamięci. Przychodzi z setkami testów. Od połowy lat 80-tych za rozwój | |
58 | projektu odpowiada William Schelter z University of Texas. Więcej | |
3a9b294c | 59 | informacji na stronie http://www.ma.utexas.edu/maxima.html. Ostatnio |
abdbe5c9 | 60 | udało mu się uzyskać pozwolenie DOE na opublikowanie Maximy na |
3a9b294c | 61 | licencji GPL. |
a486c981 | 62 | |
2741c093 JB |
63 | %package -n bash-completion-maxima |
64 | Summary: Bash completion for Maxima | |
65 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla Maximy | |
66 | Group: Applications/Shells | |
67 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
68 | Requires: bash-completion >= 2.0 | |
69 | ||
70 | %description -n bash-completion-maxima | |
71 | Bash completion for Maxima. | |
72 | ||
73 | %description -n bash-completion-maxima -l pl.UTF-8 | |
74 | Bashowe dopełnianie parametrów dla Maximy. | |
75 | ||
d73f5fe5 | 76 | %package xmaxima |
9856ac96 JB |
77 | Summary: Tcl/Tk GUI interface for Maxima |
78 | Summary(pl.UTF-8): Graficzny interfejs Tcl/Tk dla Maximy | |
d73f5fe5 KK |
79 | Group: Applications/Math |
80 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
2741c093 | 81 | Requires: shared-mime-info |
d73f5fe5 KK |
82 | Requires: tk |
83 | ||
84 | %description xmaxima | |
85 | Tcl/Tk GUI interface for maxima. | |
86 | ||
9856ac96 JB |
87 | %description xmaxima -l pl.UTF-8 |
88 | Graficzny interfejs Tcl/Tk dla Maximy. | |
89 | ||
2741c093 JB |
90 | %package -n bash-completion-xmaxima |
91 | Summary: Bash completion for XMaxima | |
92 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla XMaximy | |
93 | Group: Applications/Shells | |
94 | Requires: %{name}-xmaxima = %{epoch}:%{version}-%{release} | |
95 | Requires: bash-completion >= 2.0 | |
96 | ||
97 | %description -n bash-completion-xmaxima | |
98 | Bash completion for XMaxima. | |
99 | ||
100 | %description -n bash-completion-xmaxima -l pl.UTF-8 | |
101 | Bashowe dopełnianie parametrów dla XMaximy. | |
102 | ||
88f300a0 KK |
103 | %package src |
104 | Summary: Maxima lisp source code | |
105 | Summary(pl.UTF-8): Pliki źródłowe Maximy | |
106 | Group: Development | |
107 | ||
108 | %description src | |
109 | Maxima lisp source code. | |
110 | ||
111 | %description src -l pl.UTF-8 | |
112 | Pliki źródłowe Maximy. | |
113 | ||
114 | %package doc | |
115 | Summary: Maxima documentation | |
116 | Summary(pl.UTF-8): Dokumentacja dla Maximy | |
117 | Group: Documentation | |
118 | ||
119 | %description doc | |
120 | Maxima documentation. | |
121 | ||
122 | %description doc -l pl.UTF-8 | |
123 | Dokumentacja dla Maximy. | |
124 | ||
0fb92146 | 125 | %package -n emacs-maxima-pkg |
29fde64e KK |
126 | Summary: Emacs mode for Maxima |
127 | Summary(pl.UTF-8): Tryb Maximy dla Emacsa | |
128 | Group: Applications/Math | |
129 | Requires: emacs-common | |
130 | ||
0fb92146 | 131 | %description -n emacs-maxima-pkg |
29fde64e KK |
132 | Emacs mode files for Maxima. |
133 | ||
0fb92146 | 134 | %description -n emacs-maxima-pkg -l pl.UTF-8 |
29fde64e KK |
135 | Tryb Maximy dla Emacsa. |
136 | ||
a486c981 | 137 | %prep |
a486c981 | 138 | %setup -q |
2741c093 | 139 | %patch0 -p1 |
a51927e1 | 140 | %patch1 -p1 |
a78f7303 | 141 | touch doc/info/{maximahtml.mk,category-macros.texi} src/{clisp,cmucl,gcl}-depends.mk |
a486c981 | 142 | |
88f300a0 | 143 | %patch3 -p1 |
8aad2b3a | 144 | %patch4 -p1 |
145 | %patch5 -p1 | |
133d8cf7 | 146 | %patch6 -p1 |
27ecc881 | 147 | |
a486c981 | 148 | %build |
149 | %{__aclocal} | |
150 | %{__automake} | |
151 | %{__autoconf} | |
b6298b99 | 152 | %configure \ |
2741c093 | 153 | --enable-clisp \ |
133d8cf7 JR |
154 | --enable-gettext \ |
155 | --with-emacs-prefix=%{_emacs_lispdir}/%{name} | |
2741c093 JB |
156 | |
157 | # TODO: --enable-lang-de[-utf8?] --enable-lang-es[-utf8?] --enable-lang-pt[-utf8?] --enable-lang-pt_BR[-utf8?] | |
158 | # for localized info pages | |
a486c981 | 159 | |
160 | %{__make} | |
161 | ||
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
3831be7f | 164 | |
d907bd06 | 165 | %{__make} install \ |
166 | DESTDIR=$RPM_BUILD_ROOT | |
167 | ||
168 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir* | |
a486c981 | 169 | |
2741c093 JB |
170 | install -Dp doc/man/ru/maxima.1 $RPM_BUILD_ROOT%{_mandir}/ru/man1/maxima.1 |
171 | ||
172 | %if %{with emacs} | |
173 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d | |
29fde64e | 174 | install %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d |
2741c093 | 175 | %else |
133d8cf7 | 176 | %{__rm} -r $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name} |
2741c093 JB |
177 | %endif |
178 | ||
179 | %find_lang %{name} | |
29fde64e | 180 | |
a486c981 | 181 | %clean |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
9856ac96 | 184 | %post -p /sbin/postshell |
b8fe1c77 | 185 | -/usr/sbin/fix-info-dir -c %{_infodir} |
7189a287 | 186 | |
9856ac96 | 187 | %postun -p /sbin/postshell |
b8fe1c77 | 188 | -/usr/sbin/fix-info-dir -c %{_infodir} |
7189a287 | 189 | |
2741c093 JB |
190 | %post xmaxima |
191 | %update_mime_database | |
192 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
a34cc624 | 193 | |
2741c093 JB |
194 | %postun xmaxima |
195 | %update_mime_database | |
196 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
a34cc624 | 197 | |
88f300a0 KK |
198 | %triggerin doc -- %{name} = %{epoch}:%{version} |
199 | if [ -d %{_docdir}/%{name}-doc-%{version} ]; then | |
1d552e05 | 200 | ln -snf %{_docdir}/%{name}-doc-%{version} %{_datadir}/%{name}/%{version}/doc |
88f300a0 KK |
201 | fi |
202 | ||
203 | %triggerun doc -- %{name} = %{epoch}:%{version} | |
204 | rm %{_datadir}/%{name}/%{version}/doc || : | |
205 | ||
206 | %triggerpostun doc -- %{name} = %{epoch}:%{version} | |
207 | if [ -d %{_docdir}/%{name}-doc-%{version} -a \ | |
1d552e05 TP |
208 | -d %{_datadir}/%{name}/%{version} ]; then |
209 | ln -snf %{_docdir}/%{name}-doc-%{version} %{_datadir}/%{name}/%{version}/doc | |
88f300a0 KK |
210 | fi |
211 | ||
2741c093 | 212 | %files -f %{name}.lang |
a486c981 | 213 | %defattr(644,root,root,755) |
2741c093 | 214 | %doc AUTHORS COPYING ChangeLog-5* README |
d73f5fe5 KK |
215 | %attr(755,root,root) %{_bindir}/maxima |
216 | %attr(755,root,root) %{_bindir}/rmaxima | |
2741c093 JB |
217 | %dir %{_libdir}/%{name} |
218 | %dir %{_libdir}/%{name}/%{version} | |
2741c093 JB |
219 | %dir %{_libdir}/%{name}/%{version}/binary-clisp |
220 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/binary-clisp/lisp.run | |
221 | %{_libdir}/%{name}/%{version}/binary-clisp/maxima.mem | |
17f2bc25 JB |
222 | %if "%{_libexecdir}" != "%{_libdir}" |
223 | %dir %{_libexecdir}/%{name} | |
224 | %dir %{_libexecdir}/%{name}/%{version} | |
225 | %endif | |
226 | %attr(755,root,root) %{_libexecdir}/%{name}/%{version}/mgnuplot | |
d73f5fe5 KK |
227 | %dir %{_datadir}/%{name} |
228 | %dir %{_datadir}/%{name}/%{version} | |
88f300a0 | 229 | %{_datadir}/%{name}/%{version}/demo |
88f300a0 KK |
230 | %{_datadir}/%{name}/%{version}/share |
231 | %{_datadir}/%{name}/%{version}/tests | |
2741c093 JB |
232 | %{_mandir}/man1/maxima.1* |
233 | %lang(ru) %{_mandir}/ru/man1/maxima.1* | |
234 | %{_infodir}/imaxima.info* | |
7189a287 | 235 | %{_infodir}/maxima.info* |
da1eff4f | 236 | %{_infodir}/maxima-index.lisp |
2741c093 JB |
237 | # packages |
238 | %{_infodir}/abs_integrate.info* | |
239 | %{_infodir}/drawutils.info* | |
240 | %{_infodir}/kovacicODE.info* | |
241 | %{_infodir}/logic.info* | |
242 | ||
243 | %files -n bash-completion-maxima | |
244 | %defattr(644,root,root,755) | |
245 | %{_datadir}/bash-completion/completions/maxima | |
246 | %{_datadir}/bash-completion/completions/rmaxima | |
d73f5fe5 KK |
247 | |
248 | %files xmaxima | |
249 | %defattr(644,root,root,755) | |
250 | %attr(755,root,root) %{_bindir}/xmaxima | |
2741c093 | 251 | %{_datadir}/%{name}/%{version}/xmaxima |
133d8cf7 JR |
252 | %{_desktopdir}/net.sourceforge.maxima.xmaxima.desktop |
253 | %{_datadir}/metainfo/net.sourceforge.maxima.xmaxima.appdata.xml | |
a5afb6de | 254 | %{_infodir}/xmaxima.info* |
2741c093 JB |
255 | %{_datadir}/mime/packages/x-mac.xml |
256 | %{_datadir}/mime/packages/x-maxima-out.xml | |
133d8cf7 JR |
257 | %{_pixmapsdir}/net.sourceforge.maxima.png |
258 | %{_pixmapsdir}/net.sourceforge.maxima.svg | |
2741c093 JB |
259 | %{_pixmapsdir}/text-x-maxima-out.svg |
260 | %{_pixmapsdir}/text-x-maximasession.svg | |
261 | ||
262 | %files -n bash-completion-xmaxima | |
263 | %defattr(644,root,root,755) | |
264 | %{_datadir}/bash-completion/completions/xmaxima | |
88f300a0 | 265 | |
2741c093 | 266 | %if %{with emacs} |
0fb92146 | 267 | %files -n emacs-maxima-pkg |
29fde64e KK |
268 | %defattr(644,root,root,755) |
269 | %{_emacs_lispdir}/%{name} | |
270 | %{_emacs_lispdir}/site-start.d/%{name}-mode-init.el | |
2741c093 | 271 | %endif |
29fde64e | 272 | |
88f300a0 KK |
273 | %files doc |
274 | %defattr(644,root,root,755) | |
275 | %{_docdir}/%{name}-doc-%{version} | |
276 | ||
277 | %files src | |
278 | %defattr(644,root,root,755) | |
279 | %{_usrsrc}/maxima-%{version} |