From 327cab99beb27331fbe4597c33cc13edb67f8befe1b63f7237434010dba68b95 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 10 May 2023 10:40:37 +0000 Subject: [PATCH] Accepting request 1085667 from home:mlin7442:branches:network:utilities use python3.11 on Leap 15.5 OBS-URL: https://build.opensuse.org/request/show/1085667 OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=52 --- yt-dlp.changes | 7 +++++++ yt-dlp.spec | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/yt-dlp.changes b/yt-dlp.changes index b2180ad..8cd9532 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 9 09:18:49 UTC 2023 - Max Lin + +- Use python3.11 on Leap 15.5 + * python3.11 is the only python3 > 3.6 version would be shipped + in Leap 15.5 + ------------------------------------------------------------------- Sun Mar 5 00:19:54 UTC 2023 - Jan Engelhardt diff --git a/yt-dlp.spec b/yt-dlp.spec index 812c3b9..894e88c 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -28,12 +28,16 @@ BuildRequires: make >= 4 %if 0%{?suse_version} > 1500 BuildRequires: python3-devel %else +%if 0%{?sle_version} > 150400 +BuildRequires: python311-devel +%else %if 0%{?sle_version} > 150300 BuildRequires: python310-devel %else BuildRequires: python39-devel %endif %endif +%endif BuildRequires: zip BuildArch: noarch Requires: ffmpeg @@ -46,12 +50,16 @@ Suggests: python3-mutagen Suggests: python3-pycryptodomex Suggests: python3-websockets %else +%if 0%{?sle_version} > 150400 +Requires: python311 +%else %if 0%{?sle_version} > 150300 Requires: python310 %else Requires: python39 %endif %endif +%endif %description yt-dlp is a command-line program to retrieve videos from @@ -92,11 +100,15 @@ rm -f youtube-dl yt-dlp %if 0%{?suse_version} > 1500 PYTHON="%_bindir/python3" \ %else +%if 0%{?sle_version} > 150400 +PYTHON="%_bindir/python3.11" \ +%else %if 0%{?sle_version} > 150300 PYTHON="%_bindir/python3.10" \ %else PYTHON="%_bindir/python3.9" \ %endif +%endif %endif %make_build yt-dlp