From 0b6092cabc712a0cc31a4a19dcc8e9cb48d40911b6f52caf2508c817eed16ddd Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 23 Dec 2010 13:29:15 +0000 Subject: [PATCH] - fix build on sle11sp1 OBS-URL: https://build.opensuse.org/package/show/games:tools/mumble?expand=0&rev=2 --- 0001-fix-build-error-with-capability.h.diff | 24 +++++++++++++++++++++ mumble.changes | 5 +++++ mumble.spec | 10 +++++++-- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 0001-fix-build-error-with-capability.h.diff diff --git a/0001-fix-build-error-with-capability.h.diff b/0001-fix-build-error-with-capability.h.diff new file mode 100644 index 0000000..fa23873 --- /dev/null +++ b/0001-fix-build-error-with-capability.h.diff @@ -0,0 +1,24 @@ +From 18b8b6d42c9e8ed2964a312a8134adb482585e03 Mon Sep 17 00:00:00 2001 +From: Ludwig Nussel +Date: Thu, 23 Dec 2010 14:03:56 +0100 +Subject: [PATCH] fix build error with capability.h + +--- + src/murmur/murmur_pch.h | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/src/murmur/murmur_pch.h b/src/murmur/murmur_pch.h +index daf7884..27c38a1 100644 +--- a/src/murmur/murmur_pch.h ++++ b/src/murmur/murmur_pch.h +@@ -56,6 +56,7 @@ extern "C" { + #include + #include + #ifdef Q_OS_LINUX ++#include // needed to work around evil magic stuff in capability.h + #include + #include + #endif +-- +1.7.1 + diff --git a/mumble.changes b/mumble.changes index a4ce0e3..648544f 100644 --- a/mumble.changes +++ b/mumble.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 23 13:28:42 UTC 2010 - lnussel@suse.de + +- fix build on sle11sp1 + ------------------------------------------------------------------- Wed Dec 15 15:16:45 UTC 2010 - lnussel@suse.de diff --git a/mumble.spec b/mumble.spec index 0779ce4..faf9357 100644 --- a/mumble.spec +++ b/mumble.spec @@ -79,6 +79,7 @@ Source2: mumble-server.init Patch0: mumble-1.2.1-wizardpageorder.diff Patch1: 0003-fix-long-username-query.patch Patch2: 0004-fix-username-validation.patch +Patch3: 0001-fix-build-error-with-capability.h.diff Patch50: mumble-1.2.2-buildcompare.diff # hack, no clue about glx so no idea to fix this properly Patch99: mumble-1.1.4-sle10glx.diff @@ -116,6 +117,8 @@ Provides: mumble = %version # %if !%{with system_celt} Source50: http://downloads.xiph.org/releases/celt/celt-0.7.0.tar.gz +Source51: http://downloads.xiph.org/releases/celt/celt-0.9.0.tar.gz +Source52: http://downloads.xiph.org/releases/celt/celt-0.10.0.tar.gz %endif %endif @@ -146,6 +149,7 @@ won't be audible to other players. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 # %patch50 -p1 %if 0%{?suse_version} && 0%{?suse_version} < 1020 @@ -159,8 +163,10 @@ won't be audible to other players. %if 0%{?snapshot:1} tar -xzf %SOURCE50 sed -i -e 's/celt-0.6.1-build//;s/celt-0.6.2-build//' main.pro -rmdir celt-0.7.0-src -mv celt-0.7.0 celt-0.7.0-src +for v in 0.7.0 0.9.0 0.10.0; do + rmdir celt-$v-src + mv celt-$v celt-$v-src +done %endif %endif #