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..a73b5b1 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 +Patch1: 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 -P 1 -p1 %build if [ ! -e configure ]; then @@ -84,7 +86,7 @@ fi; make %{?_smp_mflags} %install -%makeinstall +make install DESTDIR="%buildroot" %post -n %lname -p /sbin/ldconfig diff --git a/platform.patch b/platform.patch new file mode 100644 index 0000000..5bada4b --- /dev/null +++ b/platform.patch @@ -0,0 +1,16 @@ +From: Andreas Schwab +Date: Sun, 3 Mar 2013 20:19:46 +0000 + +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