forked from pool/libtorrent-rasterbar
- Update to version 1.1.7.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=104
This commit is contained in:
parent
157ba3daef
commit
b51e70c3e4
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b7c74d004bd121bd6e9f8975ee1fec3c95c74044c6a6250f6b07f259f55121ef
|
|
||||||
size 3846476
|
|
77
libtorrent-rasterbar-1.1.7-boost-1.67.patch
Normal file
77
libtorrent-rasterbar-1.1.7-boost-1.67.patch
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
--- a/include/libtorrent/disk_buffer_pool.hpp
|
||||||
|
+++ b/include/libtorrent/disk_buffer_pool.hpp
|
||||||
|
@@ -40,7 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#include <vector>
|
||||||
|
#include <boost/shared_ptr.hpp>
|
||||||
|
#include <boost/function.hpp>
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
|
||||||
|
#ifndef TORRENT_DISABLE_POOL_ALLOCATOR
|
||||||
|
#include "libtorrent/allocator.hpp" // for page_aligned_allocator
|
||||||
|
--- a/include/libtorrent/ip_filter.hpp
|
||||||
|
+++ b/include/libtorrent/ip_filter.hpp
|
||||||
|
@@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include <boost/limits.hpp>
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
#include <boost/cstdint.hpp>
|
||||||
|
#include <boost/tuple/tuple.hpp>
|
||||||
|
|
||||||
|
--- a/include/libtorrent/kademlia/routing_table.hpp
|
||||||
|
+++ b/include/libtorrent/kademlia/routing_table.hpp
|
||||||
|
@@ -39,7 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#include <set>
|
||||||
|
|
||||||
|
#include <boost/cstdint.hpp>
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
#include <boost/tuple/tuple.hpp>
|
||||||
|
#include <boost/array.hpp>
|
||||||
|
#include <boost/noncopyable.hpp>
|
||||||
|
--- a/src/ip_filter.cpp
|
||||||
|
+++ b/src/ip_filter.cpp
|
||||||
|
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "libtorrent/ip_filter.hpp"
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
|
||||||
|
|
||||||
|
namespace libtorrent
|
||||||
|
--- a/src/peer_list.cpp
|
||||||
|
+++ b/src/peer_list.cpp
|
||||||
|
@@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#include "libtorrent/aux_/disable_warnings_push.hpp"
|
||||||
|
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
|
||||||
|
#include "libtorrent/aux_/disable_warnings_pop.hpp"
|
||||||
|
|
||||||
|
--- a/test/test_ip_filter.cpp
|
||||||
|
+++ b/test/test_ip_filter.cpp
|
||||||
|
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "libtorrent/ip_filter.hpp"
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
|
||||||
|
#include "test.hpp"
|
||||||
|
#include "settings.hpp"
|
||||||
|
--- a/test/test_storage.cpp
|
||||||
|
+++ b/test/test_storage.cpp
|
||||||
|
@@ -45,7 +45,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#include "libtorrent/torrent_info.hpp"
|
||||||
|
|
||||||
|
#include <boost/make_shared.hpp>
|
||||||
|
-#include <boost/utility.hpp>
|
||||||
|
+#include <boost/next_prior.hpp>
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
|
||||||
|
#include <iostream>
|
3
libtorrent-rasterbar-1.1.7.tar.gz
Normal file
3
libtorrent-rasterbar-1.1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8133bf683308decc24da22aff17437e36c522d8959bcf934e94cf7a3a567f3a9
|
||||||
|
size 3951887
|
@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 17 08:46:45 UTC 2018 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update to version 1.1.7:
|
||||||
|
* Don't perform DNS lookups for the DHT bootstrap unless DHT is
|
||||||
|
enabled.
|
||||||
|
* Fix an issue where setting file/piece priority would stop
|
||||||
|
checking.
|
||||||
|
* Expose post_dht_stats() to python bindings.
|
||||||
|
* Fix backwards compatibility to downloads without partfiles.
|
||||||
|
* Improve part-file related error messages.
|
||||||
|
* Fix reporting &redundant= in tracker announces.
|
||||||
|
* Fix tie-break in duplicate peer connection disconnect logic.
|
||||||
|
* Fix an issue with SSL tracker connections left in CLOSE_WAIT
|
||||||
|
state.
|
||||||
|
* Defer truncating existing files until the first time we write
|
||||||
|
to them.
|
||||||
|
* Fix an issue when receiving a torrent with 0-sized padfiles as
|
||||||
|
a magnet link.
|
||||||
|
* Fix an issue resuming 1.0.x downloads with a file priority 0.
|
||||||
|
* Fix torrent_status::next_announce.
|
||||||
|
* Fix pad-file scalability issue.
|
||||||
|
* Made coalesce_reads/coalesce_writes settings take effect.
|
||||||
|
* Use unique peer_ids per connection.
|
||||||
|
* Fix tracker connection bind issue for IPv6 trackers.
|
||||||
|
* Fix error handling of some merkle torrents.
|
||||||
|
* Fix error handling of unsupported hard-links.
|
||||||
|
- Add libtorrent-rasterbar-1.1.7-boost-1.67.patch: add Boost 1.67+
|
||||||
|
support (boo#1089812).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 4 08:08:44 UTC 2018 - virtuousfox@gmail.com
|
Thu Jan 4 08:08:44 UTC 2018 - virtuousfox@gmail.com
|
||||||
|
|
||||||
|
@ -18,22 +18,24 @@
|
|||||||
|
|
||||||
%define _name libtorrent
|
%define _name libtorrent
|
||||||
%define sover 9
|
%define sover 9
|
||||||
%define _version 1_1_6
|
%define _version 1_1_7
|
||||||
%bcond_with examples
|
%bcond_with examples
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
Name: libtorrent-rasterbar
|
Name: libtorrent-rasterbar
|
||||||
Version: 1.1.6
|
Version: 1.1.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://libtorrent.org/
|
URL: http://libtorrent.org/
|
||||||
Source: https://github.com/arvidn/%{_name}/releases/download/%{_name}-%{_version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/arvidn/%{_name}/releases/download/%{_name}-%{_version}/%{name}-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM libtorrent-rasterbar-1.1.7-boost-1.67.patch boo#1089812 -- Add Boost 1.67+ support.
|
||||||
|
Patch0: libtorrent-rasterbar-1.1.7-boost-1.67.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
BuildRequires: libboost_chrono-devel
|
BuildRequires: libboost_chrono-devel
|
||||||
BuildRequires: libboost_python-devel
|
BuildRequires: libboost_python-devel
|
||||||
BuildRequires: libboost_python3-devel
|
BuildRequires: libboost_python3-devel
|
||||||
@ -77,7 +79,7 @@ The main goals of libtorrent-rasterbar are:
|
|||||||
|
|
||||||
%package -n python2-%{name}
|
%package -n python2-%{name}
|
||||||
Summary: Python Bindings for libtorrent-rasterbar
|
Summary: Python Bindings for libtorrent-rasterbar
|
||||||
# python-libtorrent-rasterbar was last used in openSUSE Leap 14.2.
|
# python-libtorrent-rasterbar was last used in openSUSE Leap 42.2.
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Provides: python-%{name} = %{version}
|
Provides: python-%{name} = %{version}
|
||||||
Obsoletes: python-%{name} < %{version}
|
Obsoletes: python-%{name} < %{version}
|
||||||
@ -85,7 +87,7 @@ Obsoletes: python-%{name} < %{version}
|
|||||||
%description -n python2-%{name}
|
%description -n python2-%{name}
|
||||||
Python Bindings for the libtorrent-rasterbar package.
|
Python Bindings for the libtorrent-rasterbar package.
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python Bindings for libtorrent-rasterbar
|
Summary: Python Bindings for libtorrent-rasterbar
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -109,7 +111,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: %{name}%{sover} = %{version}
|
Requires: %{name}%{sover} = %{version}
|
||||||
Requires: gcc-c++
|
Requires: gcc-c++
|
||||||
Requires: pkgconfig(openssl)
|
Requires: pkgconfig(openssl)
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
Requires: libboost_headers-devel
|
Requires: libboost_headers-devel
|
||||||
%else
|
%else
|
||||||
Requires: boost-devel >= 1.54
|
Requires: boost-devel >= 1.54
|
||||||
@ -137,11 +139,12 @@ Documentation for the libtorrent-rasterbar package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} < 1500
|
||||||
export CXXFLAGS="$CXXFLAGS -std=c++11"
|
export CXXFLAGS="$CXXFLAGS -std=c++11"
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
# Some architectures require explicit linkage to libboost_atomic on boost 1.55 and older.
|
# Some architectures require explicit linkage to libboost_atomic on boost 1.55 and older.
|
||||||
@ -150,7 +153,7 @@ export LIBS="$LIBS -lboost_atomic"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _configure ../configure
|
%global _configure ../configure
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
for py in python python3; do
|
for py in python python3; do
|
||||||
%else
|
%else
|
||||||
for py in python; do
|
for py in python; do
|
||||||
@ -176,7 +179,7 @@ done
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -C build-python
|
%make_install -C build-python
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
%make_install -C build-python3
|
%make_install -C build-python3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -195,7 +198,7 @@ rm -v %{buildroot}%{_bindir}/{client_test,connection_tester,enum_if} \
|
|||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
make check %{?_smp_mflags} V=1 -C build-python
|
make check %{?_smp_mflags} V=1 -C build-python
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
make check %{?_smp_mflags} V=1 -C build-python3
|
make check %{?_smp_mflags} V=1 -C build-python3
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@ -212,14 +215,19 @@ make check %{?_smp_mflags} V=1 -C build-python3
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n %{name}%{sover}
|
%files -n %{name}%{sover}
|
||||||
%doc AUTHORS ChangeLog COPYING
|
%if 0%{?suse_version} >= 1500
|
||||||
|
%license COPYING
|
||||||
|
%else
|
||||||
|
%doc COPYING
|
||||||
|
%endif
|
||||||
|
%doc AUTHORS ChangeLog
|
||||||
%{_libdir}/%{name}.so.%{sover}*
|
%{_libdir}/%{name}.so.%{sover}*
|
||||||
|
|
||||||
%files -n python2-%{name}
|
%files -n python2-%{name}
|
||||||
%{python_sitearch}/%{_name}*.so
|
%{python_sitearch}/%{_name}*.so
|
||||||
%{python_sitearch}/python_%{_name}-*
|
%{python_sitearch}/python_%{_name}-*
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%{python3_sitearch}/%{_name}*.so
|
%{python3_sitearch}/%{_name}*.so
|
||||||
%{python3_sitearch}/python_%{_name}-*
|
%{python3_sitearch}/python_%{_name}-*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user