From fa2eb9be7fdf1159906a223b0b15802498baead9ddaed3597df64ac5c162c1b3 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 12 Dec 2013 09:44:22 +0000 Subject: [PATCH] Accepting request 210067 from home:uweigand:branches:multimedia:libs - ppc64le-support.patch: Support for powerpc64le OBS-URL: https://build.opensuse.org/request/show/210067 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libEMF?expand=0&rev=17 --- libEMF.changes | 5 +++++ libEMF.spec | 4 +++- ppc64le-support.patch | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ppc64le-support.patch diff --git a/libEMF.changes b/libEMF.changes index 56877c9..45cc3f1 100644 --- a/libEMF.changes +++ b/libEMF.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 9 18:14:07 UTC 2013 - uweigand@de.ibm.com + +- ppc64le-support.patch: Support for powerpc64le + ------------------------------------------------------------------- Thu Apr 11 08:20:34 UTC 2013 - mmeister@suse.com diff --git a/libEMF.spec b/libEMF.spec index 2187d28..7653657 100644 --- a/libEMF.spec +++ b/libEMF.spec @@ -22,13 +22,14 @@ Version: 1.0.7 Release: 0 Source: http://downloads.sourceforge.net/project/libemf/libemf/%{version}/%{name}-%{version}.tar.gz Patch: aarch64-support.patch +Patch2: ppc64le-support.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+ and GPL-2.0+ Group: System/Libraries # taken from includes/wine/winnt.h -ExclusiveArch: alpha %arm aarch64 %ix86 mips ppc ppc64 sparc s390 s390x x86_64 +ExclusiveArch: alpha %arm aarch64 %ix86 mips ppc ppc64 ppc64le sparc s390 s390x x86_64 %description LibEMF is a C/C++ library that provides a drawing toolkit based on @@ -92,6 +93,7 @@ SO/OO graphics object. %prep %setup -q %patch -p1 +%patch2 -p1 %build %configure\ diff --git a/ppc64le-support.patch b/ppc64le-support.patch new file mode 100644 index 0000000..8372c8b --- /dev/null +++ b/ppc64le-support.patch @@ -0,0 +1,20 @@ +Index: libEMF-1.0.7/include/libEMF/wine/winnt.h +=================================================================== +--- libEMF-1.0.7.orig/include/libEMF/wine/winnt.h ++++ libEMF-1.0.7/include/libEMF/wine/winnt.h +@@ -50,8 +50,13 @@ + # define BITFIELDS_BIGENDIAN + # undef ALLOW_UNALIGNED_ACCESS + #elif defined(__PPC__) +-# define WORDS_BIGENDIAN +-# define BITFIELDS_BIGENDIAN ++# ifdef __LITTLE_ENDIAN__ ++# undef WORDS_BIGENDIAN ++# undef BITFIELDS_BIGENDIAN ++# else ++# define WORDS_BIGENDIAN ++# define BITFIELDS_BIGENDIAN ++# endif + # undef ALLOW_UNALIGNED_ACCESS + #elif defined(__s390__) + # define WORDS_BIGENDIAN