Summary(pl.UTF-8): AMD - przybliżony algorytm minimalnego stopnia
Name: AMD
Version: 2.4.0
-Release: 1
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: http://www.cise.ufl.edu/research/sparse/amd/%{name}-%{version}.tar.gz
# Source0-md5: 5044de774a2f7804d09ac0d5134d6884
Patch0: amd-ufconfig.patch
Patch1: amd-shared.patch
+Patch2: amd-externc.patch
URL: http://www.cise.ufl.edu/research/sparse/amd/
BuildRequires: SuiteSparse_config >= 4.3.0
BuildRequires: gcc-fortran
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__make} \
--- /dev/null
+--- AMD/Include/amd.h.orig 2014-11-21 18:37:31.104213554 +0100
++++ AMD/Include/amd.h 2014-11-21 18:46:11.707525119 +0100
+@@ -35,16 +35,16 @@
+ #ifndef AMD_H
+ #define AMD_H
+
+-/* make it easy for C++ programs to include AMD */
+-#ifdef __cplusplus
+-extern "C" {
+-#endif
+-
+ /* get the definition of size_t: */
+ #include <stddef.h>
+
+ #include <SuiteSparse_config.h>
+
++/* make it easy for C++ programs to include AMD */
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ int amd_order /* returns AMD_OK, AMD_OK_BUT_JUMBLED,
+ * AMD_INVALID, or AMD_OUT_OF_MEMORY */
+ (