summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:37:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:37:43 +0000
commit32d0011be42ca05099175cd82210e02a56ef2a54 (patch)
tree5c0afe509e617e7ca4703bd895afc8b1fb342632
parentAdding upstream version 2023.03.04. (diff)
downloadyt-dlp-debian.tar.xz
yt-dlp-debian.zip
Adding debian version 2023.03.04-1.debian/2023.03.04-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog184
-rw-r--r--debian/clean1
-rw-r--r--debian/control54
-rw-r--r--debian/copyright54
-rw-r--r--debian/gbp.conf3
-rw-r--r--debian/patches/0001-Correct-path-for-docs.patch19
-rw-r--r--debian/patches/0003-Remove-use-of-git.patch19
-rw-r--r--debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch25
-rw-r--r--debian/patches/series3
-rwxr-xr-xdebian/rules25
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control5
-rwxr-xr-xdebian/tests/upstream-tests.sh16
-rw-r--r--debian/upstream/metadata5
-rw-r--r--debian/watch4
15 files changed, 418 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8e9b083
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,184 @@
+yt-dlp (2023.03.04-1) unstable; urgency=medium
+
+ * d/control, d/gbp.conf, d/rules: Move generation of extractors to buildtime.
+ Thanks to Paul Wise.
+ * New upstream version 2023.03.04.
+
+ -- Unit 193 <unit193@debian.org> Mon, 06 Mar 2023 01:34:38 -0500
+
+yt-dlp (2023.02.17-1) unstable; urgency=medium
+
+ * New upstream version 2023.02.17.
+ - youtube: Fix uploader_id extraction. (Closes: #1031522)
+ - Refresh supported sites.
+ * d/rules: Opt-out of trimmed changelogs.
+
+ -- Unit 193 <unit193@debian.org> Fri, 17 Feb 2023 18:37:11 -0500
+
+yt-dlp (2023.01.06-1) unstable; urgency=medium
+
+ * New upstream version 2023.01.06.
+ - Refresh supported sites.
+ - Refresh patch.
+ * d/control: Build-Depend on pybuild-plugin-pyproject.
+
+ -- Unit 193 <unit193@debian.org> Fri, 06 Jan 2023 20:33:39 -0500
+
+yt-dlp (2023.01.02-1) unstable; urgency=medium
+
+ * New upstream version 2023.01.02.
+ - Refresh supported sites.
+ * d/copyright: Bump years.
+ * Update Standards-Version to 4.6.2.
+
+ -- Unit 193 <unit193@debian.org> Tue, 03 Jan 2023 04:09:06 -0500
+
+yt-dlp (2022.11.11-1) unstable; urgency=medium
+
+ * New upstream version 2022.11.11.
+ - Refresh supported sites.
+ - Refresh patch.
+
+ -- Unit 193 <unit193@debian.org> Sat, 12 Nov 2022 19:17:05 -0500
+
+yt-dlp (2022.10.04-1) unstable; urgency=medium
+
+ * New upstream version 2022.10.04.
+ - Refresh supported sites.
+ - Refresh patches.
+
+ -- Unit 193 <unit193@debian.org> Tue, 04 Oct 2022 04:52:29 -0400
+
+yt-dlp (2022.09.01-1) unstable; urgency=medium
+
+ * New upstream version 2022.09.01.
+ - Refresh supported sites.
+
+ -- Unit 193 <unit193@debian.org> Thu, 01 Sep 2022 17:35:30 -0400
+
+yt-dlp (2022.08.19-1) unstable; urgency=medium
+
+ * New upstream version 2022.08.19.
+ - Refresh supported sites.
+ * d/p/0002-setup.py-Do-not-include-devscripts-as-a-package.patch:
+ - Drop upstream patch.
+
+ -- Unit 193 <unit193@debian.org> Thu, 18 Aug 2022 22:30:28 -0400
+
+yt-dlp (2022.08.14-2) unstable; urgency=medium
+
+ * d/p/0002-setup.py-Do-not-include-devscripts-as-a-package.patch:
+ - Grab an upstream commit to exclude the devscripts from the package.
+
+ -- Unit 193 <unit193@debian.org> Mon, 15 Aug 2022 04:24:18 -0400
+
+yt-dlp (2022.08.14-1) unstable; urgency=medium
+
+ * New upstream version 2022.08.14.
+ - Refresh supported sites.
+
+ -- Unit 193 <unit193@debian.org> Sun, 14 Aug 2022 22:28:53 -0400
+
+yt-dlp (2022.08.08-1) unstable; urgency=medium
+
+ * New upstream version 2022.08.08.
+ - Refresh supported sites.
+ * d/p/0002-Disable-upstream-s-autoupdate-mechanism.patch:
+ - Drop, refresh remaining.
+ * d/rules: Use new upstream feature to set variant and update message.
+ (Closes: #1001776)
+
+ -- Unit 193 <unit193@debian.org> Mon, 08 Aug 2022 23:57:25 -0400
+
+yt-dlp (2022.07.18-1) unstable; urgency=medium
+
+ * New upstream version 2022.07.18.
+ - [build] Consistent order for lazy extractors by lamby. (Closes: #1014041)
+ - Refresh supported sites.
+ - Refresh patches.
+
+ -- Unit 193 <unit193@debian.org> Mon, 18 Jul 2022 23:36:50 -0400
+
+yt-dlp (2022.06.29-1) unstable; urgency=medium
+
+ * New upstream version 2022.06.29.
+ - Refresh supported sites.
+ - Refresh patches.
+
+ -- Unit 193 <unit193@debian.org> Thu, 30 Jun 2022 22:22:01 -0400
+
+yt-dlp (2022.06.22.1-1) unstable; urgency=medium
+
+ * New upstream version 2022.06.22.1. (Closes: #1013332)
+ - Refresh supported sites.
+ - Refresh patches.
+ * d/control: Lower mpv to suggests, it's only used in rtsp
+ streams and seems those are unpopular.
+
+ -- Unit 193 <unit193@debian.org> Wed, 22 Jun 2022 18:45:03 -0400
+
+yt-dlp (2022.05.18-1) unstable; urgency=medium
+
+ * New upstream version 2022.05.18.
+ - Refresh supported sites.
+ - Refresh patches.
+ * Update Standards-Version to 4.6.1.
+
+ -- Unit 193 <unit193@debian.org> Thu, 19 May 2022 05:25:24 -0400
+
+yt-dlp (2022.04.08-1) unstable; urgency=medium
+
+ * New upstream version 2022.04.08.
+ - Refresh supported sites.
+ - Refresh patch.
+ * d/control: Require dh-python 5.20211213 for 'environment marker' support.
+ (LP: #1967266)
+
+ -- Unit 193 <unit193@debian.org> Sat, 09 Apr 2022 00:56:04 -0400
+
+yt-dlp (2022.03.08.1-1) unstable; urgency=medium
+
+ * New upstream version 2022.03.08.1.
+ - Refresh supported sites.
+ - Refresh patch.
+
+ -- Unit 193 <unit193@debian.org> Tue, 08 Mar 2022 20:00:37 -0500
+
+yt-dlp (2022.02.04-1) unstable; urgency=medium
+
+ * New upstream version 2022.02.04.
+
+ -- Unit 193 <unit193@debian.org> Fri, 04 Feb 2022 02:11:34 -0500
+
+yt-dlp (2022.02.03-1) unstable; urgency=medium
+
+ * New upstream version 2022.02.03.
+ - Refresh supported sites.
+ - Refresh patch.
+
+ -- Unit 193 <unit193@debian.org> Thu, 03 Feb 2022 20:39:11 -0500
+
+yt-dlp (2022.01.21-1) unstable; urgency=medium
+
+ * New upstream version 2022.01.21.
+ - Refresh supported sites.
+ - Refresh patches.
+ * d/copyright: Update years.
+
+ -- Unit 193 <unit193@debian.org> Fri, 21 Jan 2022 23:13:03 -0500
+
+yt-dlp (2021.12.27-1) unstable; urgency=medium
+
+ * Prepare for git.
+ * Add autopkgtest to run upstream's testsuite.
+ * New upstream version 2021.12.27.
+ - Refresh supported sites.
+ - Refresh patch.
+
+ -- Unit 193 <unit193@debian.org> Wed, 29 Dec 2021 20:34:30 -0500
+
+yt-dlp (2021.12.01-1) unstable; urgency=medium
+
+ * Initial release, adapting packaging from youtube-dl. (Closes: #1001933)
+
+ -- Unit 193 <unit193@debian.org> Tue, 21 Dec 2021 03:49:23 -0500
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..59ed580
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+yt_dlp.egg-info/
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f874bd7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: yt-dlp
+Maintainer: Unit 193 <unit193@debian.org>
+Section: web
+Priority: optional
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-python (>= 5.20211213~),
+ pandoc,
+ pybuild-plugin-pyproject,
+ python3-pkg-resources,
+ python3-pytest <!nocheck>,
+ python3-setuptools,
+ zip
+Build-Depends-Indep:
+ python3
+Rules-Requires-Root: no
+Standards-Version: 4.6.2
+Vcs-Browser: https://git.unit193.net/cgit/users/unit193/yt-dlp.git
+Vcs-Git: https://git.unit193.net/cgit/users/unit193/yt-dlp.git
+Homepage: https://github.com/yt-dlp/yt-dlp
+
+Package: yt-dlp
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-pkg-resources
+Recommends:
+ aria2 | wget | curl,
+ ca-certificates,
+ ffmpeg,
+ python3-pyxattr,
+ rtmpdump
+Suggests:
+ libfribidi-bin | bidiv,
+ mpv | mplayer,
+ phantomjs
+Description: downloader of videos from YouTube and other sites
+ yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc.
+ The main focus of this project is adding new features and patches
+ while also keeping up to date with the original project.
+ .
+ yt-dlp is a small command-line program to download videos from
+ YouTube.com and other sites that don't provide direct links to the
+ videos served.
+ .
+ yt-dlp allows the user, among other things, to choose a specific video
+ quality to download (if available) or let the program automatically
+ determine the best (or worst) quality video to grab. It supports
+ downloading entire playlists and all videos from a given user.
+ .
+ Currently supported sites (or features of sites) are:
+ .
+ ${yt-dlp:Sites}
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c6a5b43
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,54 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: yt-dlp
+Source: https://github.com/yt-dlp/yt-dlp
+
+Files: *
+Copyright: none
+License: public-domain
+ yt-dlp is released into the public domain by the copyright holders.
+ .
+ This is free and unencumbered software released into the public domain.
+ .
+ Anyone is free to copy, modify, publish, use, compile, sell, or
+ distribute this software, either in source code form or as a compiled
+ binary, for any purpose, commercial or non-commercial, and by any
+ means.
+ .
+ In jurisdictions that recognize copyright laws, the author or authors
+ of this software dedicate any and all copyright interest in the
+ software to the public domain. We make this dedication for the benefit
+ of the public at large and to the detriment of our heirs and
+ successors. We intend this dedication to be an overt act of
+ relinquishment in perpetuity of all present and future rights to this
+ software under copyright law.
+ .
+ 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 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.
+ .
+ For more information, please refer to <http://unlicense.org/>
+
+Files: debian/*
+Copyright: 2006, Robert S. Edmonds <edmonds@debian.org>
+ 2009-2021, Rogério Brito <rbrito@gmail.com>
+ 2021-2023, Unit 193 <unit193@debian.org>
+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 program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
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/patches/0001-Correct-path-for-docs.patch b/debian/patches/0001-Correct-path-for-docs.patch
new file mode 100644
index 0000000..e6e5e45
--- /dev/null
+++ b/debian/patches/0001-Correct-path-for-docs.patch
@@ -0,0 +1,19 @@
+Description: Correct path for docs.
+Author: Unit 193 <unit193@debian.org>
+Forwarded: not-needed
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/setup.py 2023-01-06 20:32:28.922491886 -0500
++++ b/setup.py 2023-01-06 20:32:28.902491974 -0500
+@@ -76,7 +76,7 @@
+ ('share/bash-completion/completions', ['completions/bash/yt-dlp']),
+ ('share/zsh/site-functions', ['completions/zsh/_yt-dlp']),
+ ('share/fish/vendor_completions.d', ['completions/fish/yt-dlp.fish']),
+- ('share/doc/yt_dlp', ['README.txt']),
++ ('share/doc/yt-dlp', ['README.txt']),
+ ('share/man/man1', ['yt-dlp.1'])
+ ]
+ data_files = []
diff --git a/debian/patches/0003-Remove-use-of-git.patch b/debian/patches/0003-Remove-use-of-git.patch
new file mode 100644
index 0000000..985e938
--- /dev/null
+++ b/debian/patches/0003-Remove-use-of-git.patch
@@ -0,0 +1,19 @@
+Description: Remove use of git during build
+Author: Unit 193 <unit193@debian.org>
+Forwarded: not-needed
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/Makefile 2022-06-22 18:43:02.160931443 -0400
++++ b/Makefile 2022-06-22 18:43:02.156931457 -0400
+@@ -9,7 +9,7 @@
+ # Keep this list in sync with MANIFEST.in
+ # intended use: when building a source distribution,
+ # make pypi-files && python setup.py sdist
+-pypi-files: AUTHORS Changelog.md LICENSE README.md README.txt supportedsites \
++pypi-files: Changelog.md LICENSE README.md README.txt supportedsites \
+ completions yt-dlp.1 requirements.txt setup.cfg devscripts/* test/*
+
+ .PHONY: all clean install test tar pypi-files completions ot offlinetest codetest supportedsites
diff --git a/debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch b/debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch
new file mode 100644
index 0000000..5c254f4
--- /dev/null
+++ b/debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch
@@ -0,0 +1,25 @@
+From: =?utf-8?q?Rog=C3=A9rio_Brito?= <rbrito@gmail.com>
+Date: Sun, 22 Nov 2020 20:06:55 -0300
+Subject: Makefile: Don't run flake8 when running offlinetest.
+
+Unfortunately, due to the dynamic nature of python, we most certainly would
+like to run flake8 when testing the package. Alas, flake8 sometimes
+generates style-only warning or "errors" that break the build, in a similar
+fashion to what -Werror does to GCC or other compilers.
+
+Therefore, I'm disabling this.
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/Makefile 2022-10-04 04:51:46.307487019 -0400
++++ b/Makefile 2022-10-04 04:51:46.303487036 -0400
+@@ -70,7 +70,7 @@
+ $(PYTHON) -m pytest
+ $(MAKE) codetest
+
+-offlinetest: codetest
++offlinetest:
+ $(PYTHON) -m pytest -k "not download"
+
+ # XXX: This is hard to maintain
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7fff434
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001-Correct-path-for-docs.patch
+0003-Remove-use-of-git.patch
+0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d4a3a57
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE = 1
+export PYBUILD_NAME = yt_dlp
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_configure:
+ PREFIX=/usr SYSCONFDIR=/etc make
+ python3 devscripts/set-variant.py debian -M "As yt-dlp has been installed via apt, you should use that to update. If you're on a stable release, also check backports."
+ rm yt-dlp
+
+override_dh_clean:
+ make clean
+ dh_clean
+
+override_dh_auto_test:
+ make offlinetest PYTHON=python3
+
+override_dh_installchangelogs:
+ DEB_BUILD_OPTIONS=notrimdch dh_installchangelogs Changelog.md
+
+override_dh_gencontrol:
+ dh_gencontrol -- -Vyt-dlp:Sites="$$(sed -n -e 's/.* \- \*\*//g' -e 's/:.*//' -e 's/\*\*.*/,/p' supportedsites.md | fmt )"
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..cd70b0a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: upstream-tests.sh
+Depends:
+ @,
+ @builddeps@,
+ python3-all,
diff --git a/debian/tests/upstream-tests.sh b/debian/tests/upstream-tests.sh
new file mode 100755
index 0000000..b496061
--- /dev/null
+++ b/debian/tests/upstream-tests.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+set -u
+
+export LC_ALL=C.UTF-8
+
+cp -rv devscripts "$AUTOPKGTEST_TMP"
+cp -rv test "$AUTOPKGTEST_TMP"
+cp -rv yt_dlp "$AUTOPKGTEST_TMP"
+
+cd "$AUTOPKGTEST_TMP"
+
+for python in $(py3versions --supported);do
+ printf "###\\n### Now testing %s\\n###\\n" "$python"
+ "$python" -m pytest -k "not download"
+done
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..438a450
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/yt-dlp/yt-dlp/issues
+Bug-Submit: https://github.com/yt-dlp/yt-dlp/issues/new
+Repository: https://github.com/yt-dlp/yt-dlp.git
+Repository-Browse: https://github.com/yt-dlp/yt-dlp/
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..87abdd9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="dversionmangle=s/\+dfsg\d*$//" \
+https://github.com/yt-dlp/yt-dlp/releases \
+ (?:.*?/)([\d\.]+)\.tar\.gz