Compare commits

...
Sign in to create a new pull request.

85 commits

Author SHA1 Message Date
Mikel Olasagasti Uranga
8ba6ef58d2 Update to 2026.08.19 - Closes rhbz#2497100 rhbz#2505367 rhbz#2491888 rhbz#2491889 rhbz#2491890 rhbz#2499189 2026-08-20 16:36:38 +02:00
Fedora Release Engineering
c82ae71264 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:36:02 +00:00
Maxwell G
de7ea94edf
Update to 2026.06.09. Fixes rhbz#2487407.
- Mitigates CVE-2026-50019, CVE-2026-50023, CVE-2026-50574
2026-06-18 21:24:05 -05:00
Maxwell G
5bb0cafe50
Add Python 3.15 support patches 2026-06-05 16:52:53 -05:00
Python Maint
a2500a4c99 Rebuilt for Python 3.15 2026-06-04 10:04:51 +02:00
Mikel Olasagasti Uranga
2afd4b2674 Update to 2026.03.17. Fixes rhbz#2448523. 2026-03-18 10:06:44 +01:00
Mikel Olasagasti Uranga
4ccc324af3 Update to 2026.03.13. Fixes rhbz#2447293. 2026-03-13 15:29:57 +01:00
Mikel Olasagasti Uranga
720f2742d0 Update to 2026.03.03. Fixes rhbz#2444129. 2026-03-05 11:59:09 +01:00
Maxwell G
61c2655717
Update to 2026.02.21. Fixes rhbz#2441709.
- Mitigates CVE-2026-26331 / GHSA-g3gw-q23r-pgqm (rhbz#2442244)
2026-02-24 12:17:20 -06:00
Dominik 'Rathann' Mierzejewski
dedd353fe7 fix FTBFS with python 3.14.3
This fixes a failing cookie test:
E           http.cookies.CookieError: Control characters are not allowed in cookies 'keebler' 'E=mc2; L="Loves"; fudge=\n;' '"E=mc2; L=\\"Loves\\"; fudge=\\012;"'

following python 3.14.3 change:
https://github.com/python/cpython/issues/143919
2026-02-21 20:23:23 +01:00
Maxwell G
4e4c19a028
Update to 2026.02.04. Fixes rhbz#2435740. 2026-02-09 17:36:57 -06:00
Maxwell G
13a1b07f32 Update to 2026.01.29. Fixes rhbz#2435358. 2026-01-29 21:30:10 -06:00
Fedora Release Engineering
682a4e8001 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 21:03:29 +00:00
Maxwell G
f950e7eac2
Exclude optional yt-dlp-ejs dependency. Users need to handle it manually.
- https://github.com/yt-dlp/yt-dlp/wiki/EJS
- Remove python -s shebang flag so users can install yt-dlp-ejs or other
  optional deps or plugins using pip
2025-12-11 16:50:08 -06:00
Maxwell G
fab98c1246
Update to 2025.12.08. Fixes rhbz#2414329. 2025-12-08 19:38:32 -06:00
Maxwell G
fc98c68b40
Remove F41 patches
[skip changelog]
2025-12-08 19:38:32 -06:00
Maxwell G
f879056646
Add Provides for Obsoleted yt-dlp-*-completion packages
- Fixes: rhbz#2415381
2025-11-17 08:03:38 -06:00
Maxwell G
8fd3b0dce3
Update to 2025.10.22. Fixes rhbz#2405950. 2025-10-24 23:54:20 -05:00
Maxwell G
243086924c
Reformat specfile and remove separate spec license file
[skip changelog]
2025-10-24 23:48:26 -05:00
Maxwell G
2405ab343a
Remove separate shell completions packages
Separate shell completions packages are clunky, not typical in Fedora,
and not needed now that the filesystem package owns all the completions
directories.
2025-10-24 23:48:23 -05:00
Mikel Olasagasti Uranga
4ca3855bcf Update to 2025.09.26. Fixes rhbz#2397582 2025-09-28 21:59:41 +02:00
Python Maint
4884749aca Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:04:25 +02:00
Mikel Olasagasti Uranga
0296333d57 Update to 2025.09.05. Fixes rhbz#2393609 2025-09-06 23:16:20 +02:00
Mikel Olasagasti Uranga
01e9c71207 Update to 2025.08.27. Fixes rhbz#2391409. 2025-08-28 10:22:28 +02:00
Mikel Olasagasti Uranga
712d69fdd3 Update to 2025.08.22. Fixes rhbz#2389762 rhbz#2390971. 2025-08-26 13:31:07 +02:00
Python Maint
593bf58c62 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:23:43 +02:00
Mikel Olasagasti Uranga
f134e3c17b Update to 2025.08.11. Fixes rhbz#2382547. 2025-08-11 12:19:16 +02:00
Mikel Olasagasti Uranga
892b44222a Update to 2025.07.21. Fixes rhbz#2382547. 2025-07-24 00:08:34 +02:00
Mikel Olasagasti Uranga
b72de101a6 Update to 2025.06.30. Fixes rhbz#2382272. 2025-07-23 20:11:30 +02:00
Maxwell G
5b33382a1e
Update to 2025.06.25. Fixes rhbz#2374869. 2025-06-26 16:46:24 -05:00
Maxwell G
45ad1b7f49
Fix build with Python 3.14 (rhbz#2345522) 2025-06-18 08:50:36 -05:00
Maxwell G
3567b90b25
Replace %{name} with yt-dlp
This makes the spec more readable.

[skip changelog]
2025-06-18 08:47:24 -05:00
Maxwell G
f9a69f22bc
Update to 2025.06.09. Fixes rhbz#2371359. 2025-06-11 12:39:14 -05:00
Python Maint
c2f2d74820 Rebuilt for Python 3.14 2025-06-03 16:10:00 +02:00
Maxwell G
2cf62665fb
Remove unneeded patch. Fedora 40 is EOL.
[skip changelog]
2025-05-23 22:27:21 -05:00
Maxwell G
8d6c81d86e
Update to 2025.05.22. Fixes rhbz#2363227. 2025-05-23 22:26:42 -05:00
Maxwell G
1b7ac92bf3
Update to 2025.04.30. 2025-04-30 19:45:57 -05:00
Maxwell G
a0bc985168
Update to 2025.03.31. Fixes rhbz#2355632. 2025-03-31 22:15:26 -05:00
Maxwell G
ce00940224
Update to 2025.03.26. Fixes rhbz#2354242. 2025-03-26 23:13:32 -05:00
Maxwell G
4ce1cf0f3f
Update to 2025.02.19. Fixes rhbz#2346539. 2025-02-22 15:48:36 -06:00
Mikel Olasagasti Uranga
1915cbb3ee Update to 2025.01.26 - Closes rhbz#2342116 2025-01-26 15:29:47 +01:00
Mikel Olasagasti Uranga
4f0432daaf Update to 2025.01.15 - Closes rhbz#2338387 2025-01-16 15:23:32 +01:00
Mikel Olasagasti Uranga
aef2688045 Update to 2025.01.12 - Closes rhbz#2337284 2025-01-13 09:44:08 +01:00
Maxwell G
b8d3a22583 Preserve compatibility with requests 2.31 for Fedora 40
[skip changelog]
2025-01-06 14:55:15 -06:00
Maxwell G
eacda9a5dd Properly handle yt-dlp extras subpackages 2025-01-06 14:55:15 -06:00
Maxwell G
6308364583 Recreate websockets 12 compat patch
Recreate the websockets 12 compat patch so it can be rebased and applied
in the normal way instead needing to use patch -R.

Also, remove the tomcli pyproject.toml version constraints command.
Brute forcing the version constraints in the pyproject.toml won't work,
as they are now also checked at runtime and the code itself needs to be
patched as well.

[skip changelog]
2025-01-06 14:55:15 -06:00
Mikel Olasagasti Uranga
473142dd7d Update to 2024.12.23 - Closes rhbz#2330257 2025-01-04 21:05:47 +01:00
Mikel Olasagasti Uranga
4b45f4c7c9 Convert to %autorelease and %autochangelog
[skip changelog]
2025-01-04 21:00:09 +01:00
Yaakov Selkowitz
d77c484ebe Fix EPEL build
Undefined macros result in a parser error unless they are ?-prefixed, and
%fedora is not guaranteed to be defined (as in EPEL builds).
2024-11-27 11:50:20 -05:00
Mikel Olasagasti Uranga
b43afeaccb Update to 2024.11.04. Fixes rhbz#2323783 2024-11-18 13:41:57 +01:00
Mikel Olasagasti Uranga
5d846b7f84 Update to 2024.11.04. Fixes rhbz#2323783 2024-11-05 12:23:03 +01:00
Mikel Olasagasti Uranga
0b309bc750 Update to 2024.10.22. Fixes rhbz#2321221 2024-10-23 09:57:35 +02:00
Maxwell G
1fa052bd17
Update to 2024.10.07. 2024-10-08 10:36:12 -05:00
Maxwell G
7e0fcb67af
Update to 2024.09.27. 2024-09-27 22:06:26 -05:00
Maxwell G
c2c49e30d7
Wrap long command in %prep 2024-08-11 23:15:58 -05:00
Maxwell G
3383d4b4d8
Update to 2024.08.06. Fixes rhbz#2303069. 2024-08-11 23:06:15 -05:00
Mikel Olasagasti Uranga
1fd0ee6f3e Update to 2024.08.01. Fixes rhbz#2302522 2024-08-03 17:33:03 +02:00
Mikel Olasagasti Uranga
df9cbe1d8b Update to 2024.07.25. Fixes rhbz#2300087 2024-07-26 17:26:40 +02:00
Mikel Olasagasti Uranga
086c315793 Update to 2024.07.16. Fixes rhbz#2298550 2024-07-25 00:16:25 +02:00
Fedora Release Engineering
f75f25ee51 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:44:18 +00:00
Mikel Olasagasti Uranga
e7f251242d Update to 2024.07.09 - Closes rhbz#2297344 2024-07-11 18:20:39 +02:00
Mikel Olasagasti Uranga
d9f1046f43 Update to 2024.07.07 - Closes rhbz#2296356 2024-07-08 20:41:46 +02:00
Mikel Olasagasti Uranga
f147a91a9b Update to 2024.07.02 - Closes rhbz#2295769 2024-07-04 15:03:05 +02:00
Python Maint
1584f19884 Rebuilt for Python 3.13 2024-06-08 01:29:27 +02:00
Mikel Olasagasti Uranga
aa2e754cb1 Update to 2024.05.27. Fixes rhbz#2283578. 2024-05-29 13:55:58 +02:00
Mikel Olasagasti Uranga
112303c900 Update to 2024.05.26. Fixes rhbz#2274266. 2024-05-27 12:24:20 +02:00
Maxwell G
34d2324a52
Update to 2024.04.09. 2024-04-10 03:16:48 +00:00
Maxwell G
a8ce6a60f3
Update to 2024.03.10. Fixes rhbz#2268944. 2024-03-13 23:44:39 +00:00
Fedora Release Engineering
3b2ac09d69 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 10:51:22 +00:00
Maxwell G
be81c05c11
relax websockets version constraint 2024-01-14 21:26:46 +00:00
Maxwell G
9b0f6e92ec
Relax version constraints 2024-01-13 04:27:30 +00:00
Maxwell G
3529df7267
Update to 2023.12.30. Fixes rhbz#2244200. 2024-01-13 04:27:30 +00:00
Marcus Müller
e9ce133235 Update to 2023.10.07 2023-10-11 17:20:07 +02:00
Fedora Release Engineering
b642319770 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 19:33:04 +00:00
Maxwell G
a09cb88503
Update to 2023.07.06. 2023-07-07 00:34:37 +00:00
Maxwell G
554e1dc3bc
Fix Bugzilla reference in %changelog 🫣 2023-07-05 23:26:36 +00:00
Maxwell G
b792ef79c3
Update to 2023.06.22. Fixes rhbz#6144550. 2023-07-05 17:48:25 -05:00
Maxwell G
1dbebe172d
Update to 2023.06.21. Fixes rhbz#2216612. 2023-06-22 15:29:05 -05:00
Maxwell G
46f66d0729
Make ffmpeg dep unconditional now that f36 is EOL 2023-06-17 16:41:49 +00:00
Python Maint
b3911d2bb0 Rebuilt for Python 3.12 2023-06-15 12:07:37 +02:00
Maxwell G
4e6dccd520
Update to 2023.03.04. Fixes rhbz#2175395. 2023-03-05 23:05:59 -06:00
Maxwell G
8e30cd1794
Update to 2023.02.17. 2023-02-17 08:52:13 -06:00
Fedora Release Engineering
c824e789d3 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 08:07:44 +00:00
Maxwell G
e25a1d0177
Update to 2023.01.06. Fixes rhbz#2157879. 2023-01-09 21:26:56 -06:00
Maxwell G
f6192eaa69
Use new shell completion macros 2023-01-09 21:25:14 -06:00
7 changed files with 377 additions and 147 deletions

53
.gitignore vendored
View file

@ -21,3 +21,56 @@
/yt-dlp-2022.09.01.tar.gz
/yt-dlp-2022.10.04.tar.gz
/yt-dlp-2022.11.11.tar.gz
/yt-dlp-2023.01.06.tar.gz
/yt-dlp-2023.02.17.tar.gz
/yt-dlp-2023.03.04.tar.gz
/yt-dlp-2023.06.21.tar.gz
/yt-dlp-2023.06.22.tar.gz
/yt-dlp-2023.07.06.tar.gz
/yt-dlp-2023.10.07.tar.gz
/yt-dlp-2023.11.16.tar.gz
/yt-dlp-2023.12.30.tar.gz
/yt-dlp-2024.03.10.tar.gz
/yt-dlp-2024.04.09.tar.gz
/yt-dlp-2024.05.26.tar.gz
/yt-dlp-2024.05.27.tar.gz
/yt-dlp-2024.07.02.tar.gz
/yt-dlp-2024.07.07.tar.gz
/yt-dlp-2024.07.09.tar.gz
/yt-dlp-2024.07.16.tar.gz
/yt-dlp-2024.07.25.tar.gz
/yt-dlp-2024.08.01.tar.gz
/yt-dlp-2024.08.06.tar.gz
/yt-dlp-2024.09.27.tar.gz
/yt-dlp-2024.10.07.tar.gz
/yt-dlp-2024.10.22.tar.gz
/yt-dlp-2024.11.04.tar.gz
/yt-dlp-2024.11.18.tar.gz
/yt-dlp-2024.12.23.tar.gz
/yt-dlp-2025.01.12.tar.gz
/yt-dlp-2025.01.15.tar.gz
/yt-dlp-2025.01.26.tar.gz
/yt-dlp-2025.02.19.tar.gz
/yt-dlp-2025.03.26.tar.gz
/yt-dlp-2025.03.31.tar.gz
/yt-dlp-2025.04.30.tar.gz
/yt-dlp-2025.05.22.tar.gz
/yt-dlp-2025.06.09.tar.gz
/yt-dlp-2025.06.25.tar.gz
/yt-dlp-2025.06.30.tar.gz
/yt-dlp-2025.07.21.tar.gz
/yt-dlp-2025.08.11.tar.gz
/yt-dlp-2025.08.22.tar.gz
/yt-dlp-2025.08.27.tar.gz
/yt-dlp-2025.09.05.tar.gz
/yt-dlp-2025.09.26.tar.gz
/yt-dlp-2025.10.22.tar.gz
/yt-dlp-2025.12.08.tar.gz
/yt-dlp-2026.01.29.tar.gz
/yt-dlp-2026.02.04.tar.gz
/yt-dlp-2026.02.21.tar.gz
/yt-dlp-2026.03.03.tar.gz
/yt-dlp-2026.03.13.tar.gz
/yt-dlp-2026.03.17.tar.gz
/yt-dlp-2026.06.09.tar.gz
/yt-dlp-2026.08.19.tar.gz

View file

@ -0,0 +1,46 @@
From b958f102848b73edeec7bb92fff8d4d002ae4b23 Mon Sep 17 00:00:00 2001
From: Maxwell G <maxwell@gtmx.me>
Date: Thu, 18 Jun 2026 21:19:45 -0500
Subject: [PATCH 2/2] Restore compatibility with pytest < 9
---
pyproject.toml | 4 +---
test/test_downloader_external.py | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 8128fb3..8bb3631 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -467,14 +467,12 @@ select = [
]
exclude = "*/extractor/lazy_extractors.py,*venv*,*/test/testdata/sigs/player-*.js,.idea,.vscode"
-[tool.pytest]
+[tool.pytest.ini_options]
addopts = [
"-ra", # summary: all except passed
"--tb=short",
]
verbosity_test_cases = "1"
-strict_config = true
-strict_markers = true
markers = [
"download",
]
diff --git a/test/test_downloader_external.py b/test/test_downloader_external.py
index 0b51c96..d318d3c 100644
--- a/test/test_downloader_external.py
+++ b/test/test_downloader_external.py
@@ -132,7 +132,7 @@ class TestDownloaderCookieBehavior:
pytest.param(WgetFD, marks=pytest.mark.skipif(not WgetFD.available(), reason='wget unavailable')),
pytest.param(Aria2cFD, marks=pytest.mark.skipif(not Aria2cFD.available(), reason='aria2c unavailable')),
])
- def test_cookie_behavior(self, /, downloader_cls):
+ def test_cookie_behavior(self, downloader_cls):
with FakeYDL() as ydl:
downloader = downloader_cls(ydl, {})
--
2.54.0

