- Update to 3.4.0
- Drop run-octave patch fixed upstream - Add patch to support gcc 4.6
This commit is contained in:
parent
c427094f21
commit
ce945d9459
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
octave-3.2.4.tar.bz2
|
||||
/octave-3.3.54.tar.bz2
|
||||
/octave-3.4.0.tar.bz2
|
||||
|
24
octave-3.4.0-gcc46.patch
Normal file
24
octave-3.4.0-gcc46.patch
Normal file
@ -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 <cstddef>
|
||||
+
|
||||
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);
|
23
octave.spec
23
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 <orion[AT]cora.nwra com> - 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 <orion[AT]cora.nwra com> - 6:3.3.54-1
|
||||
- Update to 3.3.54
|
||||
- Add patch to prevent run-octave from getting installed
|
||||
|
Loading…
Reference in New Issue
Block a user