Add patch to allow octave compilation

This commit is contained in:
Orion Poplawski 2014-09-13 11:31:25 -06:00
parent 0a581461c5
commit 94a7461fdd
2 changed files with 30 additions and 1 deletions

22
suitesparse-include.patch Normal file
View File

@ -0,0 +1,22 @@
diff -up SuiteSparse/SuiteSparse_config/SuiteSparse_config.h.include SuiteSparse/SuiteSparse_config/SuiteSparse_config.h
--- SuiteSparse/SuiteSparse_config/SuiteSparse_config.h.include 2014-07-16 15:35:20.000000000 -0600
+++ SuiteSparse/SuiteSparse_config/SuiteSparse_config.h 2014-09-13 11:28:42.480821742 -0600
@@ -38,14 +38,14 @@
#ifndef SUITESPARSE_CONFIG_H
#define SUITESPARSE_CONFIG_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <limits.h>
#include <stdlib.h>
#include <math.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* ========================================================================== */
/* === SuiteSparse_long ===================================================== */
/* ========================================================================== */

View File

@ -12,13 +12,16 @@
Name: suitesparse
Version: 4.3.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A collection of sparse matrix libraries
Group: System Environment/Libraries
License: LGPLv2+ and GPLv2+
URL: http://www.cise.ufl.edu/research/sparse/SuiteSparse
Source0: http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-%{version}.tar.gz
# Move includes out of extern "C" to allow octave compilation
# https://savannah.gnu.org/bugs/?43063
Patch0: suitesparse-include.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %{with atlas310}
@ -93,6 +96,7 @@ This package contains documentation files for %{name}.
%prep
%setup -q -n SuiteSparse
%patch0 -p1 -b .include
%build
%define amd_version 2.4.0
@ -433,6 +437,9 @@ rm -rf ${RPM_BUILD_ROOT}
%doc Doc/*
%changelog
* Sat Sep 13 2014 Orion Poplawski <orion@cora.nwra.com> - 4.3.1-2
- Add patch to allow octave compilation
* Mon Sep 08 2014 Clément David <c.david86@gmail.com> - 4.3.1-1
- Update to release 4.3.1.