]>
Commit | Line | Data |
---|---|---|
a486c981 | 1 | Summary: Maxima Symbolic Computation Program |
8753da3b | 2 | Summary(pl.UTF-8): Program do obliczeń symbolicznych Maxima |
a486c981 | 3 | Name: maxima |
5c915936 | 4 | Version: 5.31.3 |
c7565da6 | 5 | Release: 4 |
d907bd06 | 6 | Epoch: 1 |
a486c981 | 7 | License: GPL |
8 | Group: Applications/Math | |
844772db | 9 | Source0: http://download.sourceforge.net/maxima/%{name}-%{version}.tar.gz |
5c915936 | 10 | # Source0-md5: 02b3b089b6a5581c410f3dcc57bfdde8 |
3831be7f | 11 | Source1: x%{name}.desktop |
29fde64e | 12 | Source2: %{name}-mode-init.el |
7189a287 | 13 | Patch0: %{name}-info.patch |
a51927e1 | 14 | Patch1: %{name}-missed-files.patch |
27ecc881 | 15 | Patch2: %{name}-posix.patch |
88f300a0 KK |
16 | Patch3: x%{name}-doc.patch |
17 | Patch4: %{name}-install.patch | |
da1eff4f | 18 | Patch5: %{name}-info-compressed.patch |
3a9b294c | 19 | URL: http://maxima.sourceforge.net/ |
a486c981 | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
22 | BuildRequires: clisp | |
29fde64e | 23 | BuildRequires: emacs |
a51927e1 KK |
24 | BuildRequires: perl-base |
25 | BuildRequires: python | |
7189a287 | 26 | BuildRequires: texinfo |
8918acd0 | 27 | %requires_eq clisp |
da1eff4f | 28 | Requires: gzip |
dca43053 | 29 | Suggests: gnuplot |
a486c981 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Maxima is a full symbolic computation program. It is full featured | |
34 | doing symbolic manipulation of polynomials, matrices, rational | |
35 | functions, integration, Todd-coxeter, graphing, bigfloats. It has a | |
36 | symbolic debugger source level debugger for maxima code. Maxima is | |
37 | based on the original Macsyma developed at MIT in the 1970's. It is | |
38 | quite reliable, and has good garbage collection, and no memory leaks. | |
39 | It comes with hundreds of self tests. William Schelter at University | |
40 | of Texas, has been responsible for development since the mid 1980's. | |
41 | See http://www.ma.utexas.edu/maxima.html for more information. He has | |
42 | recently been able to get DOE to allow him to distribute Maxima under | |
43 | the GPL. | |
44 | ||
abdbe5c9 JR |
45 | %description -l pl.UTF-8 |
46 | Maxima jest pakietem do pełnych obliczeń matematycznych. Ma duże | |
47 | możliwości symbolicznych obliczeń na wielomianach, macierzach, | |
48 | funkcjach wymiernych, całkowania, stosowania metody Todda-Coxetera, | |
49 | rysowania, obliczeń na wielkich liczbach. Posiada symboliczny debugger | |
50 | kodu źródłowego w maximie. Maxima bazuje na oryginalnej Macsyma | |
51 | utworzonej w MIT w roku 1970. Ma dobrą obsługę błędów, nie ma wycieków | |
52 | pamięci. Przychodzi z setkami testów. Od połowy lat 80-tych za rozwój | |
53 | projektu odpowiada William Schelter z University of Texas. Więcej | |
3a9b294c | 54 | informacji na stronie http://www.ma.utexas.edu/maxima.html. Ostatnio |
abdbe5c9 | 55 | udało mu się uzyskać pozwolenie DOE na opublikowanie Maximy na |
3a9b294c | 56 | licencji GPL. |
a486c981 | 57 | |
d73f5fe5 | 58 | %package xmaxima |
9856ac96 JB |
59 | Summary: Tcl/Tk GUI interface for Maxima |
60 | Summary(pl.UTF-8): Graficzny interfejs Tcl/Tk dla Maximy | |
d73f5fe5 KK |
61 | Group: Applications/Math |
62 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
63 | Requires: tk | |
64 | ||
65 | %description xmaxima | |
66 | Tcl/Tk GUI interface for maxima. | |
67 | ||
9856ac96 JB |
68 | %description xmaxima -l pl.UTF-8 |
69 | Graficzny interfejs Tcl/Tk dla Maximy. | |
70 | ||
88f300a0 KK |
71 | %package src |
72 | Summary: Maxima lisp source code | |
73 | Summary(pl.UTF-8): Pliki źródłowe Maximy | |
74 | Group: Development | |
75 | ||
76 | %description src | |
77 | Maxima lisp source code. | |
78 | ||
79 | %description src -l pl.UTF-8 | |
80 | Pliki źródłowe Maximy. | |
81 | ||
82 | %package doc | |
83 | Summary: Maxima documentation | |
84 | Summary(pl.UTF-8): Dokumentacja dla Maximy | |
85 | Group: Documentation | |
86 | ||
87 | %description doc | |
88 | Maxima documentation. | |
89 | ||
90 | %description doc -l pl.UTF-8 | |
91 | Dokumentacja dla Maximy. | |
92 | ||
0fb92146 | 93 | %package -n emacs-maxima-pkg |
29fde64e KK |
94 | Summary: Emacs mode for Maxima |
95 | Summary(pl.UTF-8): Tryb Maximy dla Emacsa | |
96 | Group: Applications/Math | |
97 | Requires: emacs-common | |
98 | ||
0fb92146 | 99 | %description -n emacs-maxima-pkg |
29fde64e KK |
100 | Emacs mode files for Maxima. |
101 | ||
0fb92146 | 102 | %description -n emacs-maxima-pkg -l pl.UTF-8 |
29fde64e KK |
103 | Tryb Maximy dla Emacsa. |
104 | ||
a486c981 | 105 | %prep |
a486c981 | 106 | %setup -q |
2c2b83f1 | 107 | # %patch0 -p1 |
a51927e1 | 108 | %patch1 -p1 |
a78f7303 | 109 | touch doc/info/{maximahtml.mk,category-macros.texi} src/{clisp,cmucl,gcl}-depends.mk |
a486c981 | 110 | |
27ecc881 | 111 | %patch2 -p1 |
88f300a0 | 112 | %patch3 -p1 |
8aad2b3a | 113 | %patch4 -p1 |
114 | %patch5 -p1 | |
27ecc881 | 115 | |
a486c981 | 116 | %build |
117 | %{__aclocal} | |
118 | %{__automake} | |
119 | %{__autoconf} | |
b6298b99 | 120 | %configure \ |
121 | --enable-clisp | |
a486c981 | 122 | |
123 | %{__make} | |
124 | ||
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
29fde64e | 127 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_emacs_lispdir}/{,site-start.d}} |
3831be7f | 128 | |
d907bd06 | 129 | %{__make} install \ |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
132 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir* | |
3831be7f | 133 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
a0084a23 | 134 | cp -f $RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/xmaxima/%{name}-icon.png \ |
9856ac96 | 135 | $RPM_BUILD_ROOT%{_pixmapsdir} |
a486c981 | 136 | |
29fde64e KK |
137 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%version/emacs $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name} |
138 | install %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d | |
139 | ||
a486c981 | 140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
9856ac96 | 143 | %post -p /sbin/postshell |
b8fe1c77 | 144 | -/usr/sbin/fix-info-dir -c %{_infodir} |
7189a287 | 145 | |
9856ac96 | 146 | %postun -p /sbin/postshell |
b8fe1c77 | 147 | -/usr/sbin/fix-info-dir -c %{_infodir} |
7189a287 | 148 | |
a34cc624 ER |
149 | %post xmaxima -p /sbin/postshell |
150 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
151 | ||
152 | %postun xmaxima -p /sbin/postshell | |
153 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
154 | ||
88f300a0 KK |
155 | %triggerin doc -- %{name} = %{epoch}:%{version} |
156 | if [ -d %{_docdir}/%{name}-doc-%{version} ]; then | |
1d552e05 | 157 | ln -snf %{_docdir}/%{name}-doc-%{version} %{_datadir}/%{name}/%{version}/doc |
88f300a0 KK |
158 | fi |
159 | ||
160 | %triggerun doc -- %{name} = %{epoch}:%{version} | |
161 | rm %{_datadir}/%{name}/%{version}/doc || : | |
162 | ||
163 | %triggerpostun doc -- %{name} = %{epoch}:%{version} | |
164 | if [ -d %{_docdir}/%{name}-doc-%{version} -a \ | |
1d552e05 TP |
165 | -d %{_datadir}/%{name}/%{version} ]; then |
166 | ln -snf %{_docdir}/%{name}-doc-%{version} %{_datadir}/%{name}/%{version}/doc | |
88f300a0 KK |
167 | fi |
168 | ||
a486c981 | 169 | %files |
170 | %defattr(644,root,root,755) | |
3a9b294c | 171 | %doc ChangeLog README |
d73f5fe5 KK |
172 | %attr(755,root,root) %{_bindir}/maxima |
173 | %attr(755,root,root) %{_bindir}/rmaxima | |
a486c981 | 174 | %attr(755,root,root) %{_libdir}/%{name} |
d73f5fe5 KK |
175 | %dir %{_datadir}/%{name} |
176 | %dir %{_datadir}/%{name}/%{version} | |
88f300a0 | 177 | %{_datadir}/%{name}/%{version}/demo |
88f300a0 KK |
178 | %{_datadir}/%{name}/%{version}/share |
179 | %{_datadir}/%{name}/%{version}/tests | |
3a9b294c | 180 | %{_mandir}/man?/* |
7189a287 | 181 | %{_infodir}/maxima.info* |
da1eff4f | 182 | %{_infodir}/maxima-index.lisp |
20be5205 | 183 | %{_infodir}/imaxima.info* |
d73f5fe5 KK |
184 | |
185 | %files xmaxima | |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_bindir}/xmaxima | |
188 | %{_datadir}/maxima/%{version}/xmaxima | |
189 | %{_desktopdir}/*.desktop | |
a5afb6de | 190 | %{_infodir}/xmaxima.info* |
d73f5fe5 | 191 | %{_pixmapsdir}/* |
88f300a0 | 192 | |
0fb92146 | 193 | %files -n emacs-maxima-pkg |
29fde64e KK |
194 | %defattr(644,root,root,755) |
195 | %{_emacs_lispdir}/%{name} | |
196 | %{_emacs_lispdir}/site-start.d/%{name}-mode-init.el | |
197 | ||
88f300a0 KK |
198 | %files doc |
199 | %defattr(644,root,root,755) | |
200 | %{_docdir}/%{name}-doc-%{version} | |
201 | ||
202 | %files src | |
203 | %defattr(644,root,root,755) | |
204 | %{_usrsrc}/maxima-%{version} |