add patch to fix build against swig

This commit is contained in:
Peter Robinson 2015-02-12 13:12:20 +00:00
parent 1c6b0282d9
commit 7d262c3026
2 changed files with 18 additions and 3 deletions

14
libgpod-fixswig.patch Normal file
View File

@ -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 {

View File

@ -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