From 8c69fb4ee4fb37dcc3dbead3f3c18573aad0bf8f07c58531c581e7d0dec830e3 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 7 Oct 2025 20:48:59 +0000 Subject: [PATCH] Use Python 3.13 in 15.7, due to lack of 3.12 Signed-off-by: Olaf Hering --- yt-dlp.changes | 5 +++++ yt-dlp.spec | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/yt-dlp.changes b/yt-dlp.changes index 690b52a..b31ceef 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 7 12:34:56 UTC 2025 - olaf@aepfle.de + +- Use Python 3.13 in 15.7, due to lack of 3.12 + ------------------------------------------------------------------- Sat Sep 27 06:53:33 UTC 2025 - Luigi Baldoni diff --git a/yt-dlp.spec b/yt-dlp.spec index 72aab41..4a1850d 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -21,8 +21,12 @@ %define skip_python37 1 %define skip_python38 1 %if 0%{?suse_version} < 1600 +%if 0%{?sle_version} == 150700 +%global pythons python313 +%else %global pythons python312 %endif +%endif Name: yt-dlp Version: 2025.09.26 @@ -47,7 +51,11 @@ Provides: yt-dlp-fish-completion = %version-%release Obsoletes: yt-dlp-zsh-completion < %version-%release Provides: yt-dlp-zsh-completion = %version-%release %if 0%{?suse_version} < 1600 +%if 0%{?sle_version} == 150700 +Requires: python313-yt-dlp = %version +%else Requires: python312-yt-dlp = %version +%endif %else Requires: python3-yt-dlp = %version %endif @@ -96,8 +104,12 @@ rm -f youtube-dl yt-dlp # exercised; else yt-dlp is a loader. # %if 0%{?suse_version} < 1600 +%if 0%{?sle_version} == 150700 +export PYTHON=%__python313 +%else export PYTHON=%__python312 %endif +%endif %pyproject_wheel %make_build yt-dlp -- 2.51.1