From 82cae3bd91da6da53fba2a828cc397b67fd9f03554d37ba9e64ecd90f2455282 Mon Sep 17 00:00:00 2001 From: Mariusz Fik Date: Sun, 16 Oct 2011 16:40:58 +0000 Subject: [PATCH] Accepting request 88063 from home:coolo:branches:openSUSE:Factory - fix build for factory OBS-URL: https://build.opensuse.org/request/show/88063 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=5 --- libtorrent-rasterbar-0.15.6.diff | 12 ++++++++++++ libtorrent-rasterbar.changes | 5 +++++ libtorrent-rasterbar.spec | 11 ++--------- 3 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 libtorrent-rasterbar-0.15.6.diff diff --git a/libtorrent-rasterbar-0.15.6.diff b/libtorrent-rasterbar-0.15.6.diff new file mode 100644 index 0000000..2edd7f3 --- /dev/null +++ b/libtorrent-rasterbar-0.15.6.diff @@ -0,0 +1,12 @@ +Index: libtorrent-rasterbar-0.15.6/src/file.cpp +=================================================================== +--- libtorrent-rasterbar-0.15.6.orig/src/file.cpp 2011-02-22 01:18:05.000000000 +0100 ++++ libtorrent-rasterbar-0.15.6/src/file.cpp 2011-10-16 12:03:38.973556698 +0200 +@@ -1082,6 +1082,7 @@ typedef struct _FILE_ALLOCATED_RANGE_BUF + #else + return start; + #endif ++ return start; + } + + } diff --git a/libtorrent-rasterbar.changes b/libtorrent-rasterbar.changes index f839984..a7e04e1 100644 --- a/libtorrent-rasterbar.changes +++ b/libtorrent-rasterbar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 16 10:44:25 UTC 2011 - coolo@suse.com + +- fix build for factory + ------------------------------------------------------------------- Tue Jun 7 15:21:57 UTC 2011 - mrueckert@suse.de diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index cc772d6..5e866d4 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -30,6 +30,7 @@ Summary: Libtorrent is a C++ implementation of the BitTorrent protocol Url: http://www.rasterbar.com/products/libtorrent/ Group: Development/Libraries/C and C++ Source: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz +Patch0: libtorrent-rasterbar-0.15.6.diff BuildRequires: boost-devel >= 1.36 BuildRequires: gcc-c++ BuildRequires: libGeoIP-devel @@ -50,9 +51,6 @@ The main goals of libtorrent are: This package holds the sample client and example files for libtorrent-rasterbar. %package -n %{name}%{_soname} - - -License: BSD Summary: Libtorrent is a C++ implementation of the BitTorrent protocol Group: System/Libraries @@ -65,8 +63,6 @@ The main goals of libtorrent are: * to be very easy to use %package -n python-%{name} - - Summary: Python Bindings for libtorrent-rasterbar Group: Development/Libraries/Python Requires: python >= %{py_ver} @@ -77,8 +73,6 @@ Python Bindings for package libtorrent-rasterbar. %if %{with examples} %package -n %{name}-tools - - Summary: Example tools from libtorrent-rasterbar Group: Development/Libraries/C and C++ @@ -87,7 +81,6 @@ Example tools from the libtorrent-rasterbar package. %endif %package devel -License: BSD Summary: Libtorrent is a C++ implementation of the BitTorrent protocol Group: Development/Libraries/C and C++ Requires: %{name}%{_soname} = %{version} @@ -108,7 +101,6 @@ The main goals of libtorrent are: This package holds the development files for libtorrent-rasterbar. %package doc -License: BSD Summary: Documentation for libtorrent-rasterbar Group: Documentation/HTML @@ -117,6 +109,7 @@ Documentation for package libtorrent-rasterbar. %prep %setup -q +%patch0 -p1 %build export CFLAGS="%{optflags} -g -fno-strict-aliasing"