diff --git a/gcc46_build_fix.patch b/gcc46_build_fix.patch new file mode 100644 index 0000000..8ff7be0 --- /dev/null +++ b/gcc46_build_fix.patch @@ -0,0 +1,10 @@ +--- swig/plist.i.orig 2011-05-17 00:10:03.034330863 +0200 ++++ swig/plist.i 2011-05-17 00:12:14.190736151 +0200 +@@ -4,6 +4,7 @@ + %{ + /* Includes the header in the wrapper code */ + #include ++ #include + %} + + %include "std_string.i" diff --git a/libplist.changes b/libplist.changes index 6884ddd..8d7244f 100644 --- a/libplist.changes +++ b/libplist.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 16 22:18:07 UTC 2011 - cgiboudeaux@gmx.com + +- Add gcc46_build_fix.patch. Fixes build with GCC4.6 + ------------------------------------------------------------------- Sun Mar 20 18:17:36 CEST 2011 - opensuse@sukimashita.com diff --git a/libplist.spec b/libplist.spec index 9be0249..49b87c7 100644 --- a/libplist.spec +++ b/libplist.spec @@ -34,6 +34,7 @@ BuildRequires: swig BuildRoot: %{_tmppath}/%{name}-%{version}-build #remove when pkgconfig is fixed to handle Requires.private correctly Patch0: libplist-1.4-pkgconfig.patch +Patch1: gcc46_build_fix.patch %description libplist is a library for handling Apple Binary and XML Property Lists. @@ -110,6 +111,7 @@ This package contains the python bindings. %prep %setup -q %patch0 +%patch1 %build export CFLAGS="%{optflags} -fno-strict-aliasing"