From 2cb3605f61d1230dd6b34ad97b48f87cff3cf8d9 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Mon, 6 Dec 2021 18:30:57 +0000 Subject: [PATCH] Import libtorrent-rasterbar_1.2.9-0.3+rpi1.debian.tar.xz [dgit import tarball libtorrent-rasterbar 1.2.9-0.3+rpi1 libtorrent-rasterbar_1.2.9-0.3+rpi1.debian.tar.xz] --- .gitlab-ci.yml | 9 + README.Debian | 74 +++ changelog | 660 +++++++++++++++++++++++++ compat | 1 + control | 122 +++++ copyright | 301 +++++++++++ docs | 1 + examples.makefile | 50 ++ libtorrent-rasterbar-dev.install | 4 + libtorrent-rasterbar-doc.doc-base | 11 + libtorrent-rasterbar-doc.examples | 2 + libtorrent-rasterbar-doc.install | 3 + libtorrent-rasterbar10.install | 1 + patches/0001-python-move-storage.patch | 57 +++ patches/README | 3 + patches/fix-html-docs.patch | 621 +++++++++++++++++++++++ patches/series | 2 + python3-libtorrent-dbg.install | 1 + python3-libtorrent.install | 2 + rules | 75 +++ source/format | 1 + watch | 3 + 22 files changed, 2004 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 README.Debian create mode 100644 changelog create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 docs create mode 100644 examples.makefile create mode 100644 libtorrent-rasterbar-dev.install create mode 100644 libtorrent-rasterbar-doc.doc-base create mode 100644 libtorrent-rasterbar-doc.examples create mode 100644 libtorrent-rasterbar-doc.install create mode 100644 libtorrent-rasterbar10.install create mode 100644 patches/0001-python-move-storage.patch create mode 100644 patches/README create mode 100644 patches/fix-html-docs.patch create mode 100644 patches/series create mode 100644 python3-libtorrent-dbg.install create mode 100644 python3-libtorrent.install create mode 100755 rules create mode 100644 source/format create mode 100644 watch diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..845003c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,9 @@ +image: registry.gitlab.com/eighthave/ci-image-git-buildpackage:latest + +build: + artifacts: + paths: + - "*.deb" + expire_in: 1 day + script: + - gitlab-ci-git-buildpackage-all diff --git a/README.Debian b/README.Debian new file mode 100644 index 0000000..a654481 --- /dev/null +++ b/README.Debian @@ -0,0 +1,74 @@ +libtorrent-rasterbar for Debian +------------------------------- + +* libtorrent-rasterbar 0.14.2-2 + +Revert build dependencies to boost1.37 only. + + -- Cristian Greco Wed, 11 Mar 2009 16:27:20 +0100 + +* libtorrent-rasterbar 0.14.2-1 + +Enabled building against boost1.37 due to the boost library transition: build +dependencies will be updated each time a new version of boost get uploaded in +Debian (this will happen likely two times a year in the future). +Building against boost1.34.1 is still supported for backport purposes. + + -- Cristian Greco Fri, 27 Feb 2009 07:46:38 +0100 + + +* libtorrent-rasterbar 0.14.1-1 + +While version 0.14 was built against boost1.36, it seems like this release of +the boost libraries has been deleted from Debian and maintainers encourage use +of the next stable release boost1.37. +Anyhow, the best choice actually is to build 0.14.1 against boost1.34.1 because +it is a widely used and well tested release, and on the other hand maybe +libtorrent-rasterbar is not yet ready to support boost1.37. + + -- Cristian Greco Mon, 15 Dec 2008 15:34:17 +0100 + + +* libtorrent-rasterbar 0.14-1 + +- Python bindings for libtorrent-rasterbar +Added a patch (merged upstream, will be available in 0.14.1) to build python +bindings using configure and make. The name of the python module (and package) +is 'python-libtorrent' (as requested by upstream). + +- Lintian Info tag 'no-symbols-control-file' +Maintaining a symbols control file for that library is more a cost than a +benefit. In fact, libtorrent-rasterbar exports a lot of symbols (quite big +symbols files, ~600Kb) and the C++ ABI mangling requires one to maintain a +different control file for each architecture. Moreover this library has a few +reverse dependencies (less than 10 clients, much of them not yet packaged for +Debian), so it wouldn't be difficult to maintain them. + + -- Cristian Greco Sun, 23 Nov 2008 18:55:24 +0100 + + +* libtorrent-rasterbar 0.13.1-2 + +Building a debug version (--enable-debug) of libtorrent-rasterbar seems to +cause some clients to crash (such as qbittorrent, btg - qbittorrent needs a +special option in order to build against a debug version), and actually most +clients upstream developers seems to prefer a release build of the library. + +Then, now libtorrent-rasterbar builds a release version (--disable-debug). + +NOTE for maintainers of all clients which depend on libtorrent-rasterbar: +please build-depends on this exact revision of the package in your +debian/control file: + Build-Depends: libtorrent-rasterbar-dev (>= 0.13.1-2) + + -- Cristian Greco Wed, 23 Jul 2008 11:18:31 +0200 + + +* libtorrent-rasterbar 0.13.1-1 + +Actually, libtorrent-rasterbar has to be built against boost-1.34 and libasio +instead of boost-1.35 (which includes libasio and conflicts with version 1.34); +this is for compatibility with most bittorrent clients which depend also on +boost-1.34. + + -- Cristian Greco Wed, 02 Jul 2008 10:46:21 +0200 diff --git a/changelog b/changelog new file mode 100644 index 0000000..b8821bb --- /dev/null +++ b/changelog @@ -0,0 +1,660 @@ +libtorrent-rasterbar (1.2.9-0.3+rpi1) bullseye-staging; urgency=medium + + * Link with libatomic on armhf too + (without it the package builds successfully on raspbian, but the + python module at least fails to load). ( LP: 1945530 ) + + -- Peter Michael Green Mon, 06 Dec 2021 18:30:57 +0000 + +libtorrent-rasterbar (1.2.9-0.3) unstable; urgency=medium + + * Non-maintainer upload. + * Added d/patches/ README suggesting patch ordering and naming. + * Added patch from upstream to make python move_storage() match C++ signature + + -- Petter Reinholdtsen Fri, 30 Apr 2021 07:51:42 +0200 + +libtorrent-rasterbar (1.2.9-0.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix building Python bindings with -std=c++14 (Closes: #975953), idea from + Holger Hoffstätte, https://bugs.gentoo.org/739654. + + -- Andrey Rahmatullin Sat, 05 Dec 2020 16:49:55 +0500 + +libtorrent-rasterbar (1.2.9-0.1) unstable; urgency=medium + + * Non-maintainer upload. + + [ Andrew Starr-Bochicchio ] + * New upstream release. + - Removes src/ConvertUTF.cpp (Closes: #956285). + * debian/copyright: Address issues found in copyright + review. + * debian/control: + - Remove duplicated python3-docutils build-dep. + - Drop python build-dep (Closes: #967169, #936927). + * debian/rules: + - Prevent call to pyversions by using pybuild (#962090). + - Pass --std=c++14 + + -- Jonas Smedegaard Wed, 25 Nov 2020 09:34:56 +0100 + +libtorrent-rasterbar (1.2.5-1.2) unstable; urgency=medium + + * Non-maintainer upload + * Link against libatomic on riscv64 as well + + -- Graham Inggs Tue, 23 Jun 2020 18:11:28 +0000 + +libtorrent-rasterbar (1.2.5-1.1) unstable; urgency=high + + * Non-maintainer upload. + * Link against libatomic on armel/mipsel/m68k/powerpc/sh4. + (Closes: #958958) + * Build depend on python, which reopens #936927 but closes: #962090. + + -- Adrian Bunk Wed, 10 Jun 2020 17:37:20 +0300 + +libtorrent-rasterbar (1.2.5-1) unstable; urgency=medium + + * New upstream release (Closes: #952447). + * debian/control: + - Depend on python3-docutils (Closes: #936927). + - Bump Standards-Version to 4.5.0. + * New package libtorrent-rasterbar10, bump library soname. + + -- Andrew Starr-Bochicchio Mon, 09 Mar 2020 20:41:03 -0400 + +libtorrent-rasterbar (1.1.13-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Stop building the Python2 packages. Closes: #936927. + * Fix installation of the python3.8 extension. Closes: #945473. + + -- Matthias Klose Mon, 25 Nov 2019 17:42:44 +0100 + +libtorrent-rasterbar (1.1.13-1) unstable; urgency=medium + + * New upstream version 1.1.13 + * Team upload. + + -- Ondřej Surý Thu, 11 Jul 2019 09:18:04 +0200 + +libtorrent-rasterbar (1.1.11-2) unstable; urgency=medium + + * d/rules: Use boost-python >=1.67 soname suffix to fix + Python 3 linking (LP: #1800264). + + -- Calum Lind Sat, 08 Dec 2018 21:49:08 -0500 + +libtorrent-rasterbar (1.1.11-1) unstable; urgency=medium + + [ Ondřej Nový ] + * d/control: Remove ancient X-Python-Version field + * d/control: Remove ancient X-Python3-Version field + + [ Ondřej Surý ] + * New upstream version 1.1.11 + * Team upload. + + -- Ondřej Surý Sun, 02 Dec 2018 09:38:41 +0000 + +libtorrent-rasterbar (1.1.9-1) unstable; urgency=medium + + [ Unit 193 ] + * New upstream release (Closes: #900975). + - d/p/python-dbg-build-fix.patch: Drop, wasn't in series, fixed upstream. + - d/p/fix-html-docs.patch: Refresh and extend patch. + * d/compat, d/control: Bump dh compat to 11. + * d/control: + - Add build-depend on dh-python. + - Drop versioned build-depend on dpkg-dev. + - Drop Pre-Depends on dpkg (Was for xz support.) + - Update homepage to https://libtorrent.org/ (Closes: #900946). + - Update Vcs-* for Salsa. + - Fix python3-libtorrent-dbg depend: + python-libtorrent → python3-libtorrent (Closes: #906078). + * d/control, d/copyright, d/rules: + Upstream dropped geoip support, drop references. + * d/copyright: + - Update ConvertUTF.(cpp,h) license. + - Update 'format' field to use https. + * d/rules: + - Drop --parallel, autoreconf, and xz compression. These are now default. + * Bump Standards-Version to 4.1.4. + * Remove trailing whitespaces under debian/* + + [ Andrew Starr-Bochicchio ] + * New upstream release. + + -- Andrew Starr-Bochicchio Sat, 22 Sep 2018 20:54:52 -0400 + +libtorrent-rasterbar (1.1.5-1) unstable; urgency=medium + + * New upstream release. + * Bump Standards-Version 4.1.2, no changes. + + -- Andrew Starr-Bochicchio Mon, 25 Dec 2017 14:29:03 -0500 + +libtorrent-rasterbar (1.1.4-1) unstable; urgency=medium + + * New upstream release (Closes: #857239). + - Fix file rename issue with name prefix matching + torrent name (Closes: #874136). + - Fix ABI compatibility issue introduced with + preformatted entry type (Closes: #842538). + * debian/libtorrent-rasterbar-doc.install: + - Adjust for new release. + * debian/control: + - All priority 'extra' packages are now 'optional.' + - Bump Standards-Version to 4.1.0. + - Drop un-needed build dep on dh-autoreconf. + + -- Andrew Starr-Bochicchio Sun, 03 Sep 2017 13:28:04 -0400 + +libtorrent-rasterbar (1.1.1-1) unstable; urgency=medium + + * New upstream release. + * Drop remove-msse4.2.patch, fix-get-ip-filter.patch, + 1.1.0-python-fixes.patch, and fix-invalid-input-crash.patch. + All applied upstream. + * Bump debian/compat to 10. + * Adjust install files for multi-arch. + + -- Andrew Starr-Bochicchio Sat, 29 Oct 2016 16:39:13 -0400 + +libtorrent-rasterbar (1.1.0-3) unstable; urgency=medium + + * fix-get-ip-filter.patch: Backport upstream fix for + crash in session::get_ip_filter (Closes: #834630). + * 1.1.0-python-fixes.patch: Backport a number of upstream + commits with fixes for the Python bindings. + * fix-invalid-input-crash.patch: Backport upstream commit + fixing crash on invalid input in http_parser. + + -- Andrew Starr-Bochicchio Tue, 23 Aug 2016 20:50:44 -0400 + +libtorrent-rasterbar (1.1.0-2) unstable; urgency=medium + + * Fix builds on arches where the multiarch tuple (i386-*) and + the GNU tuple (i686-*) differ (Closes: #833944). + * remove-msse4.2.patch: Backport upstream commit removing + -msse4.2 commandline option from configure script (Closes: #833944) + + -- Andrew Starr-Bochicchio Wed, 10 Aug 2016 20:23:29 -0400 + +libtorrent-rasterbar (1.1.0-1) unstable; urgency=medium + + * New upstream release. + - Fixes CVE-2016-5301, crash while parsing invalid + chunked HTTP or UPnP response (Closes: #826380). + * New package libtorrent-rasterbar9, bump library soname. + * Drop python-clean-without-bjam.patch, applied upstream. + * Drop missing_rst_file.patch, applied upstream. + * Build depend on libboost-chrono-dev and libboost-random-dev. + * python-dbg-build-fix.patch: Fix building bindings with python-dbg. + Thanks to Calum Lind. + * Bump Standards-Version to 3.9.8, no changes. + * Build with dh_autoreconf. + + -- Andrew Starr-Bochicchio Mon, 08 Aug 2016 23:38:37 -0400 + +libtorrent-rasterbar (1.0.7-1) unstable; urgency=medium + + * New upstream release (Closes: #806396). + * Update Source link in debian/copyright. + * debian/patches/missing_rst_file.patch: Add file missing + from upstream distribution. + + -- Andrew Starr-Bochicchio Fri, 27 Nov 2015 12:41:42 -0500 + +libtorrent-rasterbar (1.0.6-2) unstable; urgency=medium + + * Upload to unstable (Closes: #791176). + + -- Andrew Starr-Bochicchio Sat, 29 Aug 2015 12:55:09 -0400 + +libtorrent-rasterbar (1.0.6-1) experimental; urgency=medium + + * New upstream release (Closes: #785676). + - Bump library soname. + * Drop fix-python-build-missing-byteshpp.patch, applied upstream. + * python-clean-without-bjam.patch: Only use bjam when '--bjam' + is passed explicitly. + * Bump Standards-Version to 3.9.6, no changes. + * Point debian/watch at GitHub. + + -- Andrew Starr-Bochicchio Sat, 01 Aug 2015 18:03:37 -0400 + +libtorrent-rasterbar (0.16.18-1) unstable; urgency=medium + + * New upstream version. + - fix string handling in python3 bindings (Closes: #756503). + * debian/patches: + - fix-python-dbg-build.patch: drop, fixed upstream. + - fix-html-docs.patch: refresh. + - fix-python-build-missing-byteshpp.patch: new, fix missing file + from upstream tarball. + + -- Cristian Greco Sat, 18 Oct 2014 19:47:37 +0200 + +libtorrent-rasterbar (0.16.17-2) unstable; urgency=medium + + * debian/control: switch back to unversioned {build-,}depends + for boost libraries. (Closes: #759387) + + -- Cristian Greco Tue, 02 Sep 2014 22:48:17 +0200 + +libtorrent-rasterbar (0.16.17-1) unstable; urgency=medium + + * New upstream release. + - Don't fall back on wildcard port in UPnP (LP: #1330703). + + -- Andrew Starr-Bochicchio Sun, 22 Jun 2014 11:36:34 -0400 + +libtorrent-rasterbar (0.16.16-1) unstable; urgency=medium + + * New upstream release. + * Update watch file to find new releases of sourceforge. + + -- Andrew Starr-Bochicchio Sat, 07 Jun 2014 15:39:40 -0400 + +libtorrent-rasterbar (0.16.13-1) unstable; urgency=medium + + * New upstream release. + * Add myself as an uploader. + * Bump Standards-Version to 3.9.5, no changes needed. + * Update fix-html-docs.patch so that all docs are built from + source and fix lintian privacy-breach-google-adsense errors. + + -- Andrew Starr-Bochicchio Mon, 24 Feb 2014 14:11:14 -0500 + +libtorrent-rasterbar (0.16.11-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Explicitly pass --with-boost-system=boost_system to configure + as ax_boost_system.m4 doesn't want to find it now that it + is multiarch. Fixes FTBFS (Closes: #738381). + * Fix build with python3.4 as a supported version, using python-config. + + -- Andrew Starr-Bochicchio Mon, 17 Feb 2014 12:19:53 -0500 + +libtorrent-rasterbar (0.16.11-2) unstable; urgency=low + + * debian/control: libtorrent-rasterbar-dev should depend on + boost-system1.54 (Closes: #726823). + + -- Cristian Greco Sat, 19 Oct 2013 20:26:01 +0200 + +libtorrent-rasterbar (0.16.11-1) unstable; urgency=low + + * Non-maintainer upload. + * New upstream version 0.16.11. + - fixes build with Boost 1.54 (Closes: #724708). + * fix-ftbfs-kfreebsd-iconv.patch: deleted (merged upstream). + * debian/rules: fix linking with boost_python libraries (Closes: #721546). + * debian/control: + - switch to boost1.54-dev | boost-dev deps. + - bump Standards-Version to 3.9.4 (no changes required). + * debian/copyright: + - update in according to Copyright format 1.0 + - remove copyright holders whose code was deleted from source tree + - add missed copyright holders + - update years + + -- Boris Pek Sat, 28 Sep 2013 20:27:56 +0300 + +libtorrent-rasterbar (0.16.10-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Adjust python3-libtorrent.install to fix FTBFS when not built with + python3.2 support (Closes: #718666) + + -- Scott Kitterman Sat, 03 Aug 2013 22:24:08 -0400 + +libtorrent-rasterbar (0.16.10-3) unstable; urgency=low + + * debian/patches: + - fix-ftbfs-kfreebsd-iconv.patch: new patch, fix + ftbfs on kfreebsd, thanks Pino Toscano! (Closes: #712797) + - refresh other patches. + + -- Cristian Greco Thu, 20 Jun 2013 21:18:23 +0200 + +libtorrent-rasterbar (0.16.10-2) unstable; urgency=low + + * Upload to unstable. + - fixes all ftbfs (Closes: #701311, #710624). + * debian/control: switch to conditional build-dep on + boost1.53-dev | boost-dev. + + -- Cristian Greco Mon, 17 Jun 2013 22:56:07 +0200 + +libtorrent-rasterbar (0.16.10-1) experimental; urgency=low + + * New upstream version 0.16.10. + * Build python3 packages (patch by Andrew Starr-Bochicchio + ) (Closes: #708072). + * debian/rules: add explicit configure arg --with-libiconv. + + -- Cristian Greco Sun, 26 May 2013 13:57:13 +0200 + +libtorrent-rasterbar (0.16.9-1) experimental; urgency=low + + * New upstream version 0.16.9. + - new package libtorrent-rasterbar7 (bump up library soname). + - debian/control: drop now useless (build-)deps. + - debian/control: switch to explicit boost1.53 (build-)deps. + - upload to experimental: the library is pretty stable, but will be + uploaded to unstable only after the transition of boost1.53. + + -- Cristian Greco Sun, 12 May 2013 10:48:57 +0200 + +libtorrent-rasterbar (0.15.10-1) unstable; urgency=low + + * New upstream version. + + -- Cristian Greco Tue, 06 Mar 2012 21:27:49 +0100 + +libtorrent-rasterbar (0.15.9-1) unstable; urgency=low + + * New upstream version. + * debian/{control,rules}: compress binary packages with xz and add + Pre-Depends on dpkg (>= 1.15.6~). + * debian/rules: enable default hardening options from dpkg-buildflags. + + -- Cristian Greco Wed, 21 Dec 2011 13:08:22 +0100 + +libtorrent-rasterbar (0.15.8-1) unstable; urgency=low + + * New upstream version. + - fix-webseeds-r5915.patch: drop patch, fixed upstream. + - refreshed other patches. + + -- Cristian Greco Fri, 30 Sep 2011 13:21:21 +0200 + +libtorrent-rasterbar (0.15.7-1) unstable; urgency=low + + * New upstream version. + - fix-webseeds-r5915.patch: new patch, fix a web seeds bug caused + by a wrong merge commit. + * debian/control: + - use my @debian.org address. + - drop DMUA field. + + -- Cristian Greco Fri, 19 Aug 2011 18:47:49 +0200 + +libtorrent-rasterbar (0.15.6-2) unstable; urgency=low + + * debian/control: switch to dh_python2 for the python bindings. + * debian/rules: no need to pass -a to dh_strip and dh_makeshlibs. + * debian/patches: + - fix-html-docs.patch: renamed, added dep3 tags. + - fix-python-dbg-build.patch: new patch, fix wrong configure check + when building with pythonX-dbg. + * debian/{control,rules}: introducing a new python-libtorrent-dbg + package (Closes: #628041). + + -- Cristian Greco Mon, 20 Jun 2011 01:30:51 +0200 + +libtorrent-rasterbar (0.15.6-1) unstable; urgency=low + + * New upstream version. + - upload to unstable. + * Getting rid of the unneeded *.la file in -dev package + (Closes: #622461). + * debian/control: bump Standards-Version to 3.9.2. + * debian/README.Debian: fix a spelling error in an old entry + to make lintian happy. + * debian/rules: simplified a bit. + * debian/{control,rules}: drop "XS-Python-Version: all" and use + different pyversions options instead. + + -- Cristian Greco Tue, 10 May 2011 20:54:50 +0200 + +libtorrent-rasterbar (0.15.5-1) experimental; urgency=low + + * New upstream version. + + -- Cristian Greco Fri, 07 Jan 2011 17:36:29 +0100 + +libtorrent-rasterbar (0.15.4-1) experimental; urgency=low + + * New upstream version. + - upload to experimental: the library is pretty stable, but will be + uploaded to unstable only after the release of Squeeze and the + update of boost-defaults to boost1.44 (or higher). + * debian/control: + - new package libtorrent-rasterbar6 (bump up library soname). + - rework boost build-deps, drop unneeded. + - bump up Standards-Version to 3.9.1. + * debian/rules: + - rework (update) configuration options. + - bump debhelper build-dep to (>= 7.4.10) and enable parallel + build support. + * debian/copyright: + - updated to reflect upstream changes. + - fix copyright-refers-to-deprecated-bsd-license-file. + * debian/patches/100_fix_html_docs.patch: refreshed. + * debian/watch: use a simplified regexp. + + -- Cristian Greco Fri, 10 Dec 2010 00:18:46 +0100 + +libtorrent-rasterbar (0.14.10-2) unstable; urgency=low + + * debian/{control,rules}: build python-libtorrent for all supported + python versions. (Closes: #578078) + * debian/README.source: remove now unneeded file. + + -- Cristian Greco Sat, 17 Apr 2010 00:19:00 +0200 + +libtorrent-rasterbar (0.14.10-1) unstable; urgency=low + + * New upstream version. + + -- Cristian Greco Wed, 24 Mar 2010 18:23:04 +0100 + +libtorrent-rasterbar (0.14.9-1) unstable; urgency=low + + * New upstream version. + * debian/libtorrent-rasterbar-doc.doc-base: fix spelling error. + * debian/patches/100_fix_html_docs.patch: refreshed. + * debian/control: bump up standards-version to 3.8.4 (no changes). + + -- Cristian Greco Sat, 20 Feb 2010 02:00:20 +0100 + +libtorrent-rasterbar (0.14.8-1) unstable; urgency=low + + * New upstream version. + - r4072_fix_broadcast_socket_regression.patch: dropped, included upstream. + * debian/control: add dependency on libgeoip-dev for -dev package. + * debian/watch: point download url to googlecode. + + -- Cristian Greco Thu, 14 Jan 2010 23:25:42 +0100 + +libtorrent-rasterbar (0.14.7-2) unstable; urgency=low + + * r4072_fix_broadcast_socket_regression.patch: new patch, pulled from + upstream svn (r4072). + + -- Cristian Greco Thu, 17 Dec 2009 13:21:49 +0100 + +libtorrent-rasterbar (0.14.7-1) unstable; urgency=low + + * New upstream version. + * debian/control: + - new maintainer email address. + - add DMUA field, thanks to my sponsor Michal Čihař. + - add build-dep on libboost-program-options-dev. + * Convert to 3.0 (quilt) source format. + + -- Cristian Greco Wed, 25 Nov 2009 16:29:30 +0100 + +libtorrent-rasterbar (0.14.6-1) unstable; urgency=low + + * New upstream version. + * debian/{control,rules}: + - build-dep on libgeoip-dev and pkg-config, thus enable building against + geoip system library. (Closes: #544462) + - drop build-dep on autotools-dev and don't overwrite config.{guess,sub} + as upstream now ships up-to-date files. + * debian/rules: drop the hack for boost1.39 as latest revision now + ship again the -mt simlinks. + * 010_r3796_r3797_fix_configure.patch: deleted (merged upstream). + * debian/README.source: fix reference to quilt doc. + + -- Cristian Greco Tue, 22 Sep 2009 12:58:26 +0200 + +libtorrent-rasterbar (0.14.5-1) unstable; urgency=low + + * New upstream version. + - new package libtorrent-rasterbar5 (bump up library soname). + - debian/patches: + + prefix patches with a number. + + 100_fix_html_docs.patch: improve description. + + new patch 010_r3796_r3797_fix_configure.patch (temporary fix). + * debian/control: + - move git package maintenance to collab-maint. + - bump up Standards-Version to 3.8.3 (no changes required). + - (build-)depends on zlib1g-dev instead of libz-dev (which is + a virtual package). + - build-depends on quilt (>= 0.46-7) and simplify debian/rules. + * debian/rules: allow building against boost 1.39 (which contains + libraries with no more -mt suffix) and try to retain compatibility + with older versions for ubuntu backports. + + -- Cristian Greco Tue, 25 Aug 2009 17:29:29 +0200 + +libtorrent-rasterbar (0.14.4-1) unstable; urgency=low + + * New upstream version. + - new package libtorrent-rasterbar4 (bump up library soname). + * debian/control: + - fix Vcs-Browser address; + - build depends on new unversioned boost -dev packages (this will cause + building against boost1.38). (Closes: #531114) + * debian/patches/fix_html_docs.patch: refresh patch as file + docs/libtorrent_plugins.rst was added upstream. + * debian/rules: + - now there is no need to remove the missing doc file generated by + fix_html_docs.patch as it has been fixed upstream; + - backup config.{sub,guess} before overwriting them during build, and + restore during clean. + + -- Cristian Greco Wed, 03 Jun 2009 13:05:21 +0200 + +libtorrent-rasterbar (0.14.3-1) unstable; urgency=low + + * New Upstream Version + - new package libtorrent-rasterbar3 (bump up library soname). + * debian/control: + - add Vcs-* stuff (switch to git-buildpackage) and bump up + Standards-Version to 3.8.1 (no changes required); + - build-depends on debhelper (>= 7.0.50) and use override_dh_command; + - move -dbg package to the new 'debug' section; + - build-depends on autotools-dev and overwrite config.{sub,guess} with a + recent version in debian/rules. + - build-depends on quilt and python-docutils: + + debian/patches/fix_html_docs.patch: fix html documentation for offline + browsing and add another missing doc file; + + rebuild docs at build time in debian/rules; + * debian/example.makefile: install a simple makefile for example programs + included in -doc package. + * debian/rules, debian/python-libtorrent.install: don't rely on hardcoded + python version, use --install-layout=deb when building python bindings, + and install to '*-packages' instead of 'site-packages' (this should + prepare for python2.6 and minimize Ubuntu diff). + + -- Cristian Greco Wed, 13 May 2009 12:08:59 +0200 + +libtorrent-rasterbar (0.14.2-2) unstable; urgency=low + + * debian/control, debian/rules: revert building only against boost1.37 since + the dependencies on the -dev packages are causing some problems with + reverse depends clients and backporting to stable is not really needed + (too much maintenance work) at the moment. + * debian/README.source: deleted. + + -- Cristian Greco Wed, 11 Mar 2009 16:27:20 +0100 + +libtorrent-rasterbar (0.14.2-1) unstable; urgency=low + + * New upstream version. + - new package libtorrent-rasterbar2 (bump up library SONAME); + - remove patch 01_fix_ax_python_m4.patch (merged upstream); + - debian/control, debian/rules, debian/README.source: drop build + dependency on quilt system. + * debian/control, debian/rules, debian/README.source: adjusting build + dependencies and configure flags to build against boost1.37 and continue + to provide compatibility with boost1.34.1 for backports (adding some notes). + * debian/control: fix lintian I:binary-control-field-duplicates-source. + * Moving section from 'Programming' to 'Programming/C++' for the doc-base + files in libtorrent-rasterbar-doc. + * Closing a bug already fixed in 0.14-1: fixed documentation about + storage_mode_allocate (Closes: #502241). + * Upload to unstable (Closes: #517000). + + -- Cristian Greco Fri, 27 Feb 2009 07:46:38 +0100 + +libtorrent-rasterbar (0.14.1-1) experimental; urgency=low + + * New upstream version + - remove patch 01_python_bindings.patch (included upstream); + - add patch 01_fix_ax_python_m4.patch (already merged upstream, see + description for details). + * Revert build-depends on libboost-dev (>= 1.34.1) and libasio-dev because + boost1.36 has been removed from unstable and boost1.37 is not yet fully + supported by the library (added notes on README.Debian). + * Install .cpp examples using dh_installexamples and a .examples file. + * debian/copyright: fix main BSD license text. + + -- Cristian Greco Mon, 15 Dec 2008 15:34:17 +0100 + +libtorrent-rasterbar (0.14-1) experimental; urgency=low + + * New upstream version. + - debian/copyright: new and updated copyright notes and files. + - debian/control: + + build-depends on libboost1.36-dev and python-dev; + + new package libtorrent-rasterbar1 (bump up library SONAME); + + new package python-libtorrent which contains python bindings + for the library. + - debian/rules: + + use multi-threaded boost libraries (--with-boost-system=mt, ...); + + add --disable-examples and --disable-tests options; + + delete specific information about debian revision in dh_makeshlibs + (i.e., use only dh_makeshlibs -V). + - debian/control, debian/rules, debian/README.source, debian/patches: + build-depends on quilt patch system and install a patch of mine + (01_python_bindings, already merged upstream) in order to build python + bindings; use a temporary fix for the 'clean' target. + * Install example files (.cpp) with the -doc package. + * Provide a doc-base control file to install html docs + (libtorrent-rasterbar-doc.doc-base). + * debian/README.Debian: new notes about the python package and the lintian + tag 'no-symbols-control-file' for libtorrent-rasterbar1. + * Close a bug in Ubuntu about build with --disable-debug, already solved + with 0.13.1-2 (LP: #291448). + * Upload to experimental to test the new python bindings package. + * New maintainer email address. + + -- Cristian Greco Sun, 23 Nov 2008 18:55:24 +0100 + +libtorrent-rasterbar (0.13.1-2) unstable; urgency=low + + * debian/rules: + - build with --disable-debug option because enabling debug seems to cause + some clients to crash, and most upstream authors prefer a release build of + the library. + - added specific version information to dh_makeshlibs so that reverse + dependencies will depend on this particular version. + * README.Debian: updated with info about --disable-debug. + + -- Cristian Greco Wed, 23 Jul 2008 11:18:31 +0200 + +libtorrent-rasterbar (0.13.1-1) unstable; urgency=low + + * Initial release (Closes: #402462) + + -- Cristian Greco Wed, 02 Jul 2008 10:46:21 +0200 diff --git a/compat b/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +11 diff --git a/control b/control new file mode 100644 index 0000000..91f90b2 --- /dev/null +++ b/control @@ -0,0 +1,122 @@ +Source: libtorrent-rasterbar +Section: libs +Priority: optional +Maintainer: Cristian Greco +Uploaders: Andrew Starr-Bochicchio +Build-Depends: debhelper (>= 11), + dh-python, + libboost-system-dev, + libboost-python-dev, + libboost-chrono-dev, + libboost-random-dev, + libssl-dev, + pkg-config, + python3-all-dev, + python3-all-dbg, + python3-docutils +Standards-Version: 4.5.0 +Vcs-Git: https://salsa.debian.org/debian/libtorrent-rasterbar.git +Vcs-Browser: https://salsa.debian.org/debian/libtorrent-rasterbar/ +Homepage: https://libtorrent.org/ + +Package: libtorrent-rasterbar10 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: libtorrent-rasterbar-dbg +Description: C++ bittorrent library by Rasterbar Software + Bittorrent library by Rasterbar Software (Arvid Norberg). + libtorrent-rasterbar is a C++ library that aims to be a good alternative to + all the other bittorrent implementations around. + . + The main goals of libtorrent-rasterbar are: + * to be cpu efficient + * to be memory efficient + * to be very easy to use + . + This package contains libtorrent-rasterbar run time shared library. + +Package: libtorrent-rasterbar-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, + libtorrent-rasterbar10 (= ${binary:Version}), + libboost-system-dev, + libssl-dev, + pkg-config +Suggests: libtorrent-rasterbar-doc +Description: Development files for libtorrent-rasterbar + Bittorrent library by Rasterbar Software (Arvid Norberg). + libtorrent-rasterbar is a C++ library that aims to be a good alternative to + all the other bittorrent implementations around. + . + The main goals of libtorrent-rasterbar are: + * to be cpu efficient + * to be memory efficient + * to be very easy to use + . + This package contains header files and static version of the library. + +Package: libtorrent-rasterbar-dbg +Section: debug +Architecture: any +Depends: ${misc:Depends}, libtorrent-rasterbar10 (= ${binary:Version}) +Description: Debug symbols for libtorrent-rasterbar + Bittorrent library by Rasterbar Software (Arvid Norberg). + libtorrent-rasterbar is a C++ library that aims to be a good alternative to + all the other bittorrent implementations around. + . + The main goals of libtorrent-rasterbar are: + * to be cpu efficient + * to be memory efficient + * to be very easy to use + . + This package contains debugging symbols. + +Package: libtorrent-rasterbar-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Description: Documentation for libtorrent-rasterbar + Bittorrent library by Rasterbar Software (Arvid Norberg). + libtorrent-rasterbar is a C++ library that aims to be a good alternative to + all the other bittorrent implementations around. + . + The main goals of libtorrent-rasterbar are: + * to be cpu efficient + * to be memory efficient + * to be very easy to use + . + This package contains documentation and example files. + +Package: python3-libtorrent +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, libtorrent-rasterbar10 (= ${binary:Version}) +Description: Python bindings for libtorrent-rasterbar (Python 3) + Bittorrent library by Rasterbar Software (Arvid Norberg). + libtorrent-rasterbar is a C++ library that aims to be a good alternative to + all the other bittorrent implementations around. + . + The main goals of libtorrent-rasterbar are: + * to be cpu efficient + * to be memory efficient + * to be very easy to use + . + This package contains Python 3 bindings for the libtorrent-rasterbar library. + +Package: python3-libtorrent-dbg +Section: debug +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-libtorrent (= ${binary:Version}), python3-dbg +Description: Python bindings for libtorrent-rasterbar (debug symbols) (Python 3) + Bittorrent library by Rasterbar Software (Arvid Norberg). + libtorrent-rasterbar is a C++ library that aims to be a good alternative to + all the other bittorrent implementations around. + . + The main goals of libtorrent-rasterbar are: + * to be cpu efficient + * to be memory efficient + * to be very easy to use + . + This package contains Python 3 bindings for the libtorrent-rasterbar library + (debug symbols). diff --git a/copyright b/copyright new file mode 100644 index 0000000..70e620f --- /dev/null +++ b/copyright @@ -0,0 +1,301 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Packaged-By: Cristian Greco +Packaged-Date: Wed, 02 Jul 2008 10:46:21 +0200 +Upstream-Name: libtorrent +Upstream-Contact: Arvid Norberg +Source: https://github.com/arvidn/libtorrent/releases + + +Files: debian/* +Copyright: 2008 Cristian Greco +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-2'. + + +Files: * + bindings/python/src/error_code.cpp +Copyright: 2003-2020 Arvid Norberg + 2014-2016 Alden Torres + 2005-2018 Steven Siloti + 2003-2018 Daniel Wallin + 2006-2018 Magnus Jonsson + 2007-2018 Un Shyam + 2006-2018 MassaRoddel + 2006-2018 Thomas Yuan +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of the author nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + +Files: bindings/python/* + include/libtorrent/invariant_check.hpp + include/libtorrent/aux_/cppint_import_export.hpp +Copyright: 2004-2007 Daniel Wallin + 2006-2008 Arvid Norberg + 2008 Andrew Resch + 2015 John Maddock +License: BSL-1.0 + Boost Software License - Version 1.0 - August 17th, 2003 + . + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + . + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + +Files: src/ConvertUTF.cpp include/libtorrent/ConvertUTF.h +Copyright: 2001-2004 Unicode, Inc. +License: other + Permission is hereby granted, free of charge, to any person obtaining + a copy of the Unicode data files and any associated documentation + (the "Data Files") or Unicode software and any associated documentation + (the "Software") to deal in the Data Files or Software + without restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, and/or sell copies of + the Data Files or Software, and to permit persons to whom the Data Files + or Software are furnished to do so, provided that either + (a) this copyright and permission notice appear with all copies + of the Data Files or Software, or + (b) this copyright and permission notice appear in associated + Documentation. + . + THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF + ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT OF THIRD PARTY RIGHTS. + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS + NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL + DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THE DATA FILES OR SOFTWARE. + . + Except as contained in this notice, the name of a copyright holder + shall not be used in advertising or otherwise to promote the sale, + use or other dealings in these Data Files or Software without prior + written authorization of the copyright holder. + + +Files: include/libtorrent/puff.hpp + src/puff.cpp +Copyright: 2002-2003 Mark Adler +License: Zlib + This software is provided 'as-is', without any express or implied + warranty. In no event will the author be held liable for any damages + arising from the use of this software. + . + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + . + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would + be appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not + be misrepresented as being the original software. + 3. This notice may not be removed or altered from any source + distribution. + + +Files: m4/ +Copyright: 2008 Thomas Porschberg + 2009 Peter Adolphs + 2008 Michael Tindal + 2008 Daniel Casimiro + 2009, 2010 Zmanda Inc. + 2009, 2010 Dustin J. Mitchell + 2008 Benjamin Kosnik + 2012 Zack Weinberg + 2013 Roy Stogner + 2014, 2015 Google Inc.; contributed by Alexey Sokolov + 2015 Paul Norman + 2015 Moritz Klammler + 2004-2005, 2007, 2009, 2011-2015 Free Software Foundation, Inc. +License: FSF All Permissive License + Copying and distribution of this file, with or without modification, are + permitted in any medium without royalty provided the copyright notice + and this notice are preserved. This file is offered as-is, without any + warranty. + + +Files: m4/ax_pthread.m4 + m4/ax_python_devel.m4 +Copyright: 2008 Steven G. Johnson + 2009 Sebastian Huber + 2009 Alan W. Irwin + 2009 Rafael Laboissiere + 2009 Andrew Collier + 2009 Matteo Settenvini + 2009 Horst Knorr + 2013 Daniel Mullner +License: GPL-3+ with autoconf exception + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation, either version 3 of the License, or (at your + option) any later version. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program. If not, see . + . + As a special exception, the respective Autoconf Macro's copyright owner + gives unlimited permission to copy, distribute and modify the configure + scripts that are the output of Autoconf when processing the Macro. You + need not follow the terms of the GNU General Public License when using + or distributing such scripts, even though portions of the text of the + Macro appear in them. The GNU General Public License (GPL) does govern + all other use of the material that constitutes the Autoconf Macro. + . + This special exception to the GPL applies to versions of the Autoconf + Macro released by the Autoconf Archive. When you make and distribute a + modified version of the Autoconf Macro, you may extend this special + exception to the GPL to apply to your modified version as well. + . + On Debian systems, the complete text of the GNU General Public License + Version 3 can be found in `/usr/share/common-licenses/GPL-3'. + + +Files: m4/ax_boost_python.m4 + m4/iconv.m4 + m4/pkgconfig.m4 + build-aux/compile + build-aux/config.rpath + build-aux/depcomp + build-aux/ltmain.in + build-aux/missing + build-aux/test-driver +Copyright: 2008 Michael Tindal + 2013 Daniel M"ullner + 2000-2002 Free Software Foundation, Inc. + 2004 Scott James Remnant +License: GPL-2.0+ with autoconf exception + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + As a special exception to the GNU General Public License, if you + distribute this file as part of a program that contains a + configuration script generated by Autoconf, you may include it under + the same distribution terms that you use for the rest of that program. + . + On Debian systems, the complete text of the GNU General Public License + Version 2 can be found in `/usr/share/common-licenses/GPL-2'. + + +Files: src/sha1.cpp + include/libtorrent/sha1.hpp +Copyright: Steve Reid +Comment: Contributors: + Modified 7/98 By James H. Brown + Modified 8/98 By Steve Reid + Modified 4/01 By Saul Kravitz + Converted to C++ 6/04 By Arvid Norberg +License: public-domain + The file sha1.c was put in the public domain by Steve Reid. + + +Files: ed25519/ +License: public-domain + All code is in the public domain. + + +Files: include/libtorrent/sha512.hpp + src/sha512.cpp +License: public-domain + The library is free for all purposes without any express guarantee it works. + + +Files: cmake/Modules/ucm_flags.cmake + build-aux/install-sh +Copyright: 2016 Viktor Kirilov + 1994 X Consortium +License: Expat + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/docs b/docs new file mode 100644 index 0000000..62deb04 --- /dev/null +++ b/docs @@ -0,0 +1 @@ +AUTHORS diff --git a/examples.makefile b/examples.makefile new file mode 100644 index 0000000..3722d53 --- /dev/null +++ b/examples.makefile @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# +# Simple makefile for libtorrent-rasterbar's examples. +# Copyright © 2009 Cristian Greco +# This file is released in the public domain. +# +# Please note that you need to install the following packages in order to build +# these example programs: +# - libtorrent-rasterbar-dev +# - libboost-program-options*-dev +# - libboost-regex*-dev +# (where the `*' means the same version of boost development packages which +# libtorrent-rasterbar-dev actually depends on). + +CXX = g++ + +CXXFLAGS = -ftemplate-depth-50 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION + +TORRENT_CFLAGS = $(shell pkg-config libtorrent-rasterbar --cflags) +TORRENT_LIBS = $(shell pkg-config libtorrent-rasterbar --libs) + +BOOST_PROGRAM_OPTIONS_LIBS = -lboost_program_options-mt +BOOST_REGEX_LIBS = -lboost_regex-mt + +examples_BIN = client_test dump_torrent make_torrent simple_client enum_if + +all: $(examples_BIN) + +client_test: client_test.cpp + @rm -f client_test + $(CXX) $(CXXFLAGS) $(TORRENT_CFLAGS) -o $@ $< $(TORRENT_LIBS) $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_REGEX_LIBS) + +dump_torrent: dump_torrent.cpp + @rm -f dump_torrent + $(CXX) $(CXXFLAGS) $(TORRENT_CFLAGS) -o $@ $< $(TORRENT_LIBS) + +make_torrent: make_torrent.cpp + @rm -f make_torrent + $(CXX) $(CXXFLAGS) $(TORRENT_CFLAGS) -o $@ $< $(TORRENT_LIBS) + +simple_client: simple_client.cpp + @rm -f simple_client + $(CXX) $(CXXFLAGS) $(TORRENT_CFLAGS) -o $@ $< $(TORRENT_LIBS) + +enum_if: enum_if.cpp + @rm -f enum_if + $(CXX) $(CXXFLAGS) $(TORRENT_CFLAGS) -o $@ $< $(TORRENT_LIBS) + +clean: + @rm -f $(examples_BIN) diff --git a/libtorrent-rasterbar-dev.install b/libtorrent-rasterbar-dev.install new file mode 100644 index 0000000..abebe49 --- /dev/null +++ b/libtorrent-rasterbar-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/*.pc diff --git a/libtorrent-rasterbar-doc.doc-base b/libtorrent-rasterbar-doc.doc-base new file mode 100644 index 0000000..6c8e9f1 --- /dev/null +++ b/libtorrent-rasterbar-doc.doc-base @@ -0,0 +1,11 @@ +Document: libtorrent-rasterbar +Section: Programming/C++ +Title: Libtorrent-rasterbar Documentation +Author: Arvid Norberg +Abstract: This documentation describes mainly the API + interface of libtorrent-rasterbar and contains other + useful information for developers. + +Format: HTML +Index: /usr/share/doc/libtorrent-rasterbar-doc/html/index.html +Files: /usr/share/doc/libtorrent-rasterbar-doc/html/*.html diff --git a/libtorrent-rasterbar-doc.examples b/libtorrent-rasterbar-doc.examples new file mode 100644 index 0000000..8422eb5 --- /dev/null +++ b/libtorrent-rasterbar-doc.examples @@ -0,0 +1,2 @@ +examples/*.cpp +debian/examples.makefile diff --git a/libtorrent-rasterbar-doc.install b/libtorrent-rasterbar-doc.install new file mode 100644 index 0000000..255e352 --- /dev/null +++ b/libtorrent-rasterbar-doc.install @@ -0,0 +1,3 @@ +docs/*.html docs/*.png docs/style.css usr/share/doc/libtorrent-rasterbar-doc/html/ +docs/css/* usr/share/doc/libtorrent-rasterbar-doc/html/css/ +docs/img/* usr/share/doc/libtorrent-rasterbar-doc/html/img/ diff --git a/libtorrent-rasterbar10.install b/libtorrent-rasterbar10.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/libtorrent-rasterbar10.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/patches/0001-python-move-storage.patch b/patches/0001-python-move-storage.patch new file mode 100644 index 0000000..eed0132 --- /dev/null +++ b/patches/0001-python-move-storage.patch @@ -0,0 +1,57 @@ +Description: fix regression in python binding for move_storage() +Origin: upstream, commit 386596aa88a19dcba3d4f5925dbce3c517065ea2 +Author: arvidn +Last-Update: 2021-04-30 +Bugs-Debian: https://bugs.debian.org/987306 + +diff --git a/bindings/python/src/converters.cpp b/bindings/python/src/converters.cpp +index 68ca2cf66..7d9eb1f9b 100644 +--- a/bindings/python/src/converters.cpp ++++ b/bindings/python/src/converters.cpp +@@ -23,6 +23,7 @@ + #include "libtorrent/peer_class.hpp" + #include "libtorrent/pex_flags.hpp" + #include "libtorrent/string_view.hpp" ++#include "libtorrent/storage_defs.hpp" + #include + #include + +@@ -342,6 +343,30 @@ struct to_strong_typedef + } + }; + ++template ++struct to_enum_class ++{ ++ using underlying_type = typename std::underlying_type::type; ++ ++ to_enum_class() ++ { ++ converter::registry::push_back( ++ &convertible, &construct, type_id() ++ ); ++ } ++ ++ static void* convertible(PyObject* x) ++ { ++ return PyNumber_Check(x) ? x : nullptr; ++ } ++ ++ static void construct(PyObject* x, converter::rvalue_from_python_stage1_data* data) ++ { ++ void* storage = ((converter::rvalue_from_python_storage*)data)->storage.bytes; ++ data->convertible = new (storage) T(static_cast(static_cast(extract(object(borrowed(x)))))); ++ } ++}; ++ + template + struct from_bitfield_flag + { +@@ -495,6 +520,7 @@ void bind_converters() + to_strong_typedef(); + to_strong_typedef(); + to_strong_typedef(); ++ to_enum_class(); + to_bitfield_flag(); + to_bitfield_flag(); + to_bitfield_flag(); diff --git a/patches/README b/patches/README new file mode 100644 index 0000000..80c1584 --- /dev/null +++ b/patches/README @@ -0,0 +1,3 @@ +0xxx: Grabbed from upstream development. +1xxx: Possibly relevant for upstream adoption. +2xxx: Only relevant for official Debian release. diff --git a/patches/fix-html-docs.patch b/patches/fix-html-docs.patch new file mode 100644 index 0000000..daf72ab --- /dev/null +++ b/patches/fix-html-docs.patch @@ -0,0 +1,621 @@ +From: Cristian Greco +Date: Sun, 2 Dec 2018 09:38:28 +0000 +Subject: Fix html documentation for offline browsing + +The patch also includes the makefile and template.txt needed to rebuild +html docs from rst files. +Forwarded: not-needed +Origin: vendor +--- + docs/css/base.css | 136 ++++++++++++++++++++ + docs/css/rst.css | 245 ++++++++++++++++++++++++++++++++++++ + docs/hacking.html | 11 -- + docs/index.rst | 10 +- + docs/makefile | 34 +++++ + docs/manual-ref.html | 60 ++------- + docs/reference-Alerts.html | 11 -- + docs/reference-Bdecoding.html | 11 -- + docs/reference-Bencoding.html | 11 -- + docs/reference-Core.html | 11 -- + docs/reference-Create_Torrents.html | 11 -- + docs/reference-Custom_Storage.html | 11 -- + docs/reference-Error_Codes.html | 11 -- + docs/reference-Filter.html | 11 -- + docs/reference-Plugins.html | 11 -- + docs/reference-Settings.html | 11 -- + docs/reference-Storage.html | 11 -- + docs/reference-Utility.html | 11 -- + docs/reference-ed25519.html | 11 -- + docs/reference.html | 11 -- + docs/single-page-ref.html | 11 -- + docs/template.txt | 29 +++++ + docs/tutorial.html | 11 -- + 23 files changed, 456 insertions(+), 245 deletions(-) + create mode 100644 docs/css/base.css + create mode 100644 docs/css/rst.css + create mode 100644 docs/makefile + create mode 100644 docs/template.txt + +Index: libtorrent-rasterbar/docs/css/base.css +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libtorrent-rasterbar/docs/css/base.css 2020-08-22 12:52:17.380557974 -0400 +@@ -0,0 +1,136 @@ ++/* Page template */ ++ ++html>body { font-size: 13px; } ++body { text-align: center; } ++ ++#container { ++ text-align: left; ++ width: 700px; ++ margin: 0 auto; ++ position: relative; ++} ++ ++#headerNav { ++} ++ ++#headerNav ul { ++ margin: 2px; ++ list-style: none; ++ font-family: Tahoma; ++ text-align: right; ++ text-transform: uppercase; ++ line-height: 1em; ++} ++ ++#headerNav ul li { ++ display: inline; ++ border-left: solid 1px #ccc; ++ padding-left: 10px; ++ padding-right: 10px; ++ margin: 0; ++ font-size: 80%; ++} ++ ++#headerNav ul li.first { ++ border: 0; ++} ++ ++#headerNav ul li a { ++ border: none; ++ color: #666; ++} ++ ++#headerNav ul li a:hover { ++ background: #eee; ++} ++ ++#header { ++ height: 116px; ++ width: 695px; ++ background: url(../img/orange.png) #FDA72A no-repeat top left; ++} ++ ++#header h1 { ++ margin: 0; ++ padding: 0; ++ float: right; ++ width: 536px; ++ height: 116px; ++ background: url(../img/logo.png); ++} ++ ++#header h1 span, #header h2 { display: none; } ++ ++#footer { ++ clear: both; ++ width: 695px; ++ height: 49px; ++ background: #D3D3D3 url(../img/footer.png) no-repeat left top; ++ text-align: center; ++ margin-bottom: 1em; ++} ++ ++#footer span { ++ line-height: 49px; ++ font-size: 88%; ++ text-align: center; ++ color: #777; ++ display: block; ++} ++ ++#main { ++ font-family: Verdana; ++ line-height: 1.25em; ++ text-align: left; ++ margin-top: 10px; ++} ++ ++/* Base elements */ ++ ++* {margin: 0; padding: 0;} ++body { font: 0.8125em Verdana, sans-serif;} ++ ++h1, h2, h3 { ++ font: 1.5em Georgia "Times New Roman", serif; ++ letter-spacing: 1px; ++ padding-bottom: 0.5em; ++} ++ ++h1 { font-size: 180%; } ++h2 { font-size: 130%; } ++h3 { font-size: 100%; } ++ ++p { ++ font-size: 92%; ++ line-height: 1.7em; ++} ++ ++a { ++ text-decoration: none; ++ color: #8D370A; ++ border-bottom: dotted 1px #8D370A; ++} ++ ++a:hover { ++ border-bottom: solid 1px #8D370A; ++ background: #eee; ++} ++ ++#librarySidebar { ++ float: left; ++ width: 150px; ++} ++ ++#libraryBody { ++ border-left: solid 1px #eee; ++ padding-left: 10px; ++ margin-left: 158px; ++ margin-right: 10px; ++} ++ ++ul, ol { line-height: 1.8em; } ++ul { list-style: square; } ++li { margin-left: 2.8em; font-size: 92%; } ++ ++p, ul, ol, img {margin-bottom: 1em;} ++ +Index: libtorrent-rasterbar/docs/css/rst.css +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libtorrent-rasterbar/docs/css/rst.css 2020-08-22 12:52:17.380557974 -0400 +@@ -0,0 +1,245 @@ ++.document { ++ margin-left: 10px; ++ margin-right: 10px; ++} ++ ++.document a { ++ border: none; ++ color: black; ++} ++ ++.document a:hover { ++ background: none; ++} ++ ++.document a.reference { ++ color: #8D370A; ++ border-bottom: dotted 1px #8D370A; ++} ++ ++.document a.reference:hover { ++ border-bottom: solid 1px #8D370A; ++ background: #eee; ++} ++ ++div.section { ++ margin-bottom: 3em; ++} ++ ++div.section div.section div.section { ++ margin-bottom: 2em; ++} ++ ++h3 { text-transform: uppercase; } ++ ++div.section p, div.section ul, div.section dl { ++} ++ ++table.docinfo { ++ text-align: left; ++ float: right; ++ width: 200px; ++ margin-right: 0px; ++ margin-left: 20px; ++ margin-bottom: 20px; ++} ++ ++table.docinfo th { ++ border-top: none; ++ font-size: 72%; ++ padding-left: 10px; ++} ++ ++table.docinfo td { ++ padding-left: 10px; ++ font-size: 88%; ++} ++ ++table.docinfo tr.field td, table.docinfo tr.field th {display: none;} ++ ++h1.title { display: none; } ++ ++dt { ++ font-size: 100%; ++ letter-spacing: 2px; ++ line-height: 1em; ++ color: #315586; ++ color: #000; ++ font-family: Tahoma; ++ font-weight: bold; ++} ++ ++dd { ++ line-height: 1.5em; ++ margin-left: 1em; ++ margin-bottom: 1em; ++ font-size: 92%; ++} ++ ++tt { ++ font: 1em "Courier New", "Courier"; ++ color: #315566; ++} ++ ++pre { ++ font-family: "Courier", monospace; ++ margin-right: 10px; ++ background: #C1E5F6; ++ border-left: solid 2px #6185A6; ++ border-right: solid 2px #6185A6; ++ padding: 5px 10px 5px 10px; ++ ++ background: #f6f6f6; ++ border: solid 1px #ddd; ++ margin: 1em 0; ++} ++ ++div.warning, div.note, div.important { ++ width: 80%; ++ margin: 1.5em auto; ++ background: #C1E5F6; ++ background: #F1FFF5; ++ border: solid 1px #D1DFD5; ++ padding: 5px 10px 5px 10px; ++} ++ ++p.admonition-title { ++ font-family: Georgia, "Lucida Grande"; ++ font-size: 128%; ++ letter-spacing: 2px; ++ text-transform: uppercase; ++ margin: 0 0 0.5em 0; ++ border-bottom: solid 1px #D1DFD5 ++} ++ ++div.sidebar { ++ background: #f8f8e8; ++ float: right; ++ width: 20em; ++ margin-right: 1em; ++ border: solid 1px #e5e5d5; ++ padding: 1.3em; ++} ++ ++div.sidebar p.sidebar-title { ++ font: 1.3em Georgia; ++ border-bottom: solid 1px #e5e5d5; ++ padding-bottom: 0.5em; ++ margin: 0 0 0.5em 0; ++} ++ ++h1 { font-size: 230%; } ++h2 { font-size: 180%; } ++h3 { font-size: 130%; } ++ ++table { margin-bottom: 1em; border-collapse: collapse; } ++table, th, td { border: none; } ++ ++th, td { padding: 0.3em; } ++ ++th { ++ text-align: left; ++ background: #f0f0e0; ++ border-right: solid 1px #f0f0e0; ++ border-top: solid 1px #e8e8d8; ++ border-bottom: solid 1px #e8e8d8; ++} ++ ++td { ++ background: #f8f8e8; ++ border-right: solid 1px #f8f8e8; ++ border-bottom: solid 1px #e8e8d8; ++} ++ ++td td { ++ background: #e8e8d8; ++ border-right: solid 1px #e8e8d8; ++ border-bottom: solid 1px #d8d8c8; ++} ++ ++div.topic { ++ border-left: solid 1px #eee; ++ padding-left: 1em; ++ margin: 0 0 1.5em; ++} ++ ++p.topic-title { ++ font: 1.3em Georgia, "Times New Roman", serif; ++} ++ ++/* TOC */ ++ ++div.contents { ++ border: none; ++} ++ ++#table-of-contents { ++ margin-left: 20px; ++ padding: 0 0 1em; ++ width: 200px; ++ float: right; ++ clear: right; ++ background: url(../img/blue_bottom.png) no-repeat bottom left; ++ border-right: solid 1px #A1C5D6; ++} ++ ++#table-of-contents p { ++ font-family: Georgia, "Times New Roman", serif; ++ background: #A1C5D6 url(../img/blue_top.png) no-repeat top left; ++ color: #AD370A; ++ padding: 0.5em; ++ margin: 0; ++} ++ ++#table-of-contents li { ++ margin: 0 0.5em 0 0.5em; ++} ++ ++#table-of-contents ul { ++ margin: 0; ++ padding: 0 0 0 0.8em; ++ list-style: none; ++ text-align: left; ++ line-height: 1.5em; ++} ++ ++#table-of-contents ul ul { ++ background: url(../img/dotline.gif) repeat-y; ++} ++ ++#table-of-contents a.reference { ++ border: none; ++ font: 0.88em Tahoma; ++ font-weight: bold; ++ color: #000050; ++ margin-right: 1em; ++ background: url(../img/minus.gif) no-repeat left 50%; ++ padding-left: 15px; ++} ++ ++#table-of-contents li li a.reference { ++ font-weight: normal; ++ background: none; ++ padding: 0; ++} ++ ++#table-of-contents a.reference:hover {text-decoration: underline;} ++ ++dd p { ++ font-size: 100%; ++} ++ ++dd pre { ++ font-size: 108.7%; ++} ++ ++li p, li li { font-size: 100%; } ++ ++/* IE Hacks */ ++ ++/* Hides from IE-mac \*/ ++* html li pre { height: 1%; } ++* html .topic pre { height: 1%; } ++* html #table-of-contents ul ul { height: 1%; } ++/* End hide from IE-mac */ ++ +Index: libtorrent-rasterbar/docs/index.rst +=================================================================== +--- libtorrent-rasterbar.orig/docs/index.rst 2020-08-22 12:52:17.384558088 -0400 ++++ libtorrent-rasterbar/docs/index.rst 2020-08-22 12:52:17.380557974 -0400 +@@ -87,7 +87,7 @@ + .. _go: https://github.com/steeve/libtorrent-go + .. _node: https://github.com/fanatid/node-libtorrent + +-.. _`Introduction, slides`: bittorrent.pdf ++.. _`Introduction, slides`: http://www.rasterbar.com/products/libtorrent/bittorrent.pdf + + libtorrent is a feature complete C++ bittorrent implementation focusing + on efficiency and scalability. It runs on embedded devices as well as +@@ -130,13 +130,6 @@ + bitcoin:373ZDeQgQSQNuxdinNAPnQ63CRNn4iEXzg + + +- +- +- +- +- +- + +
+ +@@ -146,7 +139,6 @@ + + + +- +
+
+
+Index: libtorrent-rasterbar/docs/makefile +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libtorrent-rasterbar/docs/makefile 2020-08-22 12:52:17.380557974 -0400 +@@ -0,0 +1,34 @@ ++#!/usr/bin/make -f ++# Upstream Author: Arvid Norberg - Modified by: Cristian Greco ++# This file has been downloaded from upstream svn and simplified in order to ++# generate an html documentation suitable for offline browsing. ++# This makefile assumes that you have python-docutils installed. ++ ++TARGETS = \ ++ index \ ++ udp_tracker_protocol \ ++ dht_rss \ ++ dht_store \ ++ client_test \ ++ building \ ++ features \ ++ troubleshooting \ ++ contributing\ ++ examples \ ++ extension_protocol \ ++ dht_extensions \ ++ dht_sec \ ++ python_binding \ ++ projects \ ++ utp \ ++ tuning \ ++ streaming \ ++ manual-ref ++ ++all: $(TARGETS:=_rst2html) ++ ++%_rst2html: %.rst ++ rst2html --template=template.txt --stylesheet-path=style.css --link-stylesheet --no-toc-backlinks $? > $*.html ++ ++clean: ++ @rm -f $(TARGETS:=.html) +Index: libtorrent-rasterbar/docs/manual-ref.html +=================================================================== +--- libtorrent-rasterbar.orig/docs/manual-ref.html 2020-08-22 12:52:17.384558088 -0400 ++++ libtorrent-rasterbar/docs/manual-ref.html 2020-08-22 12:52:17.384558088 -0400 +@@ -18,10 +18,13 @@ + +
+
+- +- +- +- ++
++ ++
+
+ + +@@ -3154,41 +3157,11 @@ + + + +- +- + +-
+
+- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +-
homebloguTP
downloaddocumentationDHT put extension
python bindingsfeaturesDHT security extension
mailing list archivecontributingstreaming
report a bugbuildingbittorrent slides
++ Copyright © 2005 Rasterbar Software. ++
+
+-
+- +
+ + +Index: libtorrent-rasterbar/docs/template.txt +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libtorrent-rasterbar/docs/template.txt 2020-08-22 12:52:17.384558088 -0400 +@@ -0,0 +1,29 @@ ++%(head_prefix)s ++%(head)s ++ ++ ++%(stylesheet)s ++ ++%(body_prefix)s ++
++
++ ++
++
++%(body_pre_docinfo)s ++%(docinfo)s ++%(body)s ++
++ ++
++%(body_suffix)s +Index: libtorrent-rasterbar/docs/index.html +=================================================================== +--- libtorrent-rasterbar.orig/docs/index.html 2020-08-22 12:52:17.384558088 -0400 ++++ libtorrent-rasterbar/docs/index.html 2020-08-22 12:52:17.384558088 -0400 +@@ -99,13 +99,6 @@ + bitcoin:373ZDeQgQSQNuxdinNAPnQ63CRNn4iEXzg + + +- +- +- +- +- +- + +
+ diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..91feb94 --- /dev/null +++ b/patches/series @@ -0,0 +1,2 @@ +0001-python-move-storage.patch +fix-html-docs.patch diff --git a/python3-libtorrent-dbg.install b/python3-libtorrent-dbg.install new file mode 100644 index 0000000..00f2fec --- /dev/null +++ b/python3-libtorrent-dbg.install @@ -0,0 +1 @@ +usr/lib/python3*/*-packages/*.cpython-*d*.so diff --git a/python3-libtorrent.install b/python3-libtorrent.install new file mode 100644 index 0000000..6b47655 --- /dev/null +++ b/python3-libtorrent.install @@ -0,0 +1,2 @@ +usr/lib/python3*/*-packages/*[!d]*.so +usr/lib/python3*/*-packages/*.egg-info diff --git a/rules b/rules new file mode 100755 index 0000000..6fe3143 --- /dev/null +++ b/rules @@ -0,0 +1,75 @@ +#!/usr/bin/make -f + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +export DEB_CXXFLAGS_MAINT_APPEND = -std=c++14 + +ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf mipsel m68k powerpc riscv64 sh4)) + export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + +PYTHON3=$(shell py3versions -vr) +ALLPY=$(PYTHON3) $(PYTHON3:%=%-dbg) + +CONFIGURE_ARGS = --with-libiconv --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH) + +%: + dh $@ --with python3 + +override_dh_auto_configure-nopy: + dh_auto_configure --builddirectory build -- $(CONFIGURE_ARGS) + +override_dh_auto_configure-%: + CPPFLAGS="$(CPPFLAGS) $(shell python$*-config --includes)" \ + PYTHON_LDFLAGS="$(shell python$*-config --libs)" \ + dh_auto_configure --builddirectory build-py$* -- \ + PYTHON=/usr/bin/python$* \ + PYTHON_INSTALL_PARAMS="--root=$(CURDIR)/debian/tmp \ + --install-layout=deb" \ + --enable-python-binding \ + --with-boost-python=boost_python$(subst .,,$(subst -dbg,,$*)) \ + $(CONFIGURE_ARGS) + mv build-py$*/bindings/python build/bindings/python$* + cp -r bindings/python/* build/bindings/python$* + sed s/-std=c++11//g < build/bindings/python$*/compile_cmd > build/bindings/python$*/compile_cmd.new && \ + mv -f build/bindings/python$*/compile_cmd.new build/bindings/python$*/compile_cmd + +override_dh_auto_configure: override_dh_auto_configure-nopy $(ALLPY:%=override_dh_auto_configure-%) + + +override_dh_auto_build-nopy: + dh_auto_build --builddirectory build + $(MAKE) -C docs/ -f makefile + +override_dh_auto_build-%: + dh_auto_build --builddirectory build/bindings/python$* + +override_dh_auto_build: override_dh_auto_build-nopy $(ALLPY:%=override_dh_auto_build-%) + + +override_dh_auto_install-nopy: + dh_auto_install --builddirectory build + +override_dh_auto_install-%: + dh_auto_install --builddirectory build/bindings/python$* + +override_dh_auto_install: override_dh_auto_install-nopy $(ALLPY:%=override_dh_auto_install-%) + +override_dh_auto_clean: + rm -rf build build-py* + dh_auto_clean --buildsystem=pybuild + +override_dh_compress: + dh_compress -Xcpp + +override_dh_strip: + dh_strip --dbg-package=libtorrent-rasterbar-dbg + +override_dh_makeshlibs: + dh_makeshlibs -V + +override_dh_python3: + find debian/python3-libtorrent -name '*.cpython-*d*-$(DEB_HOST_MULTIARCH).so' | xargs -r rm -f + dh_python3 diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/watch b/watch new file mode 100644 index 0000000..1efeb8a --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \ + https://github.com/arvidn/libtorrent/releases .*/libtorrent-rasterbar-(\d\S*)\.tar\.gz -- 2.30.2