mexproto.h does "extern C" on its own
- rel 3
--- /dev/null
+--- octave-3.6.4/src/mex.h~ 2013-02-21 21:19:24.000000000 +0100
++++ octave-3.6.4/src/mex.h 2013-06-24 13:08:46.755012288 +0200
+@@ -64,6 +64,8 @@
+
+ #define mxMAXNAME 64
+
++#include "mexproto.h"
++
+ #if defined (__cplusplus)
+ extern "C" {
+ #endif
+@@ -74,8 +76,6 @@
+ void mexFunction (int nlhs, mxArray* plhs[], int nrhs, const mxArray *prhs[]);
+ #endif
+
+-#include "mexproto.h"
+-
+ /* V4 floating point routines renamed in V5. */
+ #define mexIsNaN mxIsNaN
+ #define mexIsFinite mxIsFinite
Summary(zh_CN.UTF-8): GNU Octave - 用于数字计算的高级语言。
Name: octave
Version: 3.6.4
-Release: 2
+Release: 3
Epoch: 2
License: GPL v3+
Group: Applications/Math
Source1: %{name}.desktop
Patch0: %{name}-info.patch
Patch1: %{name}-build.patch
+Patch2: %{name}-header.patch
URL: http://www.octave.org/
BuildRequires: AMD-devel
BuildRequires: CAMD-devel
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}