diff --git a/fix-arm.patch b/fix-arm.patch new file mode 100644 index 0000000..68eb411 --- /dev/null +++ b/fix-arm.patch @@ -0,0 +1,24 @@ +Index: libEMF-1.0.6/include/libEMF/wine/winnt.h +=================================================================== +--- libEMF-1.0.6.orig/include/libEMF/wine/winnt.h ++++ libEMF-1.0.6/include/libEMF/wine/winnt.h +@@ -45,6 +45,10 @@ + # define WORDS_BIGENDIAN + # define BITFIELDS_BIGENDIAN + # undef ALLOW_UNALIGNED_ACCESS ++#elif defined(__arm__) ++# undef WORDS_BIGENDIAN ++# undef BITFIELDS_BIGENDIAN ++# undef ALLOW_UNALIGNED_ACCESS + #elif !defined(RC_INVOKED) + # error Unknown CPU architecture! + #endif +@@ -1213,7 +1217,7 @@ typedef struct _STACK_FRAME_HEADER + + #endif /* __PPC__ */ + +-#ifdef __sparc__ ++#if defined(__sparc__) || defined(__arm__) + + /* + * FIXME: diff --git a/libEMF.changes b/libEMF.changes index 687ec03..1d63512 100644 --- a/libEMF.changes +++ b/libEMF.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 20 23:04:17 UTC 2012 - agraf@suse.com + +- add support for arm + ------------------------------------------------------------------- Mon Jun 4 18:22:36 UTC 2012 - dmueller@suse.com diff --git a/libEMF.spec b/libEMF.spec index 77df652..5a18741 100644 --- a/libEMF.spec +++ b/libEMF.spec @@ -21,13 +21,14 @@ BuildRequires: gcc-c++ Version: 1.0.6 Release: 0 Source: %{name}-%{version}.tar.gz +Patch0: fix-arm.patch Url: http://libemf.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Library for Manipulation with Enhanced MetaFile (EMF, ECMA-234) License: LGPL-2.1+ ; GPL-2.0+ Group: System/Libraries # taken from includes/wine/winnt.h -ExclusiveArch: %ix86 x86_64 ppc64 sparc +ExclusiveArch: %ix86 x86_64 ppc64 sparc %arm %description LibEMF is a C/C++ library that provides a drawing toolkit based on @@ -90,6 +91,7 @@ SO/OO graphics object. %prep %setup -q +%patch0 -p1 %build %configure\