[libccp4] * Wed Aug 7 2013 Tim Fenn <tim.fenn at gmail.com> - 6.3.1-4 - patch ccp4_sysdep to fix arm build

Timothy Fenn timfenn at fedoraproject.org
Thu Aug 8 05:09:20 UTC 2013


commit ad2a949f5c8004fa88d726ae91b107ce1e4ec218
Author: Tim Fenn <tim.fenn at gmail.com>
Date:   Wed Aug 7 22:08:46 2013 -0700

    * Wed Aug 7 2013 Tim Fenn <tim.fenn at gmail.com> - 6.3.1-4
    - patch ccp4_sysdep to fix arm build

 libccp4-ccp4_sysdep.patch |   45 +++++++++++++++++++++++++++++++++++++++++++++
 libccp4.spec              |    5 +++++
 2 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/libccp4-ccp4_sysdep.patch b/libccp4-ccp4_sysdep.patch
new file mode 100644
index 0000000..def294e
--- /dev/null
+++ b/libccp4-ccp4_sysdep.patch
@@ -0,0 +1,45 @@
+--- ccp4/ccp4_sysdep.h_orig	2013-08-07 21:40:55.745456413 -0700
++++ ccp4/ccp4_sysdep.h	2013-08-07 21:45:48.556447944 -0700
+@@ -253,7 +253,17 @@
+ #  define NATIVEFT DFNTF_LEIEEE
+ #endif
+ 
+-#if defined (powerpc) || defined (__ppc__) || defined __PPC
++#if defined(__ARMEL__)
++#  define NATIVEIT DFNTI_IBO
++#  define NATIVEFT DFNTF_LEIEEE
++#endif
++
++#if defined (powerpc) || defined (__powerpc__) || defined (__ppc__) || defined __PPC
++#  define NATIVEIT DFNTI_MBO
++#  define NATIVEFT DFNTF_BEIEEE
++#endif
++
++#if defined (__s390__) || defined (__s390x__)
+ #  define NATIVEIT DFNTI_MBO
+ #  define NATIVEFT DFNTF_BEIEEE
+ #endif
+@@ -276,6 +286,23 @@
+ #  define NATIVEFT DFNTF_BEIEEE
+ #endif
+ 
++#if defined (__hppa__)
++#  define NATIVEIT DFNTI_MBO
++#  define NATIVEFT DFNTF_BEIEEE
++#endif
++
++#if defined(__ARM__) || defined(__arm__)
++#if defined(__ARMEB__)
++#  define NATIVEIT DFNTI_MBO
++#  define NATIVEFT DFNTF_BEIEEE
++#endif
++
++#if defined(__ARMEL__)
++#  define NATIVEIT DFNTI_IBO
++#  define NATIVEFT DFNTF_LEIEEE
++#endif
++#endif
++
+ #ifndef NATIVEFT
+ #  error "Can't determine machine number format"
+ #endif
diff --git a/libccp4.spec b/libccp4.spec
index 94ca48d..808e032 100644
--- a/libccp4.spec
+++ b/libccp4.spec
@@ -6,6 +6,7 @@ License: LGPLv3
 Group: System Environment/Libraries
 URL: ftp://ftp.ccp4.ac.uk/opensource/
 Source0: ftp://ftp.ccp4.ac.uk/opensource/%{name}-%{version}.tar.gz
+Patch0: libccp4-ccp4_sysdep.patch
 BuildRequires: gcc-gfortran
 BuildRequires: m4
 BuildRequires: mmdb-devel
@@ -65,6 +66,7 @@ development.
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 %configure --enable-shared --disable-static
@@ -99,6 +101,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 %{_libdir}/pkgconfig/%{name}f.pc
 
 %changelog
+* Wed Aug 7 2013 Tim Fenn <tim.fenn at gmail.com> - 6.3.1-4
+- patch ccp4_sysdep to fix arm build
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.3.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list