]> git.pld-linux.org Git - packages/AMD.git/commitdiff
- added externc patch (avoid forcing extern C for system headers, could cause problem... auto/th/AMD-2.4.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 21 Nov 2014 19:08:34 +0000 (20:08 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 21 Nov 2014 19:08:34 +0000 (20:08 +0100)
- release 2

AMD.spec
amd-externc.patch [new file with mode: 0644]

index 9c2c870bd5e7671a4a45445ed47c36d27a5a502e..bded74e52591b7fbb3ee1ae05ec3ee2ddfc5a3f4 100644 (file)
--- a/AMD.spec
+++ b/AMD.spec
@@ -2,13 +2,14 @@ Summary:      AMD: Approximate Minimum Degree
 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
@@ -95,6 +96,7 @@ Wersja statycznej biblioteki AMD dla program├│w napisanych w Fortranie.
 %setup -q -n %{name}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} \
diff --git a/amd-externc.patch b/amd-externc.patch
new file mode 100644 (file)
index 0000000..a909d8c
--- /dev/null
@@ -0,0 +1,24 @@
+--- 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 */
+ (
This page took 0.090425 seconds and 4 git commands to generate.