From 1dd25f58f945639a7be1760cadd42f970946af51a4d3b005eb90bcfc69cbe9e1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 25 Oct 2023 04:46:46 +0000 Subject: [PATCH] +incantations for Leap OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=73 --- yt-dlp.spec | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/yt-dlp.spec b/yt-dlp.spec index 594ece0..1fbe323 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -16,6 +16,10 @@ # +%define skip_python2 1 +%define skip_python36 1 +%define skip_python37 1 +%sle15_python_module_pythons Name: yt-dlp Version: 2023.10.13 Release: 0 @@ -25,20 +29,18 @@ Group: Productivity/Networking/Web/Utilities URL: https://github.com/yt-dlp/yt-dlp Source: https://github.com/yt-dlp/yt-dlp/releases/download/%version/yt-dlp.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: make >= 4 BuildRequires: python-rpm-macros BuildRequires: zip BuildArch: noarch Requires: ffmpeg -%if 0%{?suse_version} > 1500 -Requires: python3 >= 3.8 -%endif -Requires: python3-yt-dlp -Suggests: %{python_module Brotli} -Suggests: %{python_module certifi} -Suggests: %{python_module mutagen} -Suggests: %{python_module pycryptodomex} -Suggests: %{python_module websockets} +Requires: python-yt-dlp +Suggests: python-Brotli +Suggests: python-certifi +Suggests: python-mutagen +Suggests: python-pycryptodomex +Suggests: python-websockets %python_subpackages %description @@ -94,6 +96,7 @@ rm -f youtube-dl yt-dlp %install b="%buildroot" %python_install +%fdupes %buildroot/usr rm -Rf "$b/%_datadir/doc" %files -n yt-dlp