From 9bc07c3d9083027d7e504ede79a18381f290dc586a6eaf863974470bfb7c911b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 13 Aug 2022 08:31:42 +0000 Subject: [PATCH] Accepting request 994804 from home:alois:branches:network:utilities - Drop redundant runtime requirements - Differentiate requirements between 15.3 and 15.4 - Add optional runtime requirements for Tumbleweed OBS-URL: https://build.opensuse.org/request/show/994804 OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=29 --- yt-dlp.changes | 7 +++++++ yt-dlp.spec | 22 ++++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/yt-dlp.changes b/yt-dlp.changes index 3c99a69..dc6cefb 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Aug 12 15:36:50 UTC 2022 - Luigi Baldoni + +- Drop redundant runtime requirements +- Differentiate requirements between 15.3 and 15.4 +- Add optional runtime requirements for Tumbleweed + ------------------------------------------------------------------- Wed Aug 10 15:54:47 UTC 2022 - Luigi Baldoni diff --git a/yt-dlp.spec b/yt-dlp.spec index 9ef8a58..0279b2e 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -27,20 +27,30 @@ Source: %url/releases/download/%version/yt-dlp.tar.gz BuildRequires: make >= 4 %if 0%{?suse_version} > 1500 BuildRequires: python3-devel -BuildRequires: python3-xml +%else +%if 0%{?sle_version} > 150300 +BuildRequires: python310-devel %else BuildRequires: python39-devel -BuildRequires: python39-xml +%endif %endif BuildRequires: zip BuildArch: noarch Requires: ffmpeg %if 0%{?suse_version} > 1500 Requires: python3 -Requires: python3-xml +Suggests: python3-Brotli +Suggests: python3-brotlicffi +Suggests: python3-certifi +Suggests: python3-mutagen +Suggests: python3-pycryptodomex +Suggests: python3-websockets +%else +%if 0%{?sle_version} > 150300 +Requires: python310 %else Requires: python39 -Requires: python39-xml +%endif %endif %description @@ -82,7 +92,11 @@ rm -f youtube-dl yt-dlp %if 0%{?suse_version} > 1500 PYTHON="%_bindir/python3" \ %else +%if 0%{?sle_version} > 150300 +PYTHON="%_bindir/python3.10" \ +%else PYTHON="%_bindir/python3.9" \ +%endif %endif %make_build yt-dlp