From ce97621e67a60af2e2ab77cefd21f937c2a6998820d43b187c338fc4244c574f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 29 Sep 2024 15:14:13 +0000 Subject: [PATCH 1/2] [info=8ac4eb2f719956e52c64c754330a56d5ef7128c6b534245f4e2f3f052b0bf7f9] OBS-URL: https://build.opensuse.org/package/show/filesharing/libtorrent?expand=0&rev=7 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _scmsync.obsinfo | 4 ++ build.specials.obscpio | 3 + libtorrent-0.13.8.tar.gz | 3 + libtorrent.changes | 121 +++++++++++++++++++++++++++++++++++++++ libtorrent.spec | 87 ++++++++++++++++++++++++++++ 7 files changed, 242 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 libtorrent-0.13.8.tar.gz create mode 100644 libtorrent.changes create mode 100644 libtorrent.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..fdda192 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1599343448 +commit: 8ac4eb2f719956e52c64c754330a56d5ef7128c6b534245f4e2f3f052b0bf7f9 +url: https://src.opensuse.org/jengelh/libtorrent +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..16b16ae --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1da19b37a888a8b30f4087a306b1e7612dcf9f3bc22b4464e310d3311819ff88 +size 256 diff --git a/libtorrent-0.13.8.tar.gz b/libtorrent-0.13.8.tar.gz new file mode 100644 index 0000000..3f6df1d --- /dev/null +++ b/libtorrent-0.13.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983 +size 834027 diff --git a/libtorrent.changes b/libtorrent.changes new file mode 100644 index 0000000..3cf955c --- /dev/null +++ b/libtorrent.changes @@ -0,0 +1,121 @@ +------------------------------------------------------------------- +Fri Sep 4 14:55:41 UTC 2020 - Jan Engelhardt + +- Remove outdated specfile constructs. + +------------------------------------------------------------------- +Wed Jul 24 17:52:33 UTC 2019 - hiwatari.seiji@gmail.com + +- Update to 0.13.8 + * Close log files when reusing a name. (pyroscope) + * Increased max timeout for tracker requests. + * Set max piece size 512mb. + * Switch to C++11 MRT RNG for random bytes. (lps-rocks) + * Added support for openssl 1.1. + * Fix honoring throttle.min_peers* settings in rtorrent. (chros) + * Improved failed tracker bencode parsing. (chros) + * Added example rtorrent.rc. (g0tmi1k) + * Added a temporary name filter. (Toff) + * Added 'log.close' command. + * Added 'd.tracker_announce.force' command. + * Added 'event.system.startup_done/shutdown' commands/events. (chros) + * Added 'd.custom.if_z' command. (pyroscope) + * Added 'd.multicall.filtered' command. (pyroscope) + * Added 'event.view.hide/show' commands. (pyroscope) + +- Update to 0.13.7 + * Fixed ip filter memory usage. (sallyswiss/chros73) + * Add space to fmt str in log_gz_file_write. (pastly) + * Fix compilation issue with gcc v6.x and empty CXXFLAGS. (chros73) + * Fix BEP7 compatibility with IPv6 trackers and IPv4 peers. + * Include SCGI/XMLRPC example in rtorrent.rc. (ss23) + * Handle SIGHUP like SIGINT. (pyroscope) + * Fix Throttle args. (chros73) + * Fix missing ranlib - not defined but used. (duraki) + * Fix no // are at start of expanded paths. (pyroscope) + * Fix ncurses header include. (theirix) + * Fix segfault when viewing a magnet download in the leeching view. (slingamn) + +------------------------------------------------------------------- +Mon Dec 11 23:12:52 UTC 2017 - jengelh@inai.de + +- Update to new snapshot 0.13.6.g126 + * OpenSSL 1.1 support + * Some support for IPv6 binds + +------------------------------------------------------------------- +Tue Jun 6 14:08:12 UTC 2017 - jengelh@inai.de + +- Update to new snapshot 0.13.6.g72 + * IPv6 support + * Send correct network-ordered port number in PEX messages. + * Support for DHT logging. + * Fix BEP7 compatibility with IPv6 trackers and IPv4 peers. +- Remove cppunit.diff (no longer needed) + +------------------------------------------------------------------- +Wed May 3 08:37:07 UTC 2017 - jengelh@inai.de + +- Add cppunit.diff to support newer cppunit + +------------------------------------------------------------------- +Sun Nov 15 17:08:10 UTC 2015 - mpluskal@suse.com + +- Remove unneeded options/dependencies (xmlrpc) + * all support is done in rtorrent + +------------------------------------------------------------------- +Fri Nov 13 13:47:09 UTC 2015 - tampakrap@opensuse.org + +- Update to new upstream release 0.13.6 +* Added check for failed DH_compute_key, throwing + e_handshake_invalid_encryption +- Moved fully to github, change URL and Source accordingly + +------------------------------------------------------------------- +Sat Jul 19 10:15:20 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 0.13.4 +* Don't start requesting more peers if connected to PEX-enabled + peers. +* Added exception for if the transfer list isn't empty at dtor. +* Added special handling of peers that do choke+unchoke before + transfering pieces. + +------------------------------------------------------------------- +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 + +- license update: SUSE-GPL-2.0+-with-openssl-exception + Package allows linking against openSSL. Use the SUSE- proprietary prefix + until upstream spdx.org accepts the linking exception + +------------------------------------------------------------------- +Tue Feb 21 01:23:04 UTC 2012 - jengelh@medozas.de + +- Run format_spec_file to please the automatic factory + pre-checkin checker scripts + +------------------------------------------------------------------- +Tue Jan 31 09:59:10 UTC 2012 - jengelh@medozas.de + +- Remove redundant tags/sections per specfile guideline suggestions +- Parallel building using %_smp_mflags +- New patch libtorrent-decls.diff: add missing includes to + fix build errors + +------------------------------------------------------------------- +Sat May 9 00:00:00 UTC 2009 - bitshuffler#suse@irc.freenode.org + +- Initial RPM diff --git a/libtorrent.spec b/libtorrent.spec new file mode 100644 index 0000000..c2e03e4 --- /dev/null +++ b/libtorrent.spec @@ -0,0 +1,87 @@ +# +# spec file for package libtorrent +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define rtorrentvers 0.9.8 +Name: libtorrent +%define lname libtorrent21 +Version: 0.13.8 +Release: 0 +Summary: A BitTorrent library written in C++ +License: SUSE-GPL-2.0+-with-openssl-exception +Group: Productivity/Networking/File-Sharing +URL: https://github.com/rakshasa/libtorrent + +Source: https://github.com/rakshasa/rtorrent/releases/download/v%rtorrentvers/%name-%version.tar.gz +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: pkgconfig(cppunit) +BuildRequires: pkgconfig(openssl) +BuildRequires: zlib-devel + +%description +LibTorrent is a BitTorrent library written in C++. It transfers +directly from file pages to the network stack, and achieves 3x higher +seed speeds than the official client on high-bandwidth links. + +%package -n %lname +Summary: A BitTorrent library written in C++ +Group: System/Libraries + +%description -n %lname +LibTorrent is a BitTorrent library written in C++. It transfers +directly from file pages to the network stack, and achieves 3x higher +seed speeds than the official client on high-bandwidth links. + +%package devel +Summary: Development files for libtorrent, a C++ BitTorrent library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +LibTorrent is a BitTorrent library written in C++. It transfers +directly from file pages to the network stack, and achieves 3x higher +seed speeds than the official client on high-bandwidth links. + +%prep +%autosetup -p1 + +%build +export CFLAGS="%optflags -fno-strict-aliasing" +export CXXFLAGS="$CFLAGS" +export CXXFLAGS="$CXXFLAGS -std=gnu++11" +autoreconf -fiv +%configure --enable-ipv6 --with-posix-fallocate +%make_build + +%install +%make_install +find "%buildroot" -type f -name "*.la" -delete + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%_libdir/libtorrent.so.* + +%files -n %name-devel +%_includedir/torrent/ +%_libdir/libtorrent.so +%_libdir/pkgconfig/libtorrent.pc + +%changelog From 6ca5649a8f761c2075e3fd3b0eb00d2de02dae8a34860750c6590ffe6050444a Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sun, 29 Sep 2024 15:18:21 +0000 Subject: [PATCH 2/2] [info=8c200077e9a1c7a5e2609b2599662d210a5d08fb7974ea2b86be966af2dff63a] OBS-URL: https://build.opensuse.org/package/show/filesharing/libtorrent?expand=0&rev=8 --- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- libtorrent-0.13.8.tar.gz | 3 --- libtorrent-0.14.0.tar.gz | 3 +++ libtorrent.changes | 9 +++++++++ libtorrent.spec | 13 ++++++------- 6 files changed, 21 insertions(+), 13 deletions(-) delete mode 100644 libtorrent-0.13.8.tar.gz create mode 100644 libtorrent-0.14.0.tar.gz diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index fdda192..cb49da9 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1599343448 -commit: 8ac4eb2f719956e52c64c754330a56d5ef7128c6b534245f4e2f3f052b0bf7f9 +mtime: 1727623076 +commit: 8c200077e9a1c7a5e2609b2599662d210a5d08fb7974ea2b86be966af2dff63a url: https://src.opensuse.org/jengelh/libtorrent revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 16b16ae..e25c818 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1da19b37a888a8b30f4087a306b1e7612dcf9f3bc22b4464e310d3311819ff88 +oid sha256:80f76bbde18d0f014acdba3e2b6b9cac58a82701758510fc8b9e491289b26f6e size 256 diff --git a/libtorrent-0.13.8.tar.gz b/libtorrent-0.13.8.tar.gz deleted file mode 100644 index 3f6df1d..0000000 --- a/libtorrent-0.13.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983 -size 834027 diff --git a/libtorrent-0.14.0.tar.gz b/libtorrent-0.14.0.tar.gz new file mode 100644 index 0000000..a1bee08 --- /dev/null +++ b/libtorrent-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17b816da5807c7b3455a1a48aae8dacf0f4ef75b1a4372c758948710066fd3ec +size 809617 diff --git a/libtorrent.changes b/libtorrent.changes index 3cf955c..70bd2b5 100644 --- a/libtorrent.changes +++ b/libtorrent.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Sep 29 12:10:54 UTC 2024 - Jan Engelhardt + +- Update to release 0.14.0 + * Significant performance improvements to improve throughput and + reduce CPU usage. + * A fix for a torrent client crash with the socket address object. + * Support for 33 Gbit/s throttles on ruTorrent. + ------------------------------------------------------------------- Fri Sep 4 14:55:41 UTC 2020 - Jan Engelhardt diff --git a/libtorrent.spec b/libtorrent.spec index c2e03e4..09888da 100644 --- a/libtorrent.spec +++ b/libtorrent.spec @@ -1,7 +1,7 @@ # # spec file for package libtorrent # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,10 @@ # -%define rtorrentvers 0.9.8 +%define rtorrentvers 0.10.0 Name: libtorrent -%define lname libtorrent21 -Version: 0.13.8 +%define lname libtorrent22 +Version: 0.14.0 Release: 0 Summary: A BitTorrent library written in C++ License: SUSE-GPL-2.0+-with-openssl-exception @@ -64,7 +64,7 @@ seed speeds than the official client on high-bandwidth links. %build export CFLAGS="%optflags -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" -export CXXFLAGS="$CXXFLAGS -std=gnu++11" +export CXXFLAGS="$CXXFLAGS -std=gnu++14" autoreconf -fiv %configure --enable-ipv6 --with-posix-fallocate %make_build @@ -73,8 +73,7 @@ autoreconf -fiv %make_install find "%buildroot" -type f -name "*.la" -delete -%post -n %lname -p /sbin/ldconfig -%postun -n %lname -p /sbin/ldconfig +%ldconfig_scriptlets -n %lname %files -n %lname %_libdir/libtorrent.so.*