From 2d44c8ec1e32de2c2ce3591be9134afae767af60d249f296e973405d0e9e1388 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 10 Aug 2022 19:18:18 +0000 Subject: [PATCH] Accepting request 994364 from home:alois:branches:network:utilities - Force python 3.9 on anything older than Tumbleweed OBS-URL: https://build.opensuse.org/request/show/994364 OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=27 --- yt-dlp.changes | 5 +++++ yt-dlp.spec | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/yt-dlp.changes b/yt-dlp.changes index 1870bf4..3c99a69 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 10 15:54:47 UTC 2022 - Luigi Baldoni + +- Force python 3.9 on anything older than Tumbleweed + ------------------------------------------------------------------- Tue Aug 9 07:51:26 UTC 2022 - Jan Engelhardt diff --git a/yt-dlp.spec b/yt-dlp.spec index 0486036..9ef8a58 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -25,13 +25,23 @@ Group: Productivity/Networking/Web/Utilities URL: https://github.com/yt-dlp/yt-dlp Source: %url/releases/download/%version/yt-dlp.tar.gz BuildRequires: make >= 4 +%if 0%{?suse_version} > 1500 BuildRequires: python3-devel BuildRequires: python3-xml +%else +BuildRequires: python39-devel +BuildRequires: python39-xml +%endif BuildRequires: zip BuildArch: noarch Requires: ffmpeg +%if 0%{?suse_version} > 1500 Requires: python3 Requires: python3-xml +%else +Requires: python39 +Requires: python39-xml +%endif %description yt-dlp is a command-line program to retrieve videos from @@ -69,7 +79,12 @@ ZSH command line completion support for yt-dlp. %build rm -f youtube-dl yt-dlp -PYTHON="%_bindir/python3" %make_build yt-dlp +%if 0%{?suse_version} > 1500 +PYTHON="%_bindir/python3" \ +%else +PYTHON="%_bindir/python3.9" \ +%endif + %make_build yt-dlp %install b="%buildroot"