45
17491.patch Normal file
View file

@ -0,0 +1,45 @@
From b6ef4e25fe882a82c02c12ca716f19fb3c1b89f3 Mon Sep 17 00:00:00 2001
From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date: Thu, 20 Aug 2026 16:23:27 +0200
Subject: [PATCH] tests: accept newer OpenSSL handshake error wording
Newer Python/OpenSSL combinations may report TLS handshake failures as
"TLS_ALERT_HANDSHAKE_FAILURE" / "tls alert handshake failure" instead
of the older "sslv3 alert handshake failure" wording expected by the
test suite.
Relax the test regexes to accept both forms without changing the
behavior being tested.
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
---
test/test_networking.py | 2 +-
test/test_websockets.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/test_networking.py b/test/test_networking.py
index 9dbe263b6fcd..57a7a21bd14b 100644
--- a/test/test_networking.py
+++ b/test/test_networking.py
@@ -338,7 +338,7 @@ def test_ssl_error(self, handler):
https_server_thread.start()
with handler(verify=False) as rh:
- with pytest.raises(SSLError, match=r'(?i)ssl(?:v3|/tls).alert.handshake.failure') as exc_info:
+ with pytest.raises(SSLError, match=r'(?i)(?:TLS_ALERT_HANDSHAKE_FAILURE|(?:sslv3|ssl/tls|tls).alert.handshake.failure)') as exc_info:
validate_and_send(rh, Request(f'https://127.0.0.1:{https_port}/headers'))
assert not issubclass(exc_info.type, CertificateVerifyError)
diff --git a/test/test_websockets.py b/test/test_websockets.py
index caa026f44f3a..3b3814018eeb 100644
--- a/test/test_websockets.py
+++ b/test/test_websockets.py
@@ -186,7 +186,7 @@ def test_verify_cert(self, handler):
def test_ssl_error(self, handler):
with handler(verify=False) as rh:
- with pytest.raises(SSLError, match=r'ssl(?:v3|/tls) alert handshake failure') as exc_info:
+ with pytest.raises(SSLError, match=r'(?:TLS_ALERT_HANDSHAKE_FAILURE|(?:sslv3|ssl/tls|tls) alert handshake failure)') as exc_info:
ws_validate_and_send(rh, Request(self.bad_wss_host))
assert not issubclass(exc_info.type, CertificateVerifyError)

