/[packages]/cauldron/maxima/current/SPECS/maxima.spec
ViewVC logotype

Diff of /cauldron/maxima/current/SPECS/maxima.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 95217 by grenoya, Thu May 5 20:48:56 2011 UTC revision 194031 by kamil, Mon Jan 9 14:24:35 2012 UTC
# Line 1  Line 1 
1  %define enable_clisp    1  %define enable_clisp    1
2  %define enable_gcl      1  %define enable_gcl      1
3  %define enable_sbcl     0  %define enable_sbcl     0
4  %define enable_ecl      1  %define enable_ecl      1
5  %define defaultlisp     clisp  %define defaultlisp     clisp
6    
7  %if %enable_clisp  %if %enable_clisp
8  %define clisp_flags     --enable-clisp  %define clisp_flags     --enable-clisp
# Line 28  Line 28 
28  %define ecl_flags       --disable-ecl  %define ecl_flags       --disable-ecl
29  %endif  %endif
30    
31  Summary:        Maxima Symbolic Computation Program  Name:           maxima
32  Name:           maxima  Version:        5.26.0
33  Version:        5.24.0  Release:        %mkrel 0
34  Release:        %mkrel 1  Summary:        Symbolic Computation Program
35  License:        GPLv2  License:        GPLv2
36  Group:          Sciences/Mathematics  Group:          Sciences/Mathematics
37  URL:            http://maxima.sourceforge.net  URL:            http://maxima.sourceforge.net
38  Source0:        http://prdownloads.sourceforge.net/maxima/%{name}-%{version}.tar.gz  Source0:        http://prdownloads.sourceforge.net/maxima/%{name}-%{version}.tar.gz
39  Source1:        icons-%{name}.tar.bz2  Source1:        icons-%{name}.tar.bz2
40  Patch0:         maxima-5.22.0-xdg-utils.patch  Patch0:         %{name}-5.22.0-xdg-utils.patch
41  Patch1:         maxima-5.14.0-missed-extract-categories.patch  Patch1:         %{name}-5.14.0-missed-extract-categories.patch
42  Patch2:         maxima-fix-contrib-docs.patch  Patch2:         %{name}-fix-contrib-docs.patch
43  Patch3:         maxima-5.23.0-clisp-noreadline.patch  Patch3:         %{name}-5.23.0-clisp-noreadline.patch
44  Patch4:         maxima-5.22.0-ecl-ldflags.patch  Patch4:         %{name}-5.22.0-ecl-ldflags.patch
45  BuildRequires:  texinfo  BuildRequires:  texinfo
46  BuildRequires:  texlive  BuildRequires:  texlive
47  BuildRequires:  python  BuildRequires:  python
48  Suggests:       tk  Suggests:       tk
49  Suggests:       tcl  Suggests:       tcl
50  Requires:       maxima-runtime  Requires:       %{name}-runtime
51  Requires:       gnuplot  Requires:       gnuplot
52  %if %{enable_clisp}  %if %{enable_clisp}
53  BuildRequires:  clisp  BuildRequires:  clisp
54  %endif  %endif
55  %if %{enable_gcl}  %if %{enable_gcl}
56  BuildRequires:  gcl > 2.5.3  BuildRequires:  gcl
57  %endif  %endif
58  %if %{enable_sbcl}  %if %{enable_sbcl}
59  BuildRequires:  sbcl  BuildRequires:  sbcl
60  %endif  %endif
61  %if %{enable_ecl}  %if %{enable_ecl}
62  BuildRequires:  ecl  BuildRequires:  ecl
63  %endif  %endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}  
64    
65  %description  %description
66  Maxima is a full symbolic computation program.  It is full featured  Maxima is a full symbolic computation program.  It is full featured doing
67  doing symbolic manipulation of polynomials, matrices, rational  symbolic manipulation of polynomials, matrices, rational functions,
68  functions, integration, Todd-coxeter, graphing, bigfloats.  It has a  integration, Todd-coxeter, graphing, bigfloats.  It has a symbolic debugger
69  symbolic debugger source level debugger for maxima code.  Maxima is  source level debugger for maxima code.  Maxima is based on the original Macsyma
70  based on the original Macsyma developed at MIT in the 1970's.  It is  developed at MIT in the 1970's. It is quite reliable, and has good garbage
71  quite reliable, and has good garbage collection, and no memory leaks.  collection, and no memory leaks. It comes with hundreds of self tests.
72  It comes with hundreds of self tests.  
73    
74  #--------------------------------------------------------------------  #--------------------------------------------------------------------
75    
76  %package gui  %package gui
77  Summary: Tcl/Tk GUI interface to Maxima  Summary:        Tcl/Tk GUI interface to Maxima
78  Group:          Sciences/Mathematics  Group:          Sciences/Mathematics
79  Requires:       maxima  Requires:       %{name}
80  Requires:       tk  Requires:       tk
81  Provides:       xmaxima = %{version}-%{release}  Provides:       x%{name} = %{version}-%{release}
82    
83  %description gui  %description gui
84  Tcl/Tk GUI interface to Maxima.  Tcl/Tk GUI interface to Maxima.
85    
86    
87  %files gui  %files gui
88  %defattr(-,root,root)  %{_bindir}/x%{name}
 %{_bindir}/xmaxima  
