Accepting request 131257 from openSUSE:Factory:ARM

- add support for arm

OBS-URL: https://build.opensuse.org/request/show/131257
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libEMF?expand=0&rev=7
This commit is contained in:
Cristian Morales Vega 2012-08-21 14:37:40 +00:00 committed by Git OBS Bridge
parent 4b8aeae287
commit f5fd21e38f
3 changed files with 32 additions and 1 deletions

24
fix-arm.patch Normal file
View File

@ -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:

View File

@ -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

View File

@ -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\