Accepting request 155718 from devel:libraries:c_c++
- Update to new upstream release 0.13.3 * No changelog provided * Required by rtorrent-0.9.3 - Use more robust make install call - Build with -fno-strict-aliasing because the code is scaredly full of type punning dereferences (reflected in the build log). - Remove libtorrent-decls.diff, libtorrent-gcc4.3-0.12.2.patch: issues resolved upstream (forwarded request 155673 from jengelh) OBS-URL: https://build.opensuse.org/request/show/155718 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtorrent?expand=0&rev=4
This commit is contained in:
parent
bffe8fa7b5
commit
59ee52aba2
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:310a3d42b828cabd8cdb8fcfb1c737feba26a7e7bd3da0ed9145c04239a5c9b9
|
|
||||||
size 411023
|
|
3
libtorrent-0.13.3.tar.xz
Normal file
3
libtorrent-0.13.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a50fcd1337942e48b0856ff572a67b2ec52d15032092ebd0c4b3a1d0475461cb
|
||||||
|
size 464136
|
@ -1,87 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@medozas.de>
|
|
||||||
Date: 2012-01-31 11:09:58.559664592 +0100
|
|
||||||
|
|
||||||
Fix build errors regarding unknown snprintf, std::scanf,
|
|
||||||
ptrdiff_t, NULL.
|
|
||||||
|
|
||||||
---
|
|
||||||
src/data/memory_chunk.cc | 1 +
|
|
||||||
src/protocol/extensions.cc | 1 +
|
|
||||||
src/torrent/data/block.h | 1 +
|
|
||||||
src/torrent/data/block_transfer.h | 1 +
|
|
||||||
src/tracker/tracker_dht.cc | 1 +
|
|
||||||
src/tracker/tracker_udp.cc | 1 +
|
|
||||||
6 files changed, 6 insertions(+)
|
|
||||||
|
|
||||||
Index: libtorrent-0.12.2/src/data/memory_chunk.cc
|
|
||||||
===================================================================
|
|
||||||
--- libtorrent-0.12.2.orig/src/data/memory_chunk.cc
|
|
||||||
+++ libtorrent-0.12.2/src/data/memory_chunk.cc
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <cstddef>
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
Index: libtorrent-0.12.2/src/protocol/extensions.cc
|
|
||||||
===================================================================
|
|
||||||
--- libtorrent-0.12.2.orig/src/protocol/extensions.cc
|
|
||||||
+++ libtorrent-0.12.2/src/protocol/extensions.cc
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <cstdio>
|
|
||||||
#include <limits>
|
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
Index: libtorrent-0.12.2/src/torrent/data/block.h
|
|
||||||
===================================================================
|
|
||||||
--- libtorrent-0.12.2.orig/src/torrent/data/block.h
|
|
||||||
+++ libtorrent-0.12.2/src/torrent/data/block.h
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#ifndef LIBTORRENT_BLOCK_H
|
|
||||||
#define LIBTORRENT_BLOCK_H
|
|
||||||
|
|
||||||
+#include <cstdlib>
|
|
||||||
#include <vector>
|
|
||||||
#include <torrent/common.h>
|
|
||||||
#include <torrent/data/block_transfer.h>
|
|
||||||
Index: libtorrent-0.12.2/src/torrent/data/block_transfer.h
|
|
||||||
===================================================================
|
|
||||||
--- libtorrent-0.12.2.orig/src/torrent/data/block_transfer.h
|
|
||||||
+++ libtorrent-0.12.2/src/torrent/data/block_transfer.h
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#ifndef LIBTORRENT_BLOCK_TRANSFER_H
|
|
||||||
#define LIBTORRENT_BLOCK_TRANSFER_H
|
|
||||||
|
|
||||||
+#include <cstdlib>
|
|
||||||
#include <torrent/common.h>
|
|
||||||
#include <torrent/data/piece.h>
|
|
||||||
|
|
||||||
Index: libtorrent-0.12.2/src/tracker/tracker_dht.cc
|
|
||||||
===================================================================
|
|
||||||
--- libtorrent-0.12.2.orig/src/tracker/tracker_dht.cc
|
|
||||||
+++ libtorrent-0.12.2/src/tracker/tracker_dht.cc
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <cstdio>
|
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
#include "dht/dht_router.h"
|
|
||||||
Index: libtorrent-0.12.2/src/tracker/tracker_udp.cc
|
|
||||||
===================================================================
|
|
||||||
--- libtorrent-0.12.2.orig/src/tracker/tracker_udp.cc
|
|
||||||
+++ libtorrent-0.12.2/src/tracker/tracker_udp.cc
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <cstdio>
|
|
||||||
#include <sigc++/adaptors/bind.h>
|
|
||||||
#include <torrent/connection_manager.h>
|
|
||||||
|
|
@ -1,97 +0,0 @@
|
|||||||
Index: rak/functional.h
|
|
||||||
===================================================================
|
|
||||||
--- rak/functional.h.orig 2008-05-07 14:19:14.000000000 +0200
|
|
||||||
+++ rak/functional.h 2009-05-09 17:00:38.000000000 +0200
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#ifndef RAK_FUNCTIONAL_H
|
|
||||||
#define RAK_FUNCTIONAL_H
|
|
||||||
|
|
||||||
+#include <cstddef>
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
namespace rak {
|
|
||||||
Index: src/data/chunk.cc
|
|
||||||
===================================================================
|
|
||||||
--- src/data/chunk.cc.orig 2008-05-07 14:19:13.000000000 +0200
|
|
||||||
+++ src/data/chunk.cc 2009-05-09 17:00:24.000000000 +0200
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <cstring>
|
|
||||||
#include <algorithm>
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
Index: src/data/chunk_list.h
|
|
||||||
===================================================================
|
|
||||||
--- src/data/chunk_list.h.orig 2008-05-07 14:19:13.000000000 +0200
|
|
||||||
+++ src/data/chunk_list.h 2009-05-09 17:01:02.000000000 +0200
|
|
||||||
@@ -38,6 +38,7 @@
|
|
||||||
#define LIBTORRENT_DATA_CHUNK_LIST_H
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
+#include <string>
|
|
||||||
#include <rak/error_number.h>
|
|
||||||
#include <rak/functional.h>
|
|
||||||
|
|
||||||
Index: src/net/address_list.cc
|
|
||||||
===================================================================
|
|
||||||
--- src/net/address_list.cc.orig 2008-05-07 14:19:12.000000000 +0200
|
|
||||||
+++ src/net/address_list.cc 2009-05-09 17:01:29.000000000 +0200
|
|
||||||
@@ -36,6 +36,8 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <algorithm>
|
|
||||||
+
|
|
||||||
#include <rak/functional.h>
|
|
||||||
|
|
||||||
#include "download/download_info.h" // for SocketAddressCompact
|
|
||||||
Index: src/torrent/data/file_list_iterator.h
|
|
||||||
===================================================================
|
|
||||||
--- src/torrent/data/file_list_iterator.h.orig 2008-05-07 14:19:13.000000000 +0200
|
|
||||||
+++ src/torrent/data/file_list_iterator.h 2009-05-09 17:02:03.000000000 +0200
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#ifndef LIBTORRENT_FILE_LIST_ITERATOR_H
|
|
||||||
#define LIBTORRENT_FILE_LIST_ITERATOR_H
|
|
||||||
|
|
||||||
+#include <cstdlib>
|
|
||||||
#include <torrent/common.h>
|
|
||||||
#include <torrent/data/file_list.h>
|
|
||||||
|
|
||||||
Index: src/torrent/exceptions.cc
|
|
||||||
===================================================================
|
|
||||||
--- src/torrent/exceptions.cc.orig 2008-05-07 14:19:13.000000000 +0200
|
|
||||||
+++ src/torrent/exceptions.cc 2009-05-09 17:02:28.000000000 +0200
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <cerrno>
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
#include "exceptions.h"
|
|
||||||
|
|
||||||
Index: src/torrent/tracker_list.h
|
|
||||||
===================================================================
|
|
||||||
--- src/torrent/tracker_list.h.orig 2008-05-07 14:19:13.000000000 +0200
|
|
||||||
+++ src/torrent/tracker_list.h 2009-05-09 17:02:51.000000000 +0200
|
|
||||||
@@ -38,6 +38,7 @@
|
|
||||||
#define LIBTORRENT_TRACKER_LIST_H
|
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
+#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <torrent/common.h>
|
|
||||||
|
|
||||||
Index: src/utils/diffie_hellman.cc
|
|
||||||
===================================================================
|
|
||||||
--- src/utils/diffie_hellman.cc.orig 2008-05-07 14:19:12.000000000 +0200
|
|
||||||
+++ src/utils/diffie_hellman.cc 2009-05-09 17:03:16.000000000 +0200
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
+#include <cstring>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#ifdef USE_OPENSSL
|
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 8 03:40:09 UTC 2013 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update to new upstream release 0.13.3
|
||||||
|
* No changelog provided
|
||||||
|
* Required by rtorrent-0.9.3
|
||||||
|
- Use more robust make install call
|
||||||
|
- Build with -fno-strict-aliasing because the code is scaredly
|
||||||
|
full of type punning dereferences (reflected in the build log).
|
||||||
|
- Remove libtorrent-decls.diff, libtorrent-gcc4.3-0.12.2.patch:
|
||||||
|
issues resolved upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 7 09:29:56 UTC 2012 - cfarrell@suse.com
|
Wed Mar 7 09:29:56 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libtorrent
|
# spec file for package libtorrent
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -14,23 +14,25 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
%define soname 9
|
|
||||||
|
|
||||||
Name: libtorrent
|
Name: libtorrent
|
||||||
Version: 0.12.2
|
Version: 0.13.3
|
||||||
Release: 1.0
|
Release: 0
|
||||||
|
%define soname 17
|
||||||
|
Summary: A BitTorrent library written in C++ for *nix
|
||||||
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
||||||
|
Group: Productivity/Networking/File-Sharing
|
||||||
Url: http://libtorrent.rakshasa.no/
|
Url: http://libtorrent.rakshasa.no/
|
||||||
Source: %{name}-%{version}.tar.bz2
|
|
||||||
Patch1: libtorrent-gcc4.3-0.12.2.patch
|
#Git-Clone: git://github.com/rakshasa/libtorrent
|
||||||
Patch2: libtorrent-decls.diff
|
Source: %name-%version.tar.xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libsigc++2-devel
|
BuildRequires: libsigc++2-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
Summary: A BitTorrent library written in C++ for *nix
|
BuildRequires: xz
|
||||||
License: SUSE-GPL-2.0+-with-openssl-exception
|
|
||||||
Group: Productivity/Networking/File Sharing
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
|
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
|
||||||
@ -42,25 +44,25 @@ Group: System/Libraries
|
|||||||
%description -n %{name}%{soname}
|
%description -n %{name}%{soname}
|
||||||
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
|
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
|
||||||
|
|
||||||
%package -n %{name}-devel
|
%package devel
|
||||||
Requires: %{name}%{soname} = %{version}
|
Requires: %{name}%{soname} = %{version}
|
||||||
Summary: A BitTorrent library written in C++ for *nix
|
Summary: A BitTorrent library written in C++ for *nix
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description -n %{name}-devel
|
%description devel
|
||||||
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
|
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 1 -p0
|
|
||||||
%patch -P 2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
|
export CXXFLAGS="$CFLAGS"
|
||||||
%configure --enable-ipv6 --with-posix-fallocate
|
%configure --enable-ipv6 --with-posix-fallocate
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make install DESTDIR="%buildroot"
|
||||||
find "%{buildroot}" -type f -name "*.la" -delete
|
find "%{buildroot}" -type f -name "*.la" -delete
|
||||||
|
|
||||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user