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"