SHA256
1
0
forked from pool/yt-dlp

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
This commit is contained in:
Jan Engelhardt 2022-08-10 19:18:18 +00:00 committed by Git OBS Bridge
parent 1baec0f596
commit 2d44c8ec1e
2 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 10 15:54:47 UTC 2022 - Luigi Baldoni <aloisio@gmx.com>
- Force python 3.9 on anything older than Tumbleweed
-------------------------------------------------------------------
Tue Aug 9 07:51:26 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -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"