89  %{_datadir}/applications/mageia-%{name}.desktop  %{_datadir}/applications/mageia-%{name}.desktop
90  %{_iconsdir}/hicolor/*/apps/*.png  %{_iconsdir}/hicolor/*/apps/*.png
91    
# Line 93  Tcl/Tk GUI interface to Maxima. Line 93  Tcl/Tk GUI interface to Maxima.
93    
94  %if %{enable_clisp}  %if %{enable_clisp}
95  %package runtime-clisp  %package runtime-clisp
96  Summary: Maxima compiled with clisp  Summary:        Maxima compiled with clisp
97  Group: Sciences/Mathematics  Group:          Sciences/Mathematics
98  Requires:       clisp  Requires:       clisp
99  Requires:       maxima = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
100  Provides:       maxima-runtime = %{version}-%{release}  Provides:       %{name}-runtime = %{version}-%{release}
101    
102  %description runtime-clisp  %description runtime-clisp
103  Maxima compiled with clisp.  Maxima compiled with clisp.
104    
105    
106  %files runtime-clisp  %files runtime-clisp
107  %defattr(-,root,root)  %dir %{_libdir}/%{name}/%{version}/binary-clisp
108  %dir %{_libdir}/maxima/%{version}/binary-clisp  %{_libdir}/%{name}/%{version}/binary-clisp/*
 %{_libdir}/maxima/%{version}/binary-clisp/*  
109  %endif  %endif
110    
111  #--------------------------------------------------------------------  #--------------------------------------------------------------------
112    
113  %if %{enable_gcl}  %if %{enable_gcl}
114  %package runtime-gcl  %package runtime-gcl
115  Summary: Maxima compiled with GCL  Summary:        Maxima compiled with GCL
116  Group:          Sciences/Mathematics  Group:          Sciences/Mathematics
117  Requires:       maxima = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
118  Suggests:       rlwrap  Suggests:       rlwrap
119  Provides:       maxima-runtime = %{version}-%{release}  Provides:       %{name}-runtime = %{version}-%{release}
120    
121  %description runtime-gcl  %description runtime-gcl
122  Maxima compiled with Gnu Common Lisp.  Maxima compiled with Gnu Common Lisp.
123    
124    
125  %files runtime-gcl  %files runtime-gcl
126  %defattr(-,root,root)  %{_bindir}/r%{name}
127  %{_bindir}/rmaxima  %dir %{_libdir}/%{name}/%{version}/binary-gcl
128  %dir %{_libdir}/maxima/%{version}/binary-gcl  %{_libdir}/%{name}/%{version}/binary-gcl/*
 %{_libdir}/maxima/%{version}/binary-gcl/*  
129  %endif  %endif
130    
131  #--------------------------------------------------------------------  #--------------------------------------------------------------------
132  %if %{enable_sbcl}  %if %{enable_sbcl}
133  %package runtime-sbcl  %package runtime-sbcl
134  Summary: Maxima compiled with SBCL  Summary:        Maxima compiled with SBCL
135  Group: Sciences/Mathematics  Group:          Sciences/Mathematics
136  Requires:       sbcl = 1.0.45  Requires:       sbcl = 1.0.45
137  Requires:       maxima = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
138  Provides:       maxima-runtime = %{version}-%{release}  Provides:       %{name}-runtime = %{version}-%{release}
139    
140  %description runtime-sbcl  %description runtime-sbcl
141  Maxima compiled with SBCL.  Maxima compiled with SBCL.
142    
143    
144  %files runtime-sbcl  %files runtime-sbcl
145  %defattr(-,root,root)  %dir %{_libdir}/%{name}/%{version}/binary-sbcl
146  %dir %{_libdir}/maxima/%{version}/binary-sbcl  %{_libdir}/%{name}/%{version}/binary-sbcl/*
 %{_libdir}/maxima/%{version}/binary-sbcl/*  
147  %endif  %endif
148    
149  %if %{enable_ecl}  %if %{enable_ecl}
150  %package runtime-ecl  %package runtime-ecl
151  Summary: Maxima compiled with ECL  Summary:        Maxima compiled with ECL
152  Group: Sciences/Mathematics  Group:          Sciences/Mathematics
153  Requires:       maxima = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
154  Provides:       maxima-runtime = %{version}-%{release}  Provides:       %{name}-runtime = %{version}-%{release}
155    
156  %description runtime-ecl  %description runtime-ecl
157  Maxima compiled with ECL.  Maxima compiled with ECL.
158    
159    
160  %files runtime-ecl  %files runtime-ecl
161  %defattr(-,root,root)  %dir %{_libdir}/%{name}/%{version}/binary-ecl
162  %dir %{_libdir}/maxima/%{version}/binary-ecl  %{_libdir}/%{name}/%{version}/binary-ecl/*
 %{_libdir}/maxima/%{version}/binary-ecl/*  
163  %endif  %endif
164    
165  #--------------------------------------------------------------------  #--------------------------------------------------------------------
# Line 188  make Line 190  make
190  make check  make check
191    
192  (cd doc/info  (cd doc/info
193  texi2dvi -p -t @afourpaper -t @finalout maxima.texi  texi2dvi -p -t @afourpaper -t @finalout %{name}.texi
194  )  )
195    
196  %install  %install
 rm -rf $RPM_BUILD_ROOT  
197  %makeinstall  %makeinstall
198  rm -f $RPM_BUILD_ROOT%{_infodir}/dir  rm -f %{buildroot}%{_infodir}/dir
199    
200  # menu  # menu
201  mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications  mkdir -p %{buildroot}%{_datadir}/applications
202  cat > $RPM_BUILD_ROOT%{_datadir}/applications/%_real_vendor-%{name}.desktop << EOF  cat > %{buildroot}%{_datadir}/applications/%_real_vendor-%{name}.desktop << EOF
203  [Desktop Entry]  [Desktop Entry]
204  Name=Maxima  Name=Maxima
205  Comment=Tcl/Tk interface to Maxima  Comment=Tcl/Tk interface to Maxima
206  Exec=%{_bindir}/xmaxima  Exec=%{_bindir}/x%{name}
207  Icon=%{name}  Icon=%{name}
208  Terminal=false  Terminal=false
209  Type=Application  Type=Application
# Line 210  Categories=Science;Math; Line 211  Categories=Science;Math;
211  EOF  EOF
212    
213  # icons  # icons
214  mkdir -p $RPM_BUILD_ROOT%{_iconsdir}  mkdir -p %{buildroot}%{_iconsdir}
215  tar xjf %{SOURCE1} -C $RPM_BUILD_ROOT%{_iconsdir}  tar xjf %{SOURCE1} -C %{buildroot}%{_iconsdir}
216    
217  # don't compress info pages  # don't compress info pages
218  export EXCLUDE_FROM_COMPRESS=info  export EXCLUDE_FROM_COMPRESS=info
219    
220  %post  %post
221  %_install_info maxima.info  %_install_info %{name}.info
222  %update_icon_cache hicolor  %update_icon_cache hicolor
223    
224  %postun  %postun
225  %_remove_install_info maxima.info  %_remove_install_info %{name}.info
226  %clean_icon_cache hicolor  %clean_icon_cache hicolor
227    
 %clean  
 rm -rf $RPM_BUILD_ROOT  
   
228  %files  %files
 %defattr(-,root,root)  
229  %doc AUTHORS COPYING README README.lisps  %doc AUTHORS COPYING README README.lisps
230  %doc doc/info/maxima.pdf  %doc doc/info/%{name}.pdf
231  %{_bindir}/maxima  %{_bindir}/%{name}
232  %{_bindir}/rmaxima  %{_bindir}/r%{name}
233  %{_libdir}/maxima/%{version}/mgnuplot  %{_libdir}/%{name}/%{version}/mgnuplot
234  %{_datadir}/maxima/%{version}/*  %{_datadir}/%{name}/%{version}/*
235  %{_infodir}/*.info*  %{_infodir}/*.info*
236  %{_infodir}/maxima-index.lisp*  %{_infodir}/%{name}-index.lisp*
237  %{_mandir}/man1/maxima.*  %{_mandir}/man1/%{name}.*
   
   

Legend:
Removed from v.95217  
changed lines
  Added in v.194031

  ViewVC Help
Powered by ViewVC 1.1.30