diff --git a/yt-dlp.spec b/yt-dlp.spec index 22d4d2f..1158f42 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -19,7 +19,7 @@ %define skip_python2 1 %define skip_python36 1 %define skip_python37 1 -%if 0%{?sle_version} == 150600 +%if 0%{?suse_version} < 1600 %global pythons python312 %endif @@ -45,7 +45,11 @@ Obsoletes: yt-dlp-fish-completion < %version-%release Provides: yt-dlp-fish-completion = %version-%release Obsoletes: yt-dlp-zsh-completion < %version-%release Provides: yt-dlp-zsh-completion = %version-%release +%if 0%{?suse_version} < 1600 +Requires: python312-yt-dlp = %version +%else Requires: python3-yt-dlp = %version +%endif %define python_subpackage_only 1 %python_subpackages