SHA256
1
0
forked from pool/yt-dlp

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
This commit is contained in:
Jan Engelhardt 2023-05-10 10:40:37 +00:00 committed by Git OBS Bridge
parent 08e90ab7ec
commit 327cab99be
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 9 09:18:49 UTC 2023 - Max Lin <mlin@suse.com>
- 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 <jengelh@inai.de> Sun Mar 5 00:19:54 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,12 +28,16 @@ BuildRequires: make >= 4
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
BuildRequires: python3-devel BuildRequires: python3-devel
%else %else
%if 0%{?sle_version} > 150400
BuildRequires: python311-devel
%else
%if 0%{?sle_version} > 150300 %if 0%{?sle_version} > 150300
BuildRequires: python310-devel BuildRequires: python310-devel
%else %else
BuildRequires: python39-devel BuildRequires: python39-devel
%endif %endif
%endif %endif
%endif
BuildRequires: zip BuildRequires: zip
BuildArch: noarch BuildArch: noarch
Requires: ffmpeg Requires: ffmpeg
@ -46,12 +50,16 @@ Suggests: python3-mutagen
Suggests: python3-pycryptodomex Suggests: python3-pycryptodomex
Suggests: python3-websockets Suggests: python3-websockets
%else %else
%if 0%{?sle_version} > 150400
Requires: python311
%else
%if 0%{?sle_version} > 150300 %if 0%{?sle_version} > 150300
Requires: python310 Requires: python310
%else %else
Requires: python39 Requires: python39
%endif %endif
%endif %endif
%endif
%description %description
yt-dlp is a command-line program to retrieve videos from 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 %if 0%{?suse_version} > 1500
PYTHON="%_bindir/python3" \ PYTHON="%_bindir/python3" \
%else %else
%if 0%{?sle_version} > 150400
PYTHON="%_bindir/python3.11" \
%else
%if 0%{?sle_version} > 150300 %if 0%{?sle_version} > 150300
PYTHON="%_bindir/python3.10" \ PYTHON="%_bindir/python3.10" \
%else %else
PYTHON="%_bindir/python3.9" \ PYTHON="%_bindir/python3.9" \
%endif %endif
%endif
%endif %endif
%make_build yt-dlp %make_build yt-dlp