From 7d262c3026d367b20250d500a2438a9e383d9fc5 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Feb 12 2015 13:12:20 +0000 Subject: add patch to fix build against swig --- diff --git a/libgpod-fixswig.patch b/libgpod-fixswig.patch new file mode 100644 index 0000000..23e49c5 --- /dev/null +++ b/libgpod-fixswig.patch @@ -0,0 +1,14 @@ +--- libgpod-0.8.3/bindings/python/gpod.i.in 2015-02-12 08:43:11.058975384 +0100 ++++ libgpod-0.8.3/bindings/python/gpod.i.in.orig 2015-02-12 08:44:08.185561253 +0100 +@@ -298,9 +298,11 @@ PyObject* sw_get_photo(GList *list, gint + %include "gpod_doc.i" + %include "@top_builddir@/config.h" + ++/* + # be nicer to decode these utf8 strings into Unicode objects in the C + # layer. Here we are leaving it to the Python side, and just giving + # them utf8 encoded Strings. ++*/ + typedef char gchar; + + %typemap(in) time_t { diff --git a/libgpod.spec b/libgpod.spec index 0ed7602..e2f0b89 100644 --- a/libgpod.spec +++ b/libgpod.spec @@ -22,8 +22,8 @@ URL: http://www.gtkpod.org/libgpod.html Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 # upstreamable patch: reduce pkgconfig-related overlinking -# -Patch50: libgpod-0.8.2-pkgconfig_overlinking.patch +Patch0: libgpod-0.8.2-pkgconfig_overlinking.patch +Patch1: libgpod-fixswig.patch BuildRequires: automake libtool BuildRequires: docbook-style-xsl @@ -121,7 +121,8 @@ libgpod-sharp. %prep %setup -q -%patch50 -p1 -b .pkgconfig_overlinking +%patch0 -p1 -b .pkgconfig_overlinking +%patch1 -p1 -b .swig #autoreconf -f