rpms/maxima/devel maxima-5.9.0-htmlview.patch, NONE, 1.1 maxima-modes.el, NONE, 1.1 maxima.el-xemacs.patch, NONE, 1.1 maxima.png, NONE, 1.1 maxima.spec, NONE, 1.1 xmaxima.desktop, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Tue Sep 6 17:56:05 UTC 2005


Author: rdieter

Update of /cvs/extras/rpms/maxima/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15082/devel

Modified Files:
	.cvsignore sources 
Added Files:
	maxima-5.9.0-htmlview.patch maxima-modes.el 
	maxima.el-xemacs.patch maxima.png maxima.spec xmaxima.desktop 
Log Message:
auto-import maxima-5.9.1-4 on branch devel from maxima-5.9.1-4.src.rpm

maxima-5.9.0-htmlview.patch:

--- NEW FILE maxima-5.9.0-htmlview.patch ---
--- maxima-5.9.0/interfaces/xmaxima/Tkmaxima/Menu.tcl.htmlview	2003-02-06 21:13:54.000000000 -0600
+++ maxima-5.9.0/interfaces/xmaxima/Tkmaxima/Menu.tcl	2004-03-26 15:47:44.000000000 -0600
@@ -215,7 +215,7 @@
 	}
     } else {
 	# This is more difficult under Unix - KDE GNOME CDE etc...
-	lappend browse netscape
+	lappend browse htmlview 
     }
     $m add sep
     $m add command -underline 0 -label {Maxima Homepage} \


--- NEW FILE maxima-modes.el ---

