fix build with mono4

This commit is contained in:
Peter Robinson 2015-05-18 12:32:53 +01:00
parent 88a785add6
commit 98b831c993
2 changed files with 15 additions and 2 deletions

11
libgpod-0.8.3-mono4.patch Normal file
View File

@ -0,0 +1,11 @@
--- libgpod-0.8.3/m4/mono.m4.orig 2015-05-18 12:25:35.417699745 +0100
+++ libgpod-0.8.3/m4/mono.m4 2015-05-18 12:25:53.488079557 +0100
@@ -34,7 +34,7 @@
AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER],
[
- SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs)
+ SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs)
])
AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME],

View File

@ -24,6 +24,7 @@ Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2
# upstreamable patch: reduce pkgconfig-related overlinking
Patch0: libgpod-0.8.2-pkgconfig_overlinking.patch
Patch1: libgpod-fixswig.patch
Patch2: libgpod-0.8.3-mono4.patch
BuildRequires: automake libtool
BuildRequires: docbook-style-xsl
@ -123,14 +124,15 @@ libgpod-sharp.
%patch0 -p1 -b .pkgconfig_overlinking
%patch1 -p1 -b .swig
#autoreconf -f
%patch2 -p1 -b .mono4
# remove execute perms on the python examples as they'll be installed in %%doc
chmod -x bindings/python/examples/*.py
%build
autoreconf -vif
%configure --without-hal --enable-udev --with-temp-mount-dir=/run/%{name}
make %{?_smp_mflags} V=1