From 97bc1f5dce18eab5f642c11f9433e39a7e1dbe4e91ebd302a29559fec32ec1fd Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 3 Mar 2013 21:49:22 +0000 Subject: [PATCH] Accepting request 157172 from devel:ARM:AArch64:Factory - platform.patch: Fix invalid cpp directive OBS-URL: https://build.opensuse.org/request/show/157172 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmowgli2?expand=0&rev=4 --- libmowgli2.changes | 6 ++++++ libmowgli2.spec | 4 +++- platform.patch | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 platform.patch diff --git a/libmowgli2.changes b/libmowgli2.changes index 59bf328..fd723ed 100644 --- a/libmowgli2.changes +++ b/libmowgli2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Mar 3 19:56:23 UTC 2013 - schwab@suse.de + +- platform.patch: + Fix invalid cpp directive + ------------------------------------------------------------------- Mon Jun 11 11:59:46 UTC 2012 - cfarrell@suse.com diff --git a/libmowgli2.spec b/libmowgli2.spec index 9d71373..5adb66f 100644 --- a/libmowgli2.spec +++ b/libmowgli2.spec @@ -1,7 +1,7 @@ # # spec file for package libmowgli2 # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ Url: http://atheme.org/project/mowgli #Git-Clone: git://github.com/atheme/libmowgli-2 #DL-URL: http://atheme.org/downloads/libmowgli-2.0.0.tar.gz Source: libmowgli-%version.tar.xz +Patch: platform.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkg-config BuildRequires: xz @@ -75,6 +76,7 @@ This package holds the development files for libmowgli v2. %prep %setup -qn libmowgli-%version +%patch -p1 %build if [ ! -e configure ]; then diff --git a/platform.patch b/platform.patch new file mode 100644 index 0000000..efce7d4 --- /dev/null +++ b/platform.patch @@ -0,0 +1,13 @@ +Index: libmowgli-2.0.0/src/libmowgli/platform/machine.h +=================================================================== +--- libmowgli-2.0.0.orig/src/libmowgli/platform/machine.h ++++ libmowgli-2.0.0/src/libmowgli/platform/machine.h +@@ -180,7 +180,7 @@ + #if defined _LP64 || defined __LP64 + #define MOWGLI_CPU_BITS 64 + #define MOWGLI_CPU_BITS_64 +-#elif ++#else + #define MOWGLI_CPU_BITS 32 + #define MOWGLI_CPU_BITS_32 + #endif