[packages/libtorrent] Up to 0.15.5 (stable)
arekm
arekm at pld-linux.org
Mon Jul 7 14:33:30 CEST 2025
commit cab1c42f1b11e2b1eb61e8e4a6b419af47cee92e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jul 7 14:33:16 2025 +0200
Up to 0.15.5 (stable)
libtorrent-build.patch | 35 ------------------------
libtorrent-client_list.patch | 65 +++++++++++++++-----------------------------
libtorrent.spec | 14 ++++------
3 files changed, 28 insertions(+), 86 deletions(-)
---
diff --git a/libtorrent.spec b/libtorrent.spec
index e17ff58..453c0fd 100644
--- a/libtorrent.spec
+++ b/libtorrent.spec
@@ -7,15 +7,14 @@ Summary: LibTorrent - a BitTorrent library written in C++ for Unix
Summary(pl.UTF-8): LibTorrent - biblioteka BitTorrenta napisana w C++ dla Uniksa
Name: libtorrent
# keep stable line, see URL below
-Version: 0.13.8
-Release: 2
+Version: 0.15.5
+Release: 1
Epoch: 1
License: GPL v2+
Group: Libraries
-Source0: http://rtorrent.net/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: ca02e624fde0d704780085987010f99a
+Source0: https://github.com/rakshasa/rtorrent/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: e9c247362e3fa4534aa3041c057c6db4
Patch0: %{name}-client_list.patch
-Patch1: %{name}-build.patch
URL: https://github.com/rakshasa/rtorrent/wiki
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -75,8 +74,7 @@ if [ $(($2 % 2)) = 0 ]; then
exit 1
fi
%setup -q
-%patch0 -p1
-%patch1 -p1
+%patch -P0 -p1
%build
%{__libtoolize}
@@ -111,7 +109,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS README
%attr(755,root,root) %{_libdir}/libtorrent.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtorrent.so.21
+%attr(755,root,root) %ghost %{_libdir}/libtorrent.so.25
%files devel
%defattr(644,root,root,755)
diff --git a/libtorrent-build.patch b/libtorrent-build.patch
deleted file mode 100644
index 8a502fc..0000000
--- a/libtorrent-build.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- libtorrent-0.13.2/src/Makefile.am~ 2012-02-14 04:39:45.000000000 +0100
-+++ libtorrent-0.13.2/src/Makefile.am 2012-05-06 09:58:35.151581629 +0200
-@@ -23,7 +23,8 @@
- net/libsub_net.la \
- protocol/libsub_protocol.la \
- tracker/libsub_tracker.la \
-- utils/libsub_utils.la
-+ utils/libsub_utils.la \
-+ -lpthread -lz
-
- libtorrent_la_SOURCES = \
- globals.cc \
-diff -urN libtorrent-0.13.6.org/scripts/ax_check_zlib.m4 libtorrent-0.13.6/scripts/ax_check_zlib.m4
---- libtorrent-0.13.6.org/scripts/ax_check_zlib.m4 2015-08-08 17:01:32.000000000 +0200
-+++ libtorrent-0.13.6/scripts/ax_check_zlib.m4 2015-10-22 10:42:40.508124675 +0200
-@@ -104,10 +104,6 @@
-
- ZLIB_OLD_LDFLAGS=$LDFLAGS
- ZLIB_OLD_CPPFLAGS=$CPPFLAGS
-- if test -n "${ZLIB_HOME}"; then
-- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
-- CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
-- fi
- AC_LANG_SAVE
- AC_LANG_C
- AC_CHECK_LIB([z], [inflateEnd], [zlib_cv_libz=yes], [zlib_cv_libz=no])
-@@ -119,8 +115,6 @@
- # If both library and header were found, action-if-found
- #
- m4_ifblank([$1],[
-- CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
-- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
- LIBS="-lz $LIBS"
- AC_DEFINE([HAVE_LIBZ], [1],
- [Define to 1 if you have `z' library (-lz)])
diff --git a/libtorrent-client_list.patch b/libtorrent-client_list.patch
index c949396..069f87c 100644
--- a/libtorrent-client_list.patch
+++ b/libtorrent-client_list.patch
@@ -1,52 +1,31 @@
-diff -urNp -x '*.orig' libtorrent-0.13.8.org/src/torrent/peer/client_list.cc libtorrent-0.13.8/src/torrent/peer/client_list.cc
---- libtorrent-0.13.8.org/src/torrent/peer/client_list.cc 2019-07-19 13:44:08.000000000 +0200
-+++ libtorrent-0.13.8/src/torrent/peer/client_list.cc 2021-10-05 23:27:46.903393391 +0200
-@@ -75,8 +75,10 @@ ClientList::ClientList() {
- insert_helper(ClientInfo::TYPE_AZUREUS, "BS", NULL, NULL, "BTSlave");
- insert_helper(ClientInfo::TYPE_AZUREUS, "BT", NULL, NULL, "BBTor");
- insert_helper(ClientInfo::TYPE_AZUREUS, "CT", NULL, NULL, "CTorrent");
+--- libtorrent-0.15.5/src/torrent/peer/client_list.cc~ 2025-07-07 14:23:46.000000000 +0200
++++ libtorrent-0.15.5/src/torrent/peer/client_list.cc 2025-07-07 14:28:54.586475195 +0200
+@@ -60,7 +60,7 @@ ClientList::ClientList() {
+ insert_helper(ClientInfo::TYPE_AZUREUS, "qB", NULL, NULL, "qBittorrent");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "UT", NULL, NULL, "uTorrent");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "TR", NULL, NULL, "Transmission");
- insert_helper(ClientInfo::TYPE_AZUREUS, "DE", NULL, NULL, "DelugeTorrent");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "DE", NULL, NULL, "Deluge");
- insert_helper(ClientInfo::TYPE_AZUREUS, "ES", NULL, NULL, "Electric Sheep");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "FG", NULL, NULL, "FlashGet");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "LW", NULL, NULL, "LimeWire");
- insert_helper(ClientInfo::TYPE_AZUREUS, "LP", NULL, NULL, "Lphant");
- insert_helper(ClientInfo::TYPE_AZUREUS, "MT", NULL, NULL, "MoonlightTorrent");
- insert_helper(ClientInfo::TYPE_AZUREUS, "MP", NULL, NULL, "MooPolice");
-@@ -86,13 +88,13 @@ ClientList::ClientList() {
- insert_helper(ClientInfo::TYPE_AZUREUS, "SS", NULL, NULL, "SwarmScope");
- insert_helper(ClientInfo::TYPE_AZUREUS, "SB", NULL, NULL, "Swiftbit");
- insert_helper(ClientInfo::TYPE_AZUREUS, "TN", NULL, NULL, "TorrentDotNET");
-- insert_helper(ClientInfo::TYPE_AZUREUS, "TS", NULL, NULL, "Torrentstorm");
- insert_helper(ClientInfo::TYPE_AZUREUS, "TR", NULL, NULL, "Transmission");
-- insert_helper(ClientInfo::TYPE_AZUREUS, "XT", NULL, NULL, "XanTorrent");
-- insert_helper(ClientInfo::TYPE_AZUREUS, "ZT", NULL, NULL, "ZipTorrent");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "TS", NULL, NULL, "TorrentStorm");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "XL", NULL, NULL, "Xunlei");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "AZ", NULL, NULL, "Vuze");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "UM", NULL, NULL, "uTorrent Mac");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "LT", NULL, NULL, "libtorrent");
+@@ -70,6 +70,7 @@ ClientList::ClientList() {
+ insert_helper(ClientInfo::TYPE_AZUREUS, "BC", NULL, NULL, "BitComet");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "XL", NULL, NULL, "Xunlei");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "SD", NULL, NULL, "Xunlei");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "XX", NULL, NULL, "Xtorrent");
- insert_helper(ClientInfo::TYPE_COMPACT, "A", NULL, NULL, "ABC");
+ // Other clients.
+ insert_helper(ClientInfo::TYPE_AZUREUS, "7T", NULL, NULL, "aTorrent");
+@@ -146,7 +147,7 @@ ClientList::ClientList() {
+ insert_helper(ClientInfo::TYPE_AZUREUS, "RS", NULL, NULL, "Rufus");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "RT", NULL, NULL, "Retriever");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "RZ", NULL, NULL, "RezTorrent");
- insert_helper(ClientInfo::TYPE_COMPACT, "S", NULL, NULL, "Shadow's client");
+ insert_helper(ClientInfo::TYPE_COMPACT, "S", NULL, NULL, "Shadow's");
- insert_helper(ClientInfo::TYPE_COMPACT, "U", NULL, NULL, "UPnP NAT BitTorrent");
- insert_helper(ClientInfo::TYPE_COMPACT, "O", NULL, NULL, "Osprey Permaseed");
-
-@@ -102,10 +104,14 @@ ClientList::ClientList() {
- insert_helper(ClientInfo::TYPE_AZUREUS, "BG", NULL, NULL, "BTG");
- insert_helper(ClientInfo::TYPE_AZUREUS, "BR", NULL, NULL, "BitRocket");
- insert_helper(ClientInfo::TYPE_AZUREUS, "EB", NULL, NULL, "EBit");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "FC", NULL, NULL, "FileCroc");
- insert_helper(ClientInfo::TYPE_AZUREUS, "HL", NULL, NULL, "Halite");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "pX", NULL, NULL, "pHoeniX");
- insert_helper(ClientInfo::TYPE_AZUREUS, "qB", NULL, NULL, "qBittorrent");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "SN", NULL, NULL, "ShareNet");
- insert_helper(ClientInfo::TYPE_AZUREUS, "UL", NULL, NULL, "uLeecher!");
-- insert_helper(ClientInfo::TYPE_AZUREUS, "XL", NULL, NULL, "XeiLun");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "XT", NULL, NULL, "XanTorrent");
-+ insert_helper(ClientInfo::TYPE_AZUREUS, "ZT", NULL, NULL, "ZipTorrent");
-
- insert_helper(ClientInfo::TYPE_COMPACT, "R", NULL, NULL, "Tribler");
- }
+ insert_helper(ClientInfo::TYPE_AZUREUS, "S~", NULL, NULL, "Shareaza alpha/beta");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "SB", NULL, NULL, "SwiftBit");
+ insert_helper(ClientInfo::TYPE_AZUREUS, "SG", NULL, NULL, "GS Torrent");
@@ -171,6 +177,13 @@ ClientList::retrieve_id(ClientInfo* dest
std::isxdigit(id[3]) && std::isxdigit(id[4]) && std::isxdigit(id[5]) && std::isxdigit(id[6])) {
dest->set_type(ClientInfo::TYPE_AZUREUS);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libtorrent.git/commitdiff/cab1c42f1b11e2b1eb61e8e4a6b419af47cee92e
More information about the pld-cvs-commit
mailing list