From 4cdfa2fdc6e91336f340f720e0c71730126970fe Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 20 Jun 2021 13:45:31 +0300 Subject: [PATCH] Debian packaging for libtorrent RC_2_0 It is installed in /opt/libtorrent-rasterbar2/ --- libtorrent2-debian/README.Debian | 74 ++++++++ libtorrent2-debian/changelog | 154 ++++++++++++++++ libtorrent2-debian/compat | 1 + libtorrent2-debian/control | 76 ++++++++ libtorrent2-debian/copyright | 168 ++++++++++++++++++ libtorrent2-debian/docs | 1 + libtorrent2-debian/examples.makefile | 50 ++++++ libtorrent2-debian/files | 1 + .../libtorrent-rasterbar2-dev.install | 3 + .../libtorrent-rasterbar2.install | 1 + libtorrent2-debian/rules | 36 ++++ libtorrent2-debian/source/format | 1 + libtorrent2-debian/watch | 3 + 13 files changed, 569 insertions(+) create mode 100644 libtorrent2-debian/README.Debian create mode 100644 libtorrent2-debian/changelog create mode 100644 libtorrent2-debian/compat create mode 100644 libtorrent2-debian/control create mode 100644 libtorrent2-debian/copyright create mode 100644 libtorrent2-debian/docs create mode 100644 libtorrent2-debian/examples.makefile create mode 100644 libtorrent2-debian/files create mode 100644 libtorrent2-debian/libtorrent-rasterbar2-dev.install create mode 100644 libtorrent2-debian/libtorrent-rasterbar2.install create mode 100644 libtorrent2-debian/rules create mode 100644 libtorrent2-debian/source/format create mode 100644 libtorrent2-debian/watch diff --git a/libtorrent2-debian/README.Debian b/libtorrent2-debian/README.Debian new file mode 100644 index 000000000..a65448191 --- /dev/null +++ b/libtorrent2-debian/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/libtorrent2-debian/changelog b/libtorrent2-debian/changelog new file mode 100644 index 000000000..115751d66 --- /dev/null +++ b/libtorrent2-debian/changelog @@ -0,0 +1,154 @@ +libtorrent-rasterbar (2.0.4-1ppa1~21.04) hirsute; urgency=medium + + * Build 2.0.4 + * Use C++17 mode + * Don't provide python bindings + + -- sledgehammer999 Sun, 20 Jun 2021 13:11:33 +0300 + +libtorrent-rasterbar (1.2.13+git20210501.22af326f6c-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.13 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Sat, 01 May 2021 00:58:07 +0300 + +libtorrent-rasterbar (1.2.13+git20210323.34a979720b-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.13 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Tue, 23 Mar 2021 20:15:34 +0200 + +libtorrent-rasterbar (1.2.13+git20210308.ed960c2562-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.13 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Mon, 08 Mar 2021 14:01:57 +0200 + +libtorrent-rasterbar (1.2.12+git20210118.3efdb8a941-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.12 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Mon, 18 Jan 2021 14:04:38 +0200 + +libtorrent-rasterbar (1.2.12+git20210104.bfafd20428-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.12 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Mon, 04 Jan 2021 11:52:50 +0200 + +libtorrent-rasterbar (1.2.11+git20201226.2c7852ea22-3ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.11 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Sat, 28 Dec 2020 21:42:22 +0200 + +libtorrent-rasterbar (1.2.11+git20201226.2c7852ea22-2ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.11 + * Use C++14 mode + * Don't provide python2 bindings + + -- sledgehammer999 Sat, 27 Dec 2020 21:42:22 +0200 + +libtorrent-rasterbar (1.2.11+git20201226.2c7852ea22-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.11 + * Use C++14 mode + + -- sledgehammer999 Sat, 26 Dec 2020 21:42:22 +0200 + +libtorrent-rasterbar (1.2.11+git20201124.afa406f890-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.11 + * Use C++14 mode + + -- sledgehammer999 Wed, 25 Nov 2020 00:40:21 +0200 + +libtorrent-rasterbar (1.2.10+git20201018.3d48e7d056-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.10 + * Use C++14 mode + + -- sledgehammer999 Sun, 18 Oct 2020 21:44:40 +0300 + +libtorrent-rasterbar (1.2.6+git20200425.a9968916ca-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.6 + * Use C++14 mode + + -- sledgehammer999 Sat, 25 Apr 2020 03:09:38 +0300 + +libtorrent-rasterbar (1.2.6+git20200424.86f04b2c09-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.6 + * Use C++14 mode + + -- sledgehammer999 Fri, 24 Apr 2020 22:54:49 +0300 + +libtorrent-rasterbar (1.2.6+git20200422.a9968916ca-2ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.6 + * Use C++14 mode + + -- sledgehammer999 Wed, 22 Apr 2020 19:24:09 +0300 + +libtorrent-rasterbar (1.2.6+git20200422.a9968916ca-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.6 + * Use C++14 mode + + -- sledgehammer999 Wed, 22 Apr 2020 19:24:08 +0300 + +libtorrent-rasterbar (1.2.5+git20200401.dcf3c83d29-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.5 + * Use C++14 mode + + -- sledgehammer999 Wed, 01 Apr 2020 18:05:54 +0300 + +libtorrent-rasterbar (1.2.5+git20200323.0d06d47a29-2ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.5 + * Use C++14 mode + + -- sledgehammer999 Tue, 24 Mar 2020 15:37:24 +0200 + +libtorrent-rasterbar (1.2.5+git20200323.0d06d47a29-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.5 + * Use C++14 mode + + -- sledgehammer999 Mon, 23 Mar 2020 21:02:09 +0200 + +libtorrent-rasterbar (1.2.3+git20191216.68196dceae-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.3 + * Use C++14 mode + + -- sledgehammer999 Mon, 16 Dec 2019 01:11:34 +0200 + +libtorrent-rasterbar (1.2.2+git20191202.7b0bb2fb0b-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.2 + * Use C++14 mode + + -- sledgehammer999 Mon, 02 Dec 2019 15:36:28 +0200 + +libtorrent-rasterbar (1.2.0+git20190220.82900c441c-1ppa1~21.04) hirsute; urgency=medium + + * Build 1.2.0 + * Use C++14 mode + + -- sledgehammer999 Wed, 20 Feb 2019 17:04:17 +0200 diff --git a/libtorrent2-debian/compat b/libtorrent2-debian/compat new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/libtorrent2-debian/compat @@ -0,0 +1 @@ +10 diff --git a/libtorrent2-debian/control b/libtorrent2-debian/control new file mode 100644 index 000000000..96464c100 --- /dev/null +++ b/libtorrent2-debian/control @@ -0,0 +1,76 @@ +Source: libtorrent-rasterbar +Section: libs +Priority: optional +Maintainer: Cristian Greco +Uploaders: Andrew Starr-Bochicchio +Build-Depends: cmake, + debhelper (>= 9), + dh-python, + libboost-tools-dev, + libboost-dev, + libboost-system-dev, + libssl-dev, + pkg-config +Standards-Version: 3.9.8 +Vcs-Git: git://anonscm.debian.org/collab-maint/libtorrent-rasterbar.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libtorrent-rasterbar.git +Homepage: http://www.rasterbar.com/products/libtorrent/index.html +X-Python-Version: >= 2.4 +X-Python3-Version: >= 3.1 + +Package: libtorrent-rasterbar2 +Architecture: any +Pre-Depends: dpkg (>= 1.15.6~) +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-rasterbar2-dev +Section: libdevel +Architecture: any +Pre-Depends: dpkg (>= 1.15.6~) +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-rasterbar2-dbg +Section: debug +Priority: extra +Architecture: any +Pre-Depends: dpkg (>= 1.15.6~) +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. diff --git a/libtorrent2-debian/copyright b/libtorrent2-debian/copyright new file mode 100644 index 000000000..7a2f9d02d --- /dev/null +++ b/libtorrent2-debian/copyright @@ -0,0 +1,168 @@ +Format: http://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: * *.cpp *.hpp docs/*.rst docs/*.html +Copyright: 2003-2008 Arvid Norberg +Comment: Contributors: + 2003-2007 Daniel Wallin + 2007 Un Shyam + 2006 Magnus Jonsson + 2006 MassaRoddel +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: src/GeoIP.c include/libtorrent/GeoIP.h +Copyright: 2006 MaxMind LLC +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library 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 + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library; 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 Lesser General + Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + + +Files: bindings/python/*.py + bindings/python/src/*.cpp + bindings/python/src/*.hpp + include/libtorrent/invariant_check.hpp +Copyright: 2004-2007 Daniel Wallin + 2006-2008 Arvid Norberg + 2008 Andrew Resch +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 + This source code is provided as is by Unicode, Inc. No claims are + made as to fitness for any particular purpose. No warranties of any + kind are expressed or implied. The recipient agrees to determine + applicability of information provided. If this file has been + purchased on magnetic or optical media from Unicode, Inc., the + sole remedy for any claim will be exchange of defective media + within 90 days of receipt. + . + Limitations on Rights to Redistribute This Code + . + Unicode, Inc. hereby grants the right to freely use the information + supplied in this file in the creation of products supporting the + Unicode Standard, and to make copies of this file in any form + for internal or external distribution as long as this notice + remains attached. + + +Files: include/libtorrent/puff.hpp +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: src/sha1.cpp +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. diff --git a/libtorrent2-debian/docs b/libtorrent2-debian/docs new file mode 100644 index 000000000..62deb0497 --- /dev/null +++ b/libtorrent2-debian/docs @@ -0,0 +1 @@ +AUTHORS diff --git a/libtorrent2-debian/examples.makefile b/libtorrent2-debian/examples.makefile new file mode 100644 index 000000000..fe6e4901a --- /dev/null +++ b/libtorrent2-debian/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/libtorrent2-debian/files b/libtorrent2-debian/files new file mode 100644 index 000000000..c13632f18 --- /dev/null +++ b/libtorrent2-debian/files @@ -0,0 +1 @@ +libtorrent-rasterbar_2.0.4-1ppa1~21.04_source.buildinfo libs optional diff --git a/libtorrent2-debian/libtorrent-rasterbar2-dev.install b/libtorrent2-debian/libtorrent-rasterbar2-dev.install new file mode 100644 index 000000000..0eb5f756e --- /dev/null +++ b/libtorrent2-debian/libtorrent-rasterbar2-dev.install @@ -0,0 +1,3 @@ +opt/libtorrent-rasterbar2/include/* +opt/libtorrent-rasterbar2/lib/*/lib*.so +opt/libtorrent-rasterbar2/lib/*/pkgconfig/*.pc diff --git a/libtorrent2-debian/libtorrent-rasterbar2.install b/libtorrent2-debian/libtorrent-rasterbar2.install new file mode 100644 index 000000000..f05ae874d --- /dev/null +++ b/libtorrent2-debian/libtorrent-rasterbar2.install @@ -0,0 +1 @@ +opt/libtorrent-rasterbar2/lib/*/lib*.so.* diff --git a/libtorrent2-debian/rules b/libtorrent2-debian/rules new file mode 100644 index 000000000..53da5a6cc --- /dev/null +++ b/libtorrent2-debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel m68k powerpc riscv64 sh4)) + export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + +CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=/opt/libtorrent-rasterbar2/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -Ddeprecated-functions=off + +%: + dh $@ --buildsystem=cmake + +override_dh_auto_configure: + dh_auto_configure -- $(CMAKE_ARGS) + +#override_dh_auto_build: +# dh_auto_build --builddirectory build +# +#override_dh_auto_install: +# dh_auto_install --builddirectory build +# +#override_dh_auto_clean: +# rm -rf build +# +override_dh_compress: + dh_compress -Xcpp + +override_dh_strip: + dh_strip --dbg-package=libtorrent-rasterbar2-dbg + +override_dh_makeshlibs: + dh_makeshlibs -V diff --git a/libtorrent2-debian/source/format b/libtorrent2-debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/libtorrent2-debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/libtorrent2-debian/watch b/libtorrent2-debian/watch new file mode 100644 index 000000000..1efeb8a41 --- /dev/null +++ b/libtorrent2-debian/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