]> git.pld-linux.org Git - packages/octave.git/commitdiff
- fix mex.h not to include mexproto.h surrounded by "extern C", auto/th/octave-3.6.4-3
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 24 Jun 2013 11:09:47 +0000 (13:09 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 24 Jun 2013 11:09:47 +0000 (13:09 +0200)
  mexproto.h does "extern C" on its own
- rel 3

octave-header.patch [new file with mode: 0644]
octave.spec

diff --git a/octave-header.patch b/octave-header.patch
new file mode 100644 (file)
index 0000000..c8f0802
--- /dev/null
@@ -0,0 +1,20 @@
+--- 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
index 291b5bc949d3ccefc11ec4f73fcd6ee84c971285..f8cd1ddc7c9905a482246ca716c10456918d72c3 100644 (file)
@@ -16,7 +16,7 @@ Summary(sv.UTF-8):    GNU Octave - ett högninvåspråk för numeriska beräkningar
 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
@@ -25,6 +25,7 @@ Source0:      http://ftp.gnu.org/gnu/octave/%{name}-%{version}.tar.bz2
 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
@@ -270,6 +271,7 @@ Pliki nagłówkowe i dodatkowa dokumentacja Octave.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
This page took 0.041879 seconds and 4 git commands to generate.