180
changelog Normal file
View file

@ -0,0 +1,180 @@
* Mon Nov 18 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.11.18-1
- Update to 2024.11.18. Fixes rhbz#2326919
* Tue Nov 05 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.11.04-1
- Update to 2024.11.04. Fixes rhbz#2323783
* Wed Oct 23 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.10.22-1
- Update to 2024.10.22. Fixes rhbz#2321221
* Tue Oct 08 2024 Maxwell G <maxwell@gtmx.me> - 2024.10.07-1
- Update to 2024.10.07.
* Sat Sep 28 2024 Maxwell G <maxwell@gtmx.me> - 2024.09.27-1
- Update to 2024.09.27.
* Mon Aug 12 2024 Maxwell G <maxwell@gtmx.me> - 2024.08.06-1
- Update to 2024.08.06. Fixes rhbz#2303069.
* Sat Aug 03 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.08.01-1
- Update to 2024.08.01. Fixes rhbz#2302522
* Fri Jul 26 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.07.25-1
- Update to 2024.07.25. Fixes rhbz#2300087
* Wed Jul 24 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.07.16-1
- Update to 2024.07.16. Fixes rhbz#2298550
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2024.07.09-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu Jul 11 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.07.09-1
- Update to 2024.07.09. Fixes rhbz#2297344
* Mon Jul 08 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.07.07-1
- Update to 2024.07.07. Fixes rhbz#2296356
* Thu Jul 04 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.07.02-1
- Update to 2024.07.02. Fixes rhbz#2295769
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2024.05.27-2
- Rebuilt for Python 3.13
* Wed May 29 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.05.27-1
- Update to 2024.05.27. Fixes rhbz#2283578.
* Mon May 27 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2024.05.26-1
- Update to 2024.05.26. Fixes rhbz#2274266.
* Wed Apr 10 2024 Maxwell G <maxwell@gtmx.me> - 2024.04.09-1
- Update to 2024.04.09.
* Wed Mar 13 2024 Maxwell G <maxwell@gtmx.me> - 2024.03.10-1
- Update to 2024.03.10. Fixes rhbz#2268944.
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2023.12.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jan 3 2024 Maxwell G <maxwell@gtmx.me> - 2023.12.30-1
- Update to 2023.12.30. Fixes rhbz#2244200.
* Wed Oct 11 2023 Marcus Müller <marcus_fedora@baseband.digital> - 2023.10.07-1
- Update to 2023.10.07.
- Fixes rhbz#2243274
- Fixes rhbz#2240465
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2023.07.06-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jul 07 2023 Maxwell G <maxwell@gtmx.me> - 2023.07.06-1
- Update to 2023.07.06.
- Mitigates CVE-2023-35934 / GHSA-v8mc-9377-rwjj
* Wed Jul 05 2023 Maxwell G <maxwell@gtmx.me> - 2023.06.22-1
- Update to 2023.06.22. Fixes rhbz#2216612.
* Thu Jun 22 2023 Maxwell G <maxwell@gtmx.me> - 2023.06.21-1
- Update to 2023.06.21. Fixes rhbz#2216612.
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 2023.03.04-2
- Rebuilt for Python 3.12
* Mon Mar 06 2023 Maxwell G <maxwell@gtmx.me> - 2023.03.04-1
- Update to 2023.03.04. Fixes rhbz#2175395.
* Fri Feb 17 2023 Maxwell G <maxwell@gtmx.me> - 2023.02.17-1
- Update to 2023.02.17.
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2023.01.06-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Jan 10 2023 Maxwell G <gotmax@e.email> - 2023.01.06-1
- Update to 2023.01.06. Fixes rhbz#2157879.
* Mon Nov 14 2022 Maxwell G <gotmax@e.email> - 2022.11.11-1
- Update to 2022.11.11. Fixes rhbz#2142417.
* Sat Oct 08 2022 Maxwell G <gotmax@e.email> - 2022.10.04-1
- Update to 2022.10.04. Fixes rhbz#2132726.
* Fri Sep 02 2022 Maxwell G <gotmax@e.email> - 2022.09.01-1
- Update to 2022.09.01. Fixes rhbz#2123442.
* Fri Aug 19 2022 Maxwell G <gotmax@e.email> - 2022.08.19-1
- Update to 2022.08.19. Fixes rhbz#2118224.
* Tue Aug 09 2022 Maxwell G <gotmax@e.email> - 2022.08.08-1
- Update to 2022.08.08.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2022.06.29-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jul 04 2022 Maxwell G <gotmax@e.email> - 2022.06.29-2
- Fix shell completions subpackages
* Mon Jul 04 2022 Maxwell G <gotmax@e.email> - 2022.06.29-1
- Update to 2022.06.29. Fixes rhbz#2102238.
* Thu Jun 23 2022 Maxwell G <gotmax@e.email> - 2022.06.22.1-1
- Update to 2022.06.22.1. Fixes rhbz#2100019.
* Fri Jun 17 2022 Maxwell G <gotmax@e.email> - 2022.05.18-3
- Fix gating configuration
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2022.05.18-2
- Rebuilt for Python 3.11
* Tue May 24 2022 Maxwell G <gotmax@e.email> - 2022.05.18-1
- Update to 2022.05.18. Fixes rhbz#2088564.
* Fri Apr 08 2022 Maxwell G <gotmax@e.email> - 2022.04.08-1
- Update to 2022.04.08. Fixes rhbz#2073359.
* Sat Mar 12 2022 Artem Polishchuk <ego.cordatus@gmail.com> - 2022.03.08.1-2
- build: Make ffmpeg and ffprobe conditional deps for >= f36 only
* Thu Mar 10 2022 Maxwell G <gotmax@e.email> - 2022.03.08.1-1
- Update to 2022.03.08.1. Fixes rhbz#2061973.
* Mon Mar 07 2022 Maxwell G <gotmax@e.email> - 2022.02.04-2
- Add weak dependency on ffmpeg and ffprobe.
- Make shell-completion subpackages optional again.
* Fri Feb 04 2022 Maxwell G <gotmax@e.email> - 2022.2.4-1
- Update to 2022.2.4. Fixes rhbz#2050497.
* Mon Jan 24 2022 Maxwell G <gotmax@e.email> - 2022.01.21-1
- Update to 2022.01.21.
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2021.12.27-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Dec 27 2021 Maxwell G <gotmax@e.email> - 2021.12.27-1
- Update to 2021.12.27.
* Sun Dec 26 2021 Maxwell G <gotmax@e.email> - 2021.12.25-1
- Update to 2021.12.25.
* Wed Dec 01 2021 Maxwell G <gotmax@e.email> - 2021.12.01-1
- Update to 2021.12.01.
* Tue Nov 9 2021 Maxwell G <gotmax@e.email> - 2021.11.10.1-1
- Update to 2021.11.10.1.
* Tue Nov 9 2021 Maxwell G <gotmax@e.email> - 2021.10.22-2
- Skip installing unnecessary tox dependencies
- Fix shell-completion subpackages
- Only package README.md; don't generate extra README.txt
* Sat Oct 23 2021 Maxwell G <gotmax@e.email> - 2021.10.22-1
- Update to 2021.10.22
* Sun Oct 10 2021 Maxwell G <gotmax@e.email> - 2021.10.10-1
- Mark LICENSE with %%license instead of %%doc
- Update to 2021.10.10
- Fix non-executable-script rpmlint error
- Use `python3dist(NAME)` for dependencies
- Fix rpm-buildroot-usage rpmlint error
* Sat Oct 9 2021 Maxwell G <gotmax@e.email> - 2021.10.09-1
- Initial package

