diff --git a/.gitignore b/.gitignore index cc631d1..d3f0347 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ octave-3.2.4.tar.bz2 /octave-3.3.54.tar.bz2 +/octave-3.4.0.tar.bz2 diff --git a/octave-3.4.0-gcc46.patch b/octave-3.4.0-gcc46.patch new file mode 100644 index 0000000..c174204 --- /dev/null +++ b/octave-3.4.0-gcc46.patch @@ -0,0 +1,24 @@ +diff -up octave-3.4.0/liboctave/oct-alloc.h.gcc46 octave-3.4.0/liboctave/oct-alloc.h +--- octave-3.4.0/liboctave/oct-alloc.h.gcc46 2011-02-08 03:00:51.000000000 -0700 ++++ octave-3.4.0/liboctave/oct-alloc.h 2011-02-08 09:41:23.984081687 -0700 +@@ -23,6 +23,8 @@ along with Octave; see the file COPYING. + #if !defined (octave_oct_alloc_h) + #define octave_oct_alloc_h 1 + ++#include ++ + class + OCTAVE_API + octave_allocator +diff -up octave-3.4.0/src/pr-output.cc.gcc46 octave-3.4.0/src/pr-output.cc +--- octave-3.4.0/src/pr-output.cc.gcc46 2011-02-08 03:00:52.000000000 -0700 ++++ octave-3.4.0/src/pr-output.cc 2011-02-08 09:55:16.149662744 -0700 +@@ -3024,7 +3024,7 @@ abs (T x) + } + + #define INSTANTIATE_ABS(T) \ +- template /* static */ inline T abs (T) ++ template /* static */ T abs (T) + + INSTANTIATE_ABS(signed char); + INSTANTIATE_ABS(short); diff --git a/octave.spec b/octave.spec index 13cc0e9..5c46b0e 100644 --- a/octave.spec +++ b/octave.spec @@ -1,16 +1,16 @@ # From src/version.h:#define OCTAVE_API_VERSION -%global octave_api api-v42+ +%global octave_api api-v47+ Name: octave -Version: 3.3.54 +Version: 3.4.0 Release: 1%{?dist} Summary: A high-level language for numerical computations Epoch: 6 Group: Applications/Engineering License: GPLv3+ -Source0: ftp://alpha.gnu.org/gnu/octave/octave-%{version}.tar.bz2 -#Source0: ftp://ftp.octave.org/pub/octave/octave-%{version}.tar.bz2 -Patch0: octave-3.3.54-run-octave.patch +Source0: ftp://ftp.gnu.org/gnu/octave/octave-%{version}.tar.bz2 +# Add missing cstddef for gcc 4.6 +Patch0: octave-3.4.0-gcc46.patch URL: http://www.octave.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -67,7 +67,7 @@ This package contains documentation for Octave. %prep %setup -q -%patch0 -p1 -b .run-octave +%patch0 -p1 -b .gcc46 # Check that octave_api is set correctly if ! grep -q '^#define OCTAVE_API_VERSION "%{octave_api}"' src/version.h then @@ -107,7 +107,7 @@ touch %{buildroot}%{_datadir}/%{name}/ls-R rm %{buildroot}%{_datadir}/applications/www.octave.org-octave.desktop desktop-file-install --vendor fedora --remove-category Development --add-category "Education" \ --add-category "DataVisualization" --add-category "NumericalAnalysis" --add-category "Engineering" --add-category "Physics" \ - --dir %{buildroot}%{_datadir}/applications examples/octave.desktop + --dir %{buildroot}%{_datadir}/applications doc/icons/octave.desktop # Create directories for add-on packages HOST_TYPE=`%{buildroot}%{_bindir}/octave-config -p CANONICAL_HOST_TYPE` @@ -144,8 +144,8 @@ fi %files %defattr(-,root,root,-) -%doc COPYING NEWS* PROJECTS README README.Linux README.kpathsea ROADMAP -%doc SENDING-PATCHES +%doc AUTHORS BUGS ChangeLog* COPYING NEWS* PROJECTS README README.Linux +%doc README.kpathsea # FIXME: Create an -emacs package that has the emacs addon %config %{_sysconfdir}/ld.so.conf.d/octave-*.conf %{_bindir}/octave* @@ -180,6 +180,11 @@ fi %changelog +* Tue Feb 8 2011 Orion Poplawski - 6:3.4.0-1 +- Update to 3.4.0 +- Drop run-octave patch fixed upstream +- Add patch to support gcc 4.6 + * Thu Dec 16 2010 Orion Poplawski - 6:3.3.54-1 - Update to 3.3.54 - Add patch to prevent run-octave from getting installed diff --git a/sources b/sources index 31e7561..14057a2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3443b2b48b0e7d17a272d80faf3bebee octave-3.3.54.tar.bz2 +c8144cee1d37e645d3368a8e8a5f1856 octave-3.4.0.tar.bz2