(autoload 'emaxima-mode "emaxima" "EMaxima" t)
(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima)
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'maxima "maxima" "Maxima interaction" t)
;(autoload 'imaxima "imaxima" "Maxima interaction with graphical output" t)
(autoload 'dbl "dbl" "Make a debugger to run lisp, maxima and or gdb in" t)
(autoload 'gcl-mode "gcl" "Major mode for editing maxima code and interacting with debugger" t)
(setq auto-mode-alist (cons '("\\.ma?[cx]\\'" . maxima-mode) auto-mode-alist))
;(setq auto-mode-alist (cons '("\\.li?sp\\'" . gcl-mode) auto-mode-alist))

maxima.el-xemacs.patch:

--- NEW FILE maxima.el-xemacs.patch ---
--- maxima/interfaces/emacs/emaxima/maxima.el	2004-05-20 18:12:56.000000000 +0000
+++ maxima-new/interfaces/emacs/emaxima/maxima.el	2004-08-06 01:56:50.000000000 +0000
@@ -1628,6 +1628,9 @@
           (beginning-of-line)
 	  (while (re-search-forward 
                   (concat "(" maxima-inchar "[0-9]+).*\r") pmark t)
+	    (replace-match "" t t))
+          (beginning-of-line)
+	  (while (re-search-forward "\r" pmark t)
 	    (replace-match "" t t))))))
 
 (defun inferior-maxima-wait-for-output ()


--- NEW FILE maxima.spec ---

## Which runtimes to build/enable?
%define _with_clisp 1
%define _without_cmucl 1
%define _without_gcl 1
%define _without_sbcl 1

#define cvs cvs20050825
#define beta cvs

Summary: Maxima Symbolic Computation Program
Name: 	 maxima
Version: 5.9.1

Release: 4%{?dist} 
License: GPL
Group:	 Applications/Engineering 
URL: 	 http://maxima.sourceforge.net/
Source:  http://dl.sourceforge.net/sourceforge/maxima/maxima-%{version}%{?cvs}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source1: maxima.png
Source2: xmaxima.desktop
Source6: maxima-modes.el

## Other maxima reference docs
Source10: http://starship.python.net/crew/mike/TixMaxima/macref.pdf
Source11: http://maxima.sourceforge.net/docs/maximabook/maximabook-19-Sept-2004.pdf

Patch1: maxima-5.9.0-htmlview.patch
# (mysterious?) xemacs patch
Patch2: maxima.el-xemacs.patch
# Fix build w/sbcl (5.9.1.1cvs only)
%{?cvs:Patch3: maxima-sbcl.patch}

# Inhibit automatic compressing of info files. Compressed info
# files break maxima's internal help.
%define __spec_install_post %{nil} 

BuildRequires: texinfo
BuildRequires: tetex-latex
BuildRequires: desktop-file-utils
# /usr/bin/wish
BuildRequires: tk
# cvs
%{?cvs:BuildRequires: autoconf automake}

Requires: %{name}-runtime = %{version}
Requires: gnuplot
Requires(post): /sbin/install-info
Requires(postun): /sbin/install-info

%description
Maxima is a full symbolic computation program.  It is full featured
doing symbolic manipulation of polynomials, matrices, rational
functions, integration, Todd-coxeter, graphing, bigfloats.  It has a
symbolic debugger source level debugger for maxima code.  Maxima is
based on the original Macsyma developed at MIT in the 1970's.

%package gui
Summary: Tcl/Tk GUI interface for %{name}
Group:	 Applications/Engineering 
Requires: %{name} = %{version}-%{release} 
Obsoletes: %{name}-xmaxima < %{version}-%{release}
Provides:  %{name}-xmaxima = %{version}-%{release}
Requires: tk
%description gui
Tcl/Tk GUI interface for %{name}

%package src 
Summary: %{name} lisp source code 
Group:   Applications/Engineering
Requires: %{name} = %{version}-%{release}
%description src 
%{name} lisp source code.

%if "%{?_with_clisp:1}" == "1"
%package runtime-clisp
Summary: Maxima compiled with clisp
Group:	 Applications/Engineering
BuildRequires: clisp
%define clisp_ver %{expand:%%(rpm -q --qf '%%{VERSION}' clisp )}
Requires: clisp >= %{clisp_ver}
Requires: %{name} = %{version}
Provides: %{name}-runtime = %{version}
%description runtime-clisp
Maxima compiled with Common Lisp (clisp) 
%endif

%if "%{?_with_cmucl:1}" == "1"
%package runtime-cmucl
Summary: Maxima compiled with CMUCL
Group:	 Applications/Engineering 
BuildRequires: cmucl 
#define cmucl_ver %{expand:%%(rpm -q --qf '%%{VERSION}' cmucl )}
#Requires: cmucl >= %{cmucl_ver}
Requires:  %{name} = %{version}
Obsoletes: %{name}-exec-cmucl 
Provides:  %{name}-runtime = %{version}
%description runtime-cmucl
Maxima compiled with CMU Common Lisp (cmucl) 
%endif

%if "%{?_with_gcl:1}" == "1"
%package runtime-gcl
Summary: Maxima compiled with GCL
Group:   Applications/Engineering
BuildRequires: gcl
Requires:  %{name} = %{version}
#Obsoletes: %{name}-exec-gcl 
Provides:  %{name}-runtime = %{version}
%description runtime-gcl
Maxima compiled with Gnu Common Lisp (gcl)
%endif

%if "%{?_with_sbcl:1}" == "1"
%package runtime-sbcl
Summary: Maxima compiled with SBCL 
Group:   Applications/Engineering
BuildRequires: sbcl 
%define sbcl_ver %{expand:%%(rpm -q --qf '%%{version}' sbcl )}
Requires: sbcl >= %{sbcl_ver}
Requires: %{name} = %{version}
#Obsoletes: %{name}-exec-sbcl
Provides: %{name}-runtime = %{version}
%description runtime-sbcl
Maxima compiled with Steel Bank Common Lisp (sbcl).
%endif


%prep
%setup -q  -n %{name}%{!?cvs:-%{version}%{?beta}}

# Extra docs
install -p -m644 %{SOURCE10} .

%patch1 -p1 -b .htmlview
%patch2 -p1 -b .xemacs
%{?cvs:%patch3 -p1 -b .sbcl}

sed -i -e 's:/usr/local/info:/usr/share/info:' \
  interfaces/emacs/emaxima/maxima.el
sed -i -e \
  's/(defcustom\s+maxima-info-index-file\s+)(\S+)/$1\"maxima.info-16\"/' \
  interfaces/emacs/emaxima/maxima.el

#if "%{?cvs:1}" == "1"
if [ ! -f configure ]; then
aclocal
automake --add-missing --copy
autoconf
fi

# remove CVS crud
find -name CVS -type d | xargs rm -r
#endif


%build
%configure \
  %{?_with_clisp: --enable-clisp }%{?_without_clisp:--disable-clisp } \
  %{?_with_cmucl: --enable-cmucl --with-cmucl-runtime=%{_libdir}/cmucl/bin/lisp }%{?_without_cmucl:--disable-cmucl } \
  %{?_with_gcl: --enable-gcl }%{?_without_gcl: --disable-gcl } \
  %{?_with_sbcl: --enable-sbcl }%{?_without_sbcl: --disable-sbcl }

# docs
pushd doc

 install -p -m644 %{SOURCE11} maximabook/maxima.pdf

 pushd info
  texi2dvi -p maxima.texi
 popd

 pushd intromax
  pdflatex intromax.ltx
 popd

popd

# everything else
make %{?_smp_mflags}


%check || :
make check


%install
rm -rf $RPM_BUILD_ROOT

make install%{!?debug_package:-strip} DESTDIR=$RPM_BUILD_ROOT

# app icon
install -p -D -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --add-category "X-Fedora" \
  %{SOURCE2} 

## emaxima
# LaTeX style
install -d $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/emaxima
cp -alf $RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}%{?beta}/emacs/*.sty \
	$RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/emaxima/
# emacs
install -d $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/{maxima,site-start.d}
cp -alf $RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}%{?beta}/emacs/*.el \
	$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}%{?beta}/emacs/*.lisp \
	$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/maxima/
install -D -m644 -p %{SOURCE6} \
	$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/maxima.el

# xemacs
install -d $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/{maxima,site-start.d}
cp -alf $RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}%{?beta}/emacs/*.el \
	$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}%{?beta}/emacs/*.lisp \
	$RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/maxima/
install -D -m644 -p %{SOURCE6} \
	$RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/site-start.d/maxima.el

## unwanted/unpackaged files
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
# until we get/Require rlwrap from http://utopia.knoware.nl/~hlub/uck/rlwrap/
rm -f $RPM_BUILD_ROOT%{_bindir}/rmaxima
# docs
rm -rf $RPM_BUILD_ROOT%{_datadir}/maxima/%{version}%{?beta}/doc/{contributors,implementation,misc,maximabook,EMaximaIntro.ps}

# when --with gcl, this (sometimes) fails to get auto-created, so we'll help out
touch debugfiles.list


%post
/sbin/install-info %{_infodir}/maxima.info %{_infodir}/dir ||:
[ -x /usr/bin/texhash ] && /usr/bin/texhash 2> /dev/null ||:

%postun
if [ $1 -eq 0 ]; then
  /sbin/install-info --delete %{_infodir}/maxima.info %{_infodir}/dir ||:
  [ -x /usr/bin/texhash ] && /usr/bin/texhash 2> /dev/null ||:
fi


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL README README.lisps
%doc doc/misc/ doc/implementation/
%doc doc/intromax/intromax.pdf
%doc doc/maximabook/maxima.pdf
%doc macref.pdf
%doc %{_datadir}/maxima/%{version}%{?beta}/doc
%{_bindir}/maxima
%dir %{_datadir}/maxima
%dir %{_datadir}/maxima/%{version}%{?beta}
%{_datadir}/maxima/%{version}%{?beta}/[a-c,f-r,t-w,y-z,A-Z]*
%{_datadir}/maxima/%{version}%{?beta}/demo/
%{_datadir}/maxima/%{version}%{?beta}/share/
%dir %{_libdir}/maxima
%dir %{_libdir}/maxima/%{version}%{?beta}
%{_libexecdir}/maxima
%{_infodir}/*.info*
%{_mandir}/man1/maxima.*
# emaxima     
%{_datadir}/maxima/%{version}%{?beta}/emacs
%{_datadir}/emacs/site-lisp/*
%{_datadir}/xemacs/site-packages/lisp/*
%{_datadir}/texmf/tex/latex/emaxima/

%files src
%defattr(-,root,root)
%{_datadir}/maxima/%{version}%{?beta}/src/

%files gui
%defattr(-,root,root)
%{_bindir}/xmaxima
%{_datadir}/maxima/%{version}%{?beta}/xmaxima
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png

%if "%{?_with_clisp:1}" == "1"
%files runtime-clisp
%defattr(-,root,root)
%{_libdir}/maxima/%{version}%{?beta}/binary-clisp
%endif

%if "%{?_with_cmucl:1}" == "1"
%files runtime-cmucl
%defattr(-,root,root)
%{_libdir}/maxima/%{version}%{?beta}/binary-cmucl
%endif

%if "%{?_with_gcl:1}" == "1"
%files runtime-gcl
%defattr(-,root,root)
%{_libdir}/maxima/%{version}%{?beta}/binary-gcl
%endif

%if "%{?_with_sbcl:1}" == "1"
%files runtime-sbcl
%defattr(-,root,root)
%{_libdir}/maxima/%{version}%{?beta}/binary-sbcl
%endif


%changelog
* Tue Sep 06 2005 Rex Dieter <rexdieter[AT]users.sf.net> 5.9.1-4
- workaround lack of debuginfo.list when building --with gcl

* Mon Aug 29 2005 Rex Dieter <rexdieter[AT]users.sf.net> 5.9.1-3
- BR: tk (/usr/bin/wish)
- trim %%description
- drop maxima book generation (use pregenerated copy)
- drop emaxima subpkg bits
- -src: lisp source subpkg

* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 5.9.1-2
- re-instate %%debuginfo
- put 'make check' in %%check section

* Wed Aug 17 2005 Rex Dieter <rexdieter[AT]users.sf.net> 5.9.1-1
- cleanup for Extras

* Fri Jan 28 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0:5.9.1-0.fdr.6
- -clisp,-cmucl,-sbcl: Req >= lisp version that was used to build it.

* Thu Sep 30 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.1-0.fdr.5
- respin sbcl,clisp

* Wed Sep 29 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.1-0.fdr.4
- fix %%post/%%postun to handle the now-uncompressed info files
- relax runtime Req/Prov to not include %%release (so we don't have
  to rebuild *every* runtime on every package iteration

* Tue Sep 28 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.1-0.fdr.3
- use pregenerated maxima book and macref.pdf from
  http://maxima.sourceforge.net/docs.shtml

* Tue Sep 28 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.1-0.fdr.2
- fix/cleanup build_book=1 option

* Mon Sep 27 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.1-0.fdr.1
- 5.9.1 

* Fri Sep 17 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.7.rc1
- 5.9.0.9rc1

* Wed Aug 18 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.6.beta2
- updated sbcl patch

* Thu Aug 12 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.5.beta2
- -emaxima: renamed emacs -> emaxima 
- -emaxima: cleanup/expand LaTeX,emacs,xemacs bits
- (optionally) build maxima book (pdf)

* Wed Aug 11 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.4.beta2
- enable sbcl build, thanks to patch from
  http://www.math.utexas.edu/pipermail/maxima/2004/007802.html

* Tue Aug 10 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.3.beta2
- fix conflict with gcl-2.6.4

* Fri Aug 06 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.2.beta2
- (re)enable cmucl

* Wed Aug 04 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0.9-0.fdr.0.1.beta2
- 5.9.0.9beta2 
- allow sbcl, disabled for now
- nix -emacs subpkg (for now)

* Mon Jul 19 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.7
- emacs subpkg
- drop cmucl support (cmucl doesn't build on fc2) 
- add desktop Categories: Education;Math;

* Fri Mar 26 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.5
- patch xmaxima to use htmlview instead of netscape
- move %%datadir/maxima/5.9.0/xmaxima to -gui pkg

* Thu Mar 25 2004 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.4
- desktop-file now default (unless desktop_file=0)

* Thu Dec 18 2003 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.3
- make %%post safer
- cleanup --without (clisp|cmucl|gcl) usage.
- use desktop-file-install (on platforms that support it)
- Requires(post,postun): /sbin/install-info

* Wed Oct 01 2003 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.2
- runtime-gcl: remove Requires: gcl, not needed after all.
- enable runtime-clisp 
- enable runtime-cmucl 

* Wed Sep 24 2003 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.1
- applnk/icon

* Wed Sep 17 2003 Rex Dieter <rexdieter at sf.net> 0:5.9.0-0.fdr.0
- fedora'ize 


--- NEW FILE xmaxima.desktop ---
[Desktop Entry]
Name=xmaxima
Comment=Symbolic Computation Program
Exec=xmaxima
Icon=maxima.png
MimeType=
Type=Application
Categories=Application;Scientific;Education;Math;
Encoding=UTF-8


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/maxima/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	6 Sep 2005 17:49:13 -0000	1.1
+++ .cvsignore	6 Sep 2005 17:56:03 -0000	1.2
@@ -0,0 +1,3 @@
+macref.pdf
+maxima-5.9.1.tar.gz
+maximabook-19-Sept-2004.pdf


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/maxima/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	6 Sep 2005 17:49:13 -0000	1.1
+++ sources	6 Sep 2005 17:56:03 -0000	1.2
@@ -0,0 +1,3 @@
+c101a1ce604d31b02bbc2f37cced280d  macref.pdf
+659acfad1f61444cf5b38f6c28279d40  maxima-5.9.1.tar.gz
+9faa5a513de43b5e7384216a8783f620  maximabook-19-Sept-2004.pdf




More information about the fedora-extras-commits mailing list