View file

@ -1 +1 @@
SHA512 (yt-dlp-2022.11.11.tar.gz) = c40a8d1956c25e839eece83e7189427ccde442e4b1ed9b278b79f1d903183766ed2df7e31a10692b95ebebdd02e219c2a96633fa6b498bea82ae946fe22b34c8
SHA512 (yt-dlp-2026.08.19.tar.gz) = 04f2dae28fe2b087fed3df38fc6787eac8f85a351bd72f3b010a84fb48bccf9bfde3a50ca4c005afb384f1219ee66a4cab24e5740eb1e5b8eb1a0d8ab773bafd

View file

@ -2,24 +2,30 @@
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Fedora Project Authors
# SPDX-FileCopyrightText: 2022 Maxwell G <gotmax@e.email>
# See %%{name}.spec.license for the full license text.
# License text: https://spdx.org/licenses/MIT.html
%bcond_without tests
Name: yt-dlp
Version: 2022.11.11
Release: 1%{?dist}
Version: 2026.08.19
Release: %autorelease
Summary: A command-line program to download videos from online video platforms
License: Unlicense
URL: https://github.com/%{name}/%{name}
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# License of the specfile
Source: yt-dlp.spec.license
URL: https://github.com/yt-dlp/yt-dlp
Source: %{url}/archive/%{version}/yt-dlp-%{version}.tar.gz
# https://github.com/yt-dlp/yt-dlp/pull/17491
# Relax handshake error regexp
Patch: 17491.patch
# Needed for compatibility with Fedora <= 44
Patch: 0002-Restore-compatibility-with-pytest-9.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: tomcli
%if %{with tests}
# Needed for %%check
@ -30,54 +36,49 @@ BuildRequires: %{py3_dist pytest}
BuildRequires: pandoc
BuildRequires: make
%if 0%{?fedora} >= 36
Requires: yt-dlp+default = %{?epoch:%{epoch}:}%{version}-%{release}
# ffmpeg-free is now available in Fedora.
Recommends: /usr/bin/ffmpeg /usr/bin/ffprobe
%endif
Recommends: /usr/bin/ffmpeg
Recommends: /usr/bin/ffprobe
Suggests: python3dist(keyring)
%global _description %{expand:
# START: Remove in Fedora 46
Provides: yt-dlp-bash-completion = %{version}-%{release}
Obsoletes: yt-dlp-bash-completion < 2025.09.26-2
Provides: yt-dlp-fish-completion = %{version}-%{release}
Obsoletes: yt-dlp-fish-completion < 2025.09.26-2
Provides: yt-dlp-zsh-completion = %{version}-%{release}
Obsoletes: yt-dlp-zsh-completion < 2025.09.26-2
# END: Remove in Fedora 46
%description
yt-dlp is a command-line program to download videos from many different online
video platforms, such as youtube.com. The project is a fork of youtube-dl with
additional features and fixes.}
additional features and fixes.
%description %{_description}
%package bash-completion
Summary: Bash completion for %{name}
Requires: %{name} = %{version}-%{release}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
%description bash-completion
Bash command line completion support for %{name}.
%package zsh-completion
Summary: Zsh completion for %{name}
Requires: %{name} = %{version}-%{release}
Requires: zsh
Supplements: (%{name} and zsh)
%description zsh-completion
Zsh command line completion support for %{name}.
%package fish-completion
Summary: Fish completion for %{name}
Requires: %{name} = %{version}-%{release}
Requires: fish
Supplements: (%{name} and fish)
%description fish-completion
Fish command line completion support for %{name}.
%prep
%autosetup
%autosetup -p1
# TODO: Figure out https://bugzilla.redhat.com/show_bug.cgi?id=2405578
# Users can configure JS challenges manually for now.
tomcli set pyproject.toml arrays delitem \
project.optional-dependencies.default 'yt-dlp-ejs.*'
# Remove -s from shebang so users can install extra deps or plugins (or yt-dlp-ejs) using pip.
%undefine _py3_shebang_s
# Remove unnecessary shebangs
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
%generate_buildrequires
%pyproject_buildrequires -r
%pyproject_buildrequires -x default,secretstorage
%build
# Docs and shell completions
@ -86,116 +87,30 @@ make yt-dlp.1 completion-bash completion-zsh completion-fish
# Docs and shell completions are also included in the wheel.
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files yt_dlp
%check
%if %{with tests}
# See https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/run_tests.sh
%pytest -k "not download"
%pytest -k "not download and not test_verify_cert[Websockets]"
%endif
%files -f %{pyproject_files}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%doc README.md
%license LICENSE
%{_bindir}/yt-dlp
%{_mandir}/man1/yt-dlp.1*
%{bash_completions_dir}/yt-dlp
%{fish_completions_dir}/yt-dlp.fish
%{zsh_completions_dir}/_yt-dlp
%files bash-completion
%{_datadir}/bash-completion/completions/%{name}
%files zsh-completion
%{_datadir}/zsh/site-functions/_%{name}
%pyproject_extras_subpkg -n yt-dlp default secretstorage
%files fish-completion
%{_datadir}/fish/vendor_completions.d/%{name}.fish
%changelog
* Mon Nov 14 2022 Maxwell G <gotmax@e.email> - 2022.11.11-1
- Update to 2022.11.11. Fixes rhbz#2142417.
* Sat Oct 08 2022 Maxwell G <gotmax@e.email> - 2022.10.04-1
- Update to 2022.10.04. Fixes rhbz#2132726.
* Fri Sep 02 2022 Maxwell G <gotmax@e.email> - 2022.09.01-1
- Update to 2022.09.01. Fixes rhbz#2123442.
* Fri Aug 19 2022 Maxwell G <gotmax@e.email> - 2022.08.19-1
- Update to 2022.08.19. Fixes rhbz#2118224.
* Tue Aug 09 2022 Maxwell G <gotmax@e.email> - 2022.08.08-1
- Update to 2022.08.08.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2022.06.29-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jul 04 2022 Maxwell G <gotmax@e.email> - 2022.06.29-2
- Fix shell completions subpackages
* Mon Jul 04 2022 Maxwell G <gotmax@e.email> - 2022.06.29-1
- Update to 2022.06.29. Fixes rhbz#2102238.
* Thu Jun 23 2022 Maxwell G <gotmax@e.email> - 2022.06.22.1-1
- Update to 2022.06.22.1. Fixes rhbz#2100019.
* Fri Jun 17 2022 Maxwell G <gotmax@e.email> - 2022.05.18-3
- Fix gating configuration
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2022.05.18-2
- Rebuilt for Python 3.11
* Tue May 24 2022 Maxwell G <gotmax@e.email> - 2022.05.18-1
- Update to 2022.05.18. Fixes rhbz#2088564.
* Fri Apr 08 2022 Maxwell G <gotmax@e.email> - 2022.04.08-1
- Update to 2022.04.08. Fixes rhbz#2073359.
* Sat Mar 12 2022 Artem Polishchuk <ego.cordatus@gmail.com> - 2022.03.08.1-2
- build: Make ffmpeg and ffprobe conditional deps for >= f36 only
* Thu Mar 10 2022 Maxwell G <gotmax@e.email> - 2022.03.08.1-1
- Update to 2022.03.08.1. Fixes rhbz#2061973.
* Mon Mar 07 2022 Maxwell G <gotmax@e.email> - 2022.02.04-2
- Add weak dependency on ffmpeg and ffprobe.
- Make shell-completion subpackages optional again.
* Fri Feb 04 2022 Maxwell G <gotmax@e.email> - 2022.2.4-1
- Update to 2022.2.4. Fixes rhbz#2050497.
* Mon Jan 24 2022 Maxwell G <gotmax@e.email> - 2022.01.21-1
- Update to 2022.01.21.
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2021.12.27-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Dec 27 2021 Maxwell G <gotmax@e.email> - 2021.12.27-1
- Update to 2021.12.27.
* Sun Dec 26 2021 Maxwell G <gotmax@e.email> - 2021.12.25-1
- Update to 2021.12.25.
* Wed Dec 01 2021 Maxwell G <gotmax@e.email> - 2021.12.01-1
- Update to 2021.12.01.
* Tue Nov 9 2021 Maxwell G <gotmax@e.email> - 2021.11.10.1-1
- Update to 2021.11.10.1.
* Tue Nov 9 2021 Maxwell G <gotmax@e.email> - 2021.10.22-2
- Skip installing unnecessary tox dependencies
- Fix shell-completion subpackages
- Only package README.md; don't generate extra README.txt
* Sat Oct 23 2021 Maxwell G <gotmax@e.email> - 2021.10.22-1
- Update to 2021.10.22
* Sun Oct 10 2021 Maxwell G <gotmax@e.email> - 2021.10.10-1
- Mark LICENSE with %%license instead of %%doc
- Update to 2021.10.10
- Fix non-executable-script rpmlint error
- Use `python3dist(NAME)` for dependencies
- Fix rpm-buildroot-usage rpmlint error
* Sat Oct 9 2021 Maxwell G <gotmax@e.email> - 2021.10.09-1
- Initial package
%autochangelog

View file

@ -1,9 +0,0 @@
MIT License
Copyright (c) <year> <copyright holders>
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.