diff options
-rw-r--r-- | debian/changelog | 259 | ||||
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/control | 51 | ||||
-rw-r--r-- | debian/copyright | 54 | ||||
-rw-r--r-- | debian/gbp.conf | 3 | ||||
-rw-r--r-- | debian/patches/0001-Correct-path-for-docs.patch | 19 | ||||
-rw-r--r-- | debian/patches/0003-Remove-use-of-git.patch | 19 | ||||
-rw-r--r-- | debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch | 25 | ||||
-rw-r--r-- | debian/patches/series | 3 | ||||
-rwxr-xr-x | debian/rules | 25 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/tests/control | 6 | ||||
-rwxr-xr-x | debian/tests/upstream-tests.sh | 17 | ||||
-rw-r--r-- | debian/upstream/metadata | 5 | ||||
-rw-r--r-- | debian/watch | 4 |
15 files changed, 492 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..65a5e87 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,259 @@ +yt-dlp (2024.03.10-1) unstable; urgency=medium + + * New upstream version 2024.03.10. + - Refresh patches. + * d/control: Replace python3-setuptools with python3-hatchling. + * d/t/upstream-tests.sh: Exclude websocket tests for now, requires version 12 + + -- Unit 193 <unit193@debian.org> Mon, 11 Mar 2024 03:49:02 -0400 + +yt-dlp (2023.12.30-1) unstable; urgency=medium + + * New upstream version 2023.12.30. + * d/copyright: Bump years. + + -- Unit 193 <unit193@debian.org> Mon, 01 Jan 2024 03:45:30 -0500 + +yt-dlp (2023.11.16-1) unstable; urgency=medium + + * New upstream version 2023.11.16. + - Patch Generic Extractor MITM Vulnerability via Arbitrary Proxy Injection. + Disallow smuggling of arbitrary http_headers; extractors now only use + specific headers. (Closes: #1055996, CVE-2023-46121) + * d/control: Drop rtmpdump and mpv, as their use is deprecated. + * d/t/upstream-tests.sh: Fix a typo in a variable name. + + -- Unit 193 <unit193@debian.org> Thu, 16 Nov 2023 02:25:22 -0500 + +yt-dlp (2023.10.13-1) unstable; urgency=medium + + * New upstream version 2023.10.13. + * d/control: Drop attr alternatives. Thanks, Christoph Anton Mitterer. + * d/t/upstream-tests.sh: Unset proxy variables for Ubuntu's CI. + + -- Unit 193 <unit193@debian.org> Sat, 14 Oct 2023 01:27:23 -0400 + +yt-dlp (2023.10.07-1) unstable; urgency=medium + + * New upstream version 2023.10.07. + + -- Unit 193 <unit193@debian.org> Sat, 07 Oct 2023 02:48:38 -0400 + +yt-dlp (2023.09.24-2) unstable; urgency=medium + + * d/t/control: Allow stderr. + + -- Unit 193 <unit193@debian.org> Sun, 01 Oct 2023 21:51:27 -0400 + +yt-dlp (2023.09.24-1) unstable; urgency=medium + + * New upstream version 2023.09.24. + - Refresh patch. + * d/control: Add python3-xattr, attr as alternatives to python3-pyxattr. + Closes: #987753 + + -- Unit 193 <unit193@debian.org> Sat, 23 Sep 2023 22:23:43 -0400 + +yt-dlp (2023.07.06-1) unstable; urgency=medium + + * New upstream version 2023.07.06. + + -- Unit 193 <unit193@debian.org> Fri, 07 Jul 2023 01:58:53 -0400 + +yt-dlp (2023.06.22-1) unstable; urgency=medium + + * New upstream version 2023.06.22. + + -- Unit 193 <unit193@debian.org> Thu, 22 Jun 2023 22:56:05 -0400 + +yt-dlp (2023.06.21-1) unstable; urgency=medium + + * New upstream version 2023.06.21. + * d/control: Update Vcs-* fields for new home. + + -- Unit 193 <unit193@debian.org> Wed, 21 Jun 2023 00:38:02 -0400 + +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..4405458 --- /dev/null +++ b/debian/control @@ -0,0 +1,51 @@ +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-hatchling, + zip +Build-Depends-Indep: + python3 +Rules-Requires-Root: no +Standards-Version: 4.6.2 +Vcs-Browser: https://codeberg.org/Unit193/yt-dlp +Vcs-Git: https://codeberg.org/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, +Suggests: + libfribidi-bin | bidiv, + 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..1b344fd --- /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-2024, 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..754a265 --- /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 + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -112,7 +112,7 @@ artifacts = ["/yt_dlp/extractor/lazy_ext + "completions/bash/yt-dlp" = "share/bash-completion/completions/yt-dlp" + "completions/zsh/_yt-dlp" = "share/zsh/site-functions/_yt-dlp" + "completions/fish/yt-dlp.fish" = "share/fish/vendor_completions.d/yt-dlp.fish" +-"README.txt" = "share/doc/yt_dlp/README.txt" ++"README.txt" = "share/doc/yt-dlp/README.txt" + "yt-dlp.1" = "share/man/man1/yt-dlp.1" + + [tool.hatch.version] 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..f722b2f --- /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 ++++ b/Makefile +@@ -9,7 +9,7 @@ tar: yt-dlp.tar.gz + # Keep this list in sync with pyproject.toml includes/artifacts + # intended use: when building a source distribution, + # make pypi-files && python3 -m build -sn . +-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 pyproject.toml 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..3db4af3 --- /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 ++++ b/Makefile +@@ -73,7 +73,7 @@ test: + $(PYTHON) -m pytest + $(MAKE) codetest + +-offlinetest: codetest ++offlinetest: + $(PYTHON) -m pytest -k "not download" + + CODE_FOLDERS_CMD = find yt_dlp -type f -name '__init__.py' | sed 's,/__init__.py,,' | grep -v '/__' | sort 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..3d4e912 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,6 @@ +Tests: upstream-tests.sh +Depends: + @, + @builddeps@, + python3-all, +Restrictions: allow-stderr diff --git a/debian/tests/upstream-tests.sh b/debian/tests/upstream-tests.sh new file mode 100755 index 0000000..aeb1205 --- /dev/null +++ b/debian/tests/upstream-tests.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e +set -u + +export LC_ALL=C.UTF-8 +unset http_proxy https_proxy no_proxy + +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 and not websockets" +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 |