Name: octave-forge Version: @OCTAVE_FORGE_RELEASE@ Release: 1 Summary: Contributed functions for octave Group: Applications/Engineering License: Public Domain URL: http://octave.sourceforge.net Source0: ftp://download.sourceforge.net/pub/sourceforge/o/oc/octave/%{name} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ## Octave-forge installs in a directory tree specific to the installed ## version of octave, so the following version dependency is necessary. %define octave_ep %(rpm -q --qf '%%{epoch}' octave) %define octave_ver %(rpm -q --qf '%%{version}' octave) Requires: octave = %{octave_ep}:%{octave_ver} ImageMagick BuildRequires: octave-devel gcc-c++ tetex gcc-gfortran GiNaC-devel BuildRequires: xorg-x11-devel libjpeg-devel libpng-devel zlib-devel BuildRequires: ncurses-devel libtermcap-devel gsl-devel qhull-devel BuildRequires: pcre-devel libstdc++-devel ExcludeArch: ppc64 s390x %description Octave-forge is a community project for collaborative development of octave extensions. The extensions in this package include additional data types such as sparse matrices, and functions for a variety of different applications including signal and image processing, communications, control, optimization, statistics, geometry, and symbolic math. %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %define host_type %(echo "disp(octave_config_info('canonical_host_type'))" | octave -qf) %define site_dir octave/%{octave_ver}/site make install prefix=$RPM_BUILD_ROOT%{_prefix} \ bindir=$RPM_BUILD_ROOT%{_bindir} \ mandir=$RPM_BUILD_ROOT%{_mandir} \ MPATH=$RPM_BUILD_ROOT%{_datadir}/%{site_dir}/m/octave-forge \ OPATH=$RPM_BUILD_ROOT%{_libexecdir}/%{site_dir}/oct/%{host_type}/octave-forge \ XPATH=$RPM_BUILD_ROOT%{_libexecdir}/%{site_dir}/exec/%{host_type} \ ALTPATH=$RPM_BUILD_ROOT%{_datadir}/%{site_dir}/octave-forge-alternative/m \ ALTMPATH=$RPM_BUILD_ROOT%{_datadir}/%{site_dir}/octave-forge-alternative/m/octave-forge \ ALTOPATH=$RPM_BUILD_ROOT%{_libexecdir}/%{site_dir}/octave-forge-alternative/oct/%{host_type} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING* README RELEASE-NOTES TODO %doc doc/*.html doc/coda/*.sgml doc/coda/appendices/*.sgml %doc doc/coda/oct/*.sgml doc/coda/standalone/*.sgml %{_datadir}/octave/* %{_libexecdir}/octave/* %{_bindir}/mex %{_mandir}/man1/mex* %changelog * Fri Jun 17 2005 Quentin Spencer - Move ugly path hacks to install section. - New dependencies. * Thu Feb 24 2005 Quentin Spencer - Updated spec file to get octave version at build time. * Wed Nov 17 2004 Quentin Spencer - Revised package description. * Tue Jun 15 2004 Quentin Spencer - Added qhull support. * Tue Feb 24 2004 Quentin Spencer - Added GiNaC as a dependency. Fixed install directories for octave-forge alternatives. * Fri Jun 13 2003 Quentin Spencer - Added new package description, revised so that configure automatically generates the correct octave version and octave-forge version, added dependencies. * Wed May 14 2003 Quentin Spencer - Commented out code for ls-R files because of recent changes in Octave's use of kpathsea. Didn't delete it yet because it may yet be needed in the future. * Tue Feb 4 2003 Quentin Spencer - First Version, loosely based on Red Hat's spec file for octave.