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