%define name octave-forge %define version 2004.11.16 %define release 2mdk %define octave_version 2.1.62 %define qhull_version 2003.1 # (Abel) GiNaC <= 1.3.0-1mdk placed header at fantastic location %define ginac_version 1.3.0-2mdk #define ipath %{buildroot} #define mpath %{ipath}%{_datadir}/octave/site/m/octave-forge #define opath %{ipath}%{_libdir}/octave/site/oct/%{_target_platform}/octave-forge #define xpath %{buildroot}%{_bindir} Summary: Custom scripts, functions and extensions for GNU Octave Name: %{name} Version: %{version} Release: %{release} Epoch: 0 License: Public Domain Group: Sciences/Mathematics Source0: http://prdownload.sourceforge.net/octave/%{name}-%{version}.tar.bz2 Patch0: octave-forge-2004.07.07-gcc34.patch.bz2 Patch1: octave-forge-2004.11.16-destdir.patch.bz2 URL: http://octave.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: octave >= %{octave_version} Requires: libqhull >= %{qhull_version} BuildRequires: gsl-devel BuildRequires: gcc-g77 BuildRequires: GiNaC-devel >= %{ginac_version} BuildRequires: jpeg-devel BuildRequires: lapack-devel BuildRequires: libqhull-devel >= %{qhull_version} BuildRequires: octave >= %{octave_version} BuildRequires: png-devel BuildRequires: termcap-devel BuildRequires: texi2html BuildRequires: texinfo Obsoletes: %{name}-devel < 2004.11.16-1mdk %description The octave-forge package contains the source for all the functions plus build and install scripts. These are designed to work with the latest development version of Octave (available from http://www.octave.org/download.html), but most functions will work on earlier versions of Octave including 2.0.x versions. %prep %setup -q #patch0 -p0 %patch1 -p1 -b .destdir %build %configure2_5x # --with-path=%{ipath} \ # --with-mpath=%{mpath} \ # --with-opath=%{opath} \ # --with-xpath=%{xpath} %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std find %{buildroot} -type f -name '*.oct' -print0 | xargs -0 -r strip --strip-unneeded %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) %doc AUTHORS ChangeLog COPYING* README RELEASE-NOTES TODO %{_bindir}/* %{_datadir}/octave %{_libdir}/octave %{_mandir}/*/* %changelog * Tue Feb 08 2005 Abel Cheung <deaddog@mandrake.org> 2004.11.16-2mdk - Rebuild against new readline * Mon Dec 27 2004 Abel Cheung <deaddog@mandrake.org> 2004.11.16-1mdk - New release - P1: Add support for CAPITA: CEO - Fix BuildRequires - Need not apply patch 0 now - Bring back rasmol.sh - Fix permission for .oct files - Don't move header files and split package, because headaer files are not for public consumption (used internally), and mex really wants header files inside specific location * Tue Jul 27 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 2004.07.07-1mdk - new release - fix buildrequires - fix download url - patch 0: fix compiling with new g++ * Tue Feb 24 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0:2004.02.12-2mdk - Own dirs * Fri Feb 13 2004 David Walluck <walluck@linux-mandrake.com> 0:2004.02.12-1mdk - 2004.02.04 - fix Source0 URL - use `strip' instead of %%__strip - use %%{_target_cpu} instead of i586 * Wed Oct 01 2003 David Walluck <walluck@linux-mandrake.com> 0:2003.06.02-1mdk - release