aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog510
-rw-r--r--debian/control23
-rw-r--r--debian/copyright50
-rw-r--r--debian/examples1
-rw-r--r--debian/gbp.conf3
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rw-r--r--debian/tests/run-tests.py45
-rw-r--r--debian/upstream/signing-key.asc71
-rw-r--r--debian/watch3
11 files changed, 724 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6284ff5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,510 @@
+gallery-dl (1.27.5-1) unstable; urgency=medium
+
+ * New upstream version 1.27.5.
+
+ -- Unit 193 <unit193@debian.org> Sat, 28 Sep 2024 20:02:14 -0400
+
+gallery-dl (1.27.4-1) unstable; urgency=medium
+
+ * New upstream version 1.27.4.
+
+ -- Unit 193 <unit193@debian.org> Sat, 07 Sep 2024 18:35:06 -0400
+
+gallery-dl (1.27.3-1) unstable; urgency=medium
+
+ * New upstream version 1.27.3.
+
+ -- Unit 193 <unit193@debian.org> Mon, 12 Aug 2024 02:42:58 -0400
+
+gallery-dl (1.27.2-1) unstable; urgency=medium
+
+ * New upstream version 1.27.2.
+
+ -- Unit 193 <unit193@debian.org> Sat, 03 Aug 2024 20:28:12 -0400
+
+gallery-dl (1.27.1-1) unstable; urgency=medium
+
+ * New upstream version 1.27.1.
+
+ -- Unit 193 <unit193@debian.org> Sat, 22 Jun 2024 21:20:22 -0400
+
+gallery-dl (1.27.0-1) unstable; urgency=medium
+
+ * New upstream version 1.27.0.
+ * Update Standards-Version to 4.7.0.
+
+ -- Unit 193 <unit193@debian.org> Thu, 06 Jun 2024 02:40:45 -0400
+
+gallery-dl (1.26.9-1) unstable; urgency=medium
+
+ * New upstream version 1.26.9.
+
+ -- Unit 193 <unit193@debian.org> Mon, 25 Mar 2024 02:58:38 -0400
+
+gallery-dl (1.26.8-1) unstable; urgency=medium
+
+ * New upstream version 1.26.8.
+
+ -- Unit 193 <unit193@debian.org> Tue, 20 Feb 2024 02:33:00 -0500
+
+gallery-dl (1.26.7-1) unstable; urgency=medium
+
+ * New upstream version 1.26.7.
+ * d/examples: Install example config files.
+
+ -- Unit 193 <unit193@debian.org> Tue, 23 Jan 2024 23:37:56 -0500
+
+gallery-dl (1.26.6-1) unstable; urgency=medium
+
+ * New upstream version 1.26.6.
+ * d/copyright: Bump years.
+
+ -- Unit 193 <unit193@debian.org> Mon, 08 Jan 2024 03:23:25 -0500
+
+gallery-dl (1.26.5-1) unstable; urgency=medium
+
+ * New upstream version 1.26.5.
+
+ -- Unit 193 <unit193@debian.org> Mon, 25 Dec 2023 01:28:05 -0500
+
+gallery-dl (1.26.4-1) unstable; urgency=medium
+
+ * New upstream version 1.26.4.
+
+ -- Unit 193 <unit193@debian.org> Mon, 11 Dec 2023 01:13:23 -0500
+
+gallery-dl (1.26.3-1) unstable; urgency=medium
+
+ * New upstream version 1.26.3.
+
+ -- Unit 193 <unit193@debian.org> Mon, 27 Nov 2023 17:58:46 -0500
+
+gallery-dl (1.26.2-1) unstable; urgency=medium
+
+ * New upstream version 1.26.2.
+
+ -- Unit 193 <unit193@debian.org> Sat, 04 Nov 2023 18:46:35 -0400
+
+gallery-dl (1.26.1-1) unstable; urgency=medium
+
+ * New upstream version 1.26.1.
+
+ -- Unit 193 <unit193@debian.org> Sun, 22 Oct 2023 01:00:25 -0400
+
+gallery-dl (1.26.0-1) unstable; urgency=medium
+
+ * New upstream version 1.26.0.
+
+ -- Unit 193 <unit193@debian.org> Tue, 03 Oct 2023 18:34:36 -0400
+
+gallery-dl (1.25.8-1) unstable; urgency=medium
+
+ * New upstream version 1.25.8.
+
+ -- Unit 193 <unit193@debian.org> Sat, 15 Jul 2023 17:10:28 -0400
+
+gallery-dl (1.25.7-1) unstable; urgency=medium
+
+ * New upstream version 1.25.7.
+
+ -- Unit 193 <unit193@debian.org> Mon, 03 Jul 2023 00:57:59 -0400
+
+gallery-dl (1.25.6-1) unstable; urgency=medium
+
+ * New upstream version 1.25.6.
+
+ -- Unit 193 <unit193@debian.org> Mon, 19 Jun 2023 01:16:03 -0400
+
+gallery-dl (1.25.5-1) unstable; urgency=medium
+
+ * New upstream version 1.25.5.
+
+ -- Unit 193 <unit193@debian.org> Sun, 28 May 2023 01:36:03 -0400
+
+gallery-dl (1.25.4-1) unstable; urgency=medium
+
+ * New upstream version 1.25.4.
+
+ -- Unit 193 <unit193@debian.org> Mon, 22 May 2023 01:04:55 -0400
+
+gallery-dl (1.25.3-1) unstable; urgency=medium
+
+ * New upstream version 1.25.3.
+
+ -- Unit 193 <unit193@debian.org> Sun, 30 Apr 2023 16:45:34 -0400
+
+gallery-dl (1.25.2-1) unstable; urgency=medium
+
+ * New upstream version 1.25.2.
+
+ -- Unit 193 <unit193@debian.org> Tue, 25 Apr 2023 21:32:34 -0400
+
+gallery-dl (1.25.1-1) unstable; urgency=medium
+
+ * New upstream version 1.25.1.
+
+ -- Unit 193 <unit193@debian.org> Fri, 31 Mar 2023 07:25:43 -0400
+
+gallery-dl (1.25.0-1) unstable; urgency=medium
+
+ * New upstream version 1.25.0.
+
+ -- Unit 193 <unit193@debian.org> Mon, 13 Mar 2023 02:08:07 -0400
+
+gallery-dl (1.24.5-1) unstable; urgency=medium
+
+ * New upstream version 1.24.5.
+ * d/rules: Opt-out of trimmed changelogs.
+
+ -- Unit 193 <unit193@debian.org> Mon, 30 Jan 2023 04:41:34 -0500
+
+gallery-dl (1.24.4-1) unstable; urgency=medium
+
+ * New upstream version 1.24.4.
+ * d/copyright: Bump years.
+
+ -- Unit 193 <unit193@debian.org> Thu, 12 Jan 2023 03:42:42 -0500
+
+gallery-dl (1.24.3-1) unstable; urgency=medium
+
+ * New upstream version 1.24.3.
+
+ -- Unit 193 <unit193@debian.org> Wed, 11 Jan 2023 04:09:41 -0500
+
+gallery-dl (1.24.2-1) unstable; urgency=medium
+
+ * New upstream version 1.24.2.
+ * Update Standards-Version to 4.6.2.
+
+ -- Unit 193 <unit193@debian.org> Sat, 24 Dec 2022 17:15:32 -0500
+
+gallery-dl (1.24.1-1) unstable; urgency=medium
+
+ * New upstream version 1.24.1.
+
+ -- Unit 193 <unit193@debian.org> Sun, 04 Dec 2022 23:25:27 -0500
+
+gallery-dl (1.24.0-1) unstable; urgency=medium
+
+ * New upstream version 1.24.0.
+
+ -- Unit 193 <unit193@debian.org> Tue, 22 Nov 2022 04:35:11 -0500
+
+gallery-dl (1.23.5-1) unstable; urgency=medium
+
+ * New upstream version 1.23.5.
+
+ -- Unit 193 <unit193@debian.org> Tue, 01 Nov 2022 21:33:44 -0400
+
+gallery-dl (1.23.3-1) unstable; urgency=medium
+
+ * New upstream version 1.23.3.
+
+ -- Unit 193 <unit193@debian.org> Mon, 17 Oct 2022 03:46:23 -0400
+
+gallery-dl (1.23.2-1) unstable; urgency=medium
+
+ * New upstream version 1.23.2.
+
+ -- Unit 193 <unit193@debian.org> Mon, 03 Oct 2022 04:10:00 -0400
+
+gallery-dl (1.23.1-1) unstable; urgency=medium
+
+ * New upstream version 1.23.1.
+
+ -- Unit 193 <unit193@debian.org> Thu, 22 Sep 2022 19:44:46 -0400
+
+gallery-dl (1.23.0-1) unstable; urgency=medium
+
+ * New upstream version 1.23.0.
+ * d/t/run-tests.py: Re-sync from upstream, upgrade from nose to unittests.
+ (Closes: #1018363)
+ * d/t/control: Add yt-dlp test dep to enable those tests too.
+
+ -- Unit 193 <unit193@debian.org> Mon, 29 Aug 2022 02:19:53 -0400
+
+gallery-dl (1.22.4-1) unstable; urgency=medium
+
+ * New upstream version 1.22.4.
+ * d/control: Add python3-brotli to suggests.
+
+ -- Unit 193 <unit193@debian.org> Sat, 16 Jul 2022 00:40:05 -0400
+
+gallery-dl (1.22.3-1) unstable; urgency=medium
+
+ * New upstream version 1.22.3.
+
+ -- Unit 193 <unit193@debian.org> Tue, 28 Jun 2022 19:54:50 -0400
+
+gallery-dl (1.22.1-1) unstable; urgency=medium
+
+ * New upstream version 1.22.1.
+
+ -- Unit 193 <unit193@debian.org> Sun, 05 Jun 2022 00:35:51 -0400
+
+gallery-dl (1.22.0-1) unstable; urgency=medium
+
+ * New upstream version 1.22.0.
+ * Update Standards-Version to 4.6.1.
+
+ -- Unit 193 <unit193@debian.org> Thu, 26 May 2022 23:57:38 -0400
+
+gallery-dl (1.21.2-1) unstable; urgency=medium
+
+ * New upstream version 1.21.2.
+
+ -- Unit 193 <unit193@debian.org> Fri, 29 Apr 2022 01:59:43 -0400
+
+gallery-dl (1.21.1-1) unstable; urgency=medium
+
+ * New upstream version 1.21.1.
+
+ -- Unit 193 <unit193@debian.org> Sat, 09 Apr 2022 00:17:06 -0400
+
+gallery-dl (1.21.0-1) unstable; urgency=medium
+
+ * New upstream version 1.21.0.
+
+ -- Unit 193 <unit193@debian.org> Tue, 15 Mar 2022 00:21:12 -0400
+
+gallery-dl (1.20.5-1) unstable; urgency=medium
+
+ * New upstream version 1.20.5.
+
+ -- Unit 193 <unit193@debian.org> Mon, 14 Feb 2022 17:17:45 -0500
+
+gallery-dl (1.20.4-1) unstable; urgency=medium
+
+ * New upstream version 1.20.4.
+
+ -- Unit 193 <unit193@debian.org> Thu, 10 Feb 2022 22:51:32 -0500
+
+gallery-dl (1.20.3-1) unstable; urgency=medium
+
+ * New upstream version 1.20.3.
+ * d/copyright: Update years.
+
+ -- Unit 193 <unit193@debian.org> Tue, 25 Jan 2022 20:12:49 -0500
+
+gallery-dl (1.20.1-1) unstable; urgency=medium
+
+ * New upstream version 1.20.1.
+
+ -- Unit 193 <unit193@debian.org> Sat, 08 Jan 2022 20:42:19 -0500
+
+gallery-dl (1.20.0-1) unstable; urgency=medium
+
+ * New upstream version 1.20.0.
+ * d/control: Set yt-dlp as primary alternate recommend for youtube-dl.
+
+ -- Unit 193 <unit193@debian.org> Thu, 30 Dec 2021 01:57:54 -0500
+
+gallery-dl (1.19.3-1) unstable; urgency=medium
+
+ * New upstream version 1.19.3.
+
+ -- Unit 193 <unit193@debian.org> Wed, 01 Dec 2021 14:45:42 -0500
+
+gallery-dl (1.19.2-1) unstable; urgency=medium
+
+ * New upstream version 1.19.2.
+
+ -- Unit 193 <unit193@debian.org> Wed, 10 Nov 2021 01:26:58 -0500
+
+gallery-dl (1.19.1-1) unstable; urgency=medium
+
+ * New upstream version 1.19.1.
+
+ -- Unit 193 <unit193@debian.org> Mon, 01 Nov 2021 05:04:11 -0400
+
+gallery-dl (1.19.0-1) unstable; urgency=medium
+
+ * New upstream version 1.19.0.
+
+ -- Unit 193 <unit193@debian.org> Tue, 05 Oct 2021 23:31:15 -0400
+
+gallery-dl (1.18.4-1) unstable; urgency=medium
+
+ * New upstream version 1.18.4.
+ * Update Standards-Version to 4.6.0.
+
+ -- Unit 193 <unit193@debian.org> Thu, 09 Sep 2021 01:58:40 -0400
+
+gallery-dl (1.18.3-1) unstable; urgency=medium
+
+ * New upstream version 1.18.3.
+
+ -- Unit 193 <unit193@debian.org> Fri, 13 Aug 2021 17:46:11 -0400
+
+gallery-dl (1.18.2-1) unstable; urgency=medium
+
+ * New upstream version 1.18.2.
+
+ -- Unit 193 <unit193@debian.org> Wed, 04 Aug 2021 02:16:30 -0400
+
+gallery-dl (1.18.0-1) unstable; urgency=medium
+
+ * New upstream version 1.18.0.
+
+ -- Unit 193 <unit193@debian.org> Tue, 22 Jun 2021 22:30:48 -0400
+
+gallery-dl (1.17.5-1) unstable; urgency=medium
+
+ * New upstream version 1.17.5.
+
+ -- Unit 193 <unit193@debian.org> Sat, 05 Jun 2021 20:56:14 -0400
+
+gallery-dl (1.17.3-1) unstable; urgency=medium
+
+ * New upstream version 1.17.3.
+
+ -- Unit 193 <unit193@debian.org> Mon, 03 May 2021 23:37:06 -0400
+
+gallery-dl (1.17.2-1) unstable; urgency=medium
+
+ * New upstream version 1.17.2.
+
+ -- Unit 193 <unit193@debian.org> Tue, 13 Apr 2021 19:34:14 -0400
+
+gallery-dl (1.17.0-1) unstable; urgency=medium
+
+ * New upstream version 1.17.0.
+
+ -- Unit 193 <unit193@debian.org> Sat, 13 Mar 2021 16:26:47 -0500
+
+gallery-dl (1.16.5-1) unstable; urgency=medium
+
+ * New upstream version 1.16.5.
+
+ -- Unit 193 <unit193@debian.org> Tue, 16 Feb 2021 21:36:22 -0500
+
+gallery-dl (1.16.4-1) unstable; urgency=medium
+
+ * New upstream version 1.16.4.
+
+ -- Unit 193 <unit193@debian.org> Thu, 28 Jan 2021 16:01:55 -0500
+
+gallery-dl (1.16.3-1) unstable; urgency=medium
+
+ * New upstream version 1.16.3.
+ * d/copyright: Update years.
+
+ -- Unit 193 <unit193@debian.org> Mon, 11 Jan 2021 03:26:48 -0500
+
+gallery-dl (1.16.1-1) unstable; urgency=medium
+
+ * New upstream version 1.16.1.
+
+ -- Unit 193 <unit193@debian.org> Wed, 30 Dec 2020 18:42:06 -0500
+
+gallery-dl (1.16.0-1) unstable; urgency=medium
+
+ * New upstream version 1.16.0.
+
+ -- Unit 193 <unit193@debian.org> Sun, 13 Dec 2020 23:08:05 -0500
+
+gallery-dl (1.15.4-1) unstable; urgency=medium
+
+ * New upstream version 1.15.4.
+ * d/watch: Bump version to 4.
+ * Update Standards-Version to 4.5.1.
+
+ -- Unit 193 <unit193@debian.org> Mon, 30 Nov 2020 21:33:29 -0500
+
+gallery-dl (1.15.3-1) unstable; urgency=medium
+
+ * New upstream version 1.15.3.
+
+ -- Unit 193 <unit193@debian.org> Fri, 13 Nov 2020 19:17:20 -0500
+
+gallery-dl (1.15.2-1) unstable; urgency=medium
+
+ * New upstream version 1.15.2.
+
+ -- Unit 193 <unit193@debian.org> Sun, 25 Oct 2020 17:59:43 -0400
+
+gallery-dl (1.15.1-1) unstable; urgency=medium
+
+ * New upstream version 1.15.1.
+ * d/copyright: Upstream no longer includes gallery_dl/aes.py, drop reference.
+
+ -- Unit 193 <unit193@debian.org> Mon, 12 Oct 2020 18:22:10 -0400
+
+gallery-dl (1.15.0-1) unstable; urgency=medium
+
+ * New upstream version 1.15.0.
+
+ -- Unit 193 <unit193@debian.org> Mon, 28 Sep 2020 18:28:08 -0400
+
+gallery-dl (1.14.5-1) unstable; urgency=medium
+
+ * New upstream version 1.14.5.
+
+ -- Unit 193 <unit193@debian.org> Tue, 01 Sep 2020 18:58:57 -0400
+
+gallery-dl (1.14.4-1) unstable; urgency=medium
+
+ * New upstream version 1.14.4.
+ - Skip external OAuth tests (LP: #1888896)
+
+ -- Unit 193 <unit193@debian.org> Sat, 15 Aug 2020 17:49:00 -0400
+
+gallery-dl (1.14.3-1) unstable; urgency=medium
+
+ * New upstream version 1.14.3.
+
+ -- Unit 193 <unit193@debian.org> Mon, 20 Jul 2020 01:03:56 -0400
+
+gallery-dl (1.14.2-1) unstable; urgency=medium
+
+ * New upstream version 1.14.2.
+
+ -- Unit 193 <unit193@debian.org> Mon, 29 Jun 2020 00:33:46 -0400
+
+gallery-dl (1.14.1-1) unstable; urgency=medium
+
+ * New upstream version 1.14.1.
+
+ -- Unit 193 <unit193@debian.org> Tue, 16 Jun 2020 02:01:42 -0400
+
+gallery-dl (1.14.0-1) unstable; urgency=medium
+
+ * New upstream version 1.14.0.
+ * d/rules: Install upstream's changelog.
+
+ -- Unit 193 <unit193@debian.org> Mon, 01 Jun 2020 23:13:41 -0400
+
+gallery-dl (1.13.6-1) unstable; urgency=medium
+
+ * New upstream version 1.13.6.
+ * d/copyright: Update my email address here as well.
+
+ -- Unit 193 <unit193@debian.org> Sun, 03 May 2020 00:07:52 -0400
+
+gallery-dl (1.13.5-1) unstable; urgency=medium
+
+ * New upstream version 1.13.5.
+ * d/control:
+ - Bump DH compat to 13.
+ - Update my email address.
+
+ -- Unit 193 <unit193@debian.org> Wed, 29 Apr 2020 17:44:06 -0400
+
+gallery-dl (1.13.4-1) unstable; urgency=medium
+
+ * New upstream version 1.13.4.
+
+ -- Unit 193 <unit193@ubuntu.com> Tue, 14 Apr 2020 18:19:46 -0400
+
+gallery-dl (1.13.3-1) unstable; urgency=medium
+
+ * New upstream version 1.13.3.
+ * Run upstream's testsuite for autopkgtest.
+
+ -- Unit 193 <unit193@ubuntu.com> Sat, 28 Mar 2020 23:06:35 -0400
+
+gallery-dl (1.13.2-1) unstable; urgency=medium
+
+ * Initial release.
+
+ -- Unit 193 <unit193@ubuntu.com> Mon, 16 Mar 2020 23:21:46 -0400
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b93a021
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: gallery-dl
+Maintainer: Unit 193 <unit193@debian.org>
+Section: web
+Priority: optional
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-python,
+ python3-all,
+ python3-setuptools
+Rules-Requires-Root: no
+Standards-Version: 4.7.0
+Homepage: https://github.com/mikf/gallery-dl
+Vcs-Browser: https://git.unit193.net/cgit/users/unit193/gallery-dl.git
+Vcs-Git: https://git.unit193.net/cgit/users/unit193/gallery-dl.git
+
+Package: gallery-dl
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: ffmpeg, python3-brotli, yt-dlp | youtube-dl
+Description: command-line program to download image galleries
+ gallery-dl is a command-line program to download image-galleries and
+ -collections from several image hosting sites. It is a cross-platform
+ tool with many configuration options and powerful filenaming capabilities.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..43de627
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,50 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gallery_dl
+Source: https://github.com/mikf/gallery-dl
+
+Files: * debian/tests/run-tests.py
+Copyright: 2014-2024, Mike Fährmann <mike_faehrmann@web.de>
+ 2016-2019, Leonardo Taccari
+License: GPL-2.0
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License, v2, as
+ published by the Free Software Foundation
+ .
+ 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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ 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: debian/*
+Copyright: 2019-2024, Unit 193 <unit193@debian.org>
+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:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. 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.
+ 3. Neither the name of the copyright holder 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 HOLDERS 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.
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..468eff9
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+docs/*.conf
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..5474c60
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+pristine-tar = True
+sign-tags = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b5c6e87
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=gallery-dl
+export PYBUILD_DISABLE_python3=test
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_installchangelogs:
+ DEB_BUILD_OPTIONS=notrimdch dh_installchangelogs CHANGELOG.md
+
+override_dh_clean:
+ rm -rf gallery_dl.egg-info
+ dh_clean
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..06308e5
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-tests.py
+Depends: @, @builddeps@, yt-dlp
+Restrictions: allow-stderr
diff --git a/debian/tests/run-tests.py b/debian/tests/run-tests.py
new file mode 100644
index 0000000..c73db63
--- /dev/null
+++ b/debian/tests/run-tests.py
@@ -0,0 +1,45 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+
+# Copyright 2021 Mike Fährmann
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+
+import os
+import sys
+import unittest
+
+TEST_DIRECTORY = "test"
+
+sys.path.insert(0, TEST_DIRECTORY)
+
+if len(sys.argv) <= 1:
+ TESTS = [
+ file.rpartition(".")[0]
+ for file in os.listdir(TEST_DIRECTORY)
+ if file.startswith("test_") and file != "test_results.py"
+ ]
+else:
+ TESTS = [
+ name if name.startswith("test_") else "test_" + name
+ for name in sys.argv[1:]
+ ]
+
+
+suite = unittest.TestSuite()
+
+for test in TESTS:
+ try:
+ module = __import__(test)
+ except ImportError:
+ print("unable to import", test)
+ else:
+ tests = unittest.defaultTestLoader.loadTestsFromModule(module)
+ suite.addTests(tests)
+
+if __name__ == "__main__":
+ result = unittest.TextTestRunner(verbosity=2).run(suite)
+ if result.errors or result.failures:
+ sys.exit(1)
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..c676028
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,71 @@
+pub rsa4096 2012-03-03 [SC]
+ 3E09F5908333DD83DBDCE7375680CA389D365A88
+uid [ unknown] Mike Fährmann <mike_faehrmann@web.de>
+uid [ unknown] Mike Fährmann <mike.faehrmann@s2010.tu-chemnitz.de>
+sub rsa4096 2012-03-03 [E]
+ 7E453DEE75B6C82BE3E49CC63FB5A8EC565A3EB1
+
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBE9RZg4BEAC5HaRDb8wKNiX/Vo7CgFfuM+mdZJDT4xC3yExXVVWePtuL14+G
+OHnRKhKRJ142U9S8q63y0iYLQ+x6sH+Ri9odZud3iEBKmJmmmh+fHl3AGkyjVEwr
+8dUFhxnW4tCZVGJloU5Px8hfxETL692SGvoQgeqN90ms9rNC+SJ0xCg0R5GUTzkG
+5F0++Hw5/6f5ECDEYArRyN5ZEdU3sErse1Db7cz7YkjguPFt9mfQYSpx8SJA2gaZ
+emsTUElANiJsMMunl0+ldm4rLTfTqV9cq0isfM3DFSeLw7j8/MftdFn1khY+QXMm
+y2MPUK+TvPnBIRYh/gFwrmoUDHrjlLihAC/VAKNHJV61LGgscAZnHBIZWLq+VTnD
+PEP+4uPsU4ypoSch4fB03mb1z/rbQV7DKHYqhNZsNreIr9q6MlRnSMbgEUEwtXQ5
+QqiJkjDAr7qZQ1vK1WSdfuuU8ou020bRxzStsjOynfkefjOj4c8MJWFz7+LgH71N
+JEPgOuSSQ9EPhnd3k/mFHibxNq+KgVLG1fqV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fnuOt+b6DfLSalk2QfyZilL40LP
+9NH6QFkhNM3EQ+rDaurD7SdU1Jt8GLNQFzlgottcU+FpZwKV3zwwTB0JNyStgcD1
+xs+BbgazT0vS
+=2COF
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d048ba6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/,pgpsigurlmangle=s/$/.asc/ \
+https://github.com/mikf/gallery-dl/releases .*/gallery_dl-([\d\.]+)\.tar\.(?:gz|bz2|xz)