From 2bec91695805c399e3a12ce5be6c0b34ecdd5e981047e173c9b7f5f971b36617 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 22 Oct 2023 22:39:07 +0000 Subject: [PATCH] - Enable Python library [boo#1216467] OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=70 --- yt-dlp.changes | 5 +++++ yt-dlp.spec | 28 +++++++++++++++++++++------- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/yt-dlp.changes b/yt-dlp.changes index 0178dc6..93a4319 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 22 22:36:58 UTC 2023 - Jan Engelhardt + +- Enable Python library [boo#1216467] + ------------------------------------------------------------------- Fri Oct 13 23:29:00 UTC 2023 - Ich diff --git a/yt-dlp.spec b/yt-dlp.spec index 7b67443..766f200 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -41,6 +41,7 @@ BuildRequires: python39-devel BuildRequires: zip BuildArch: noarch Requires: ffmpeg +BuildRequires: %{python_module setuptools} %if 0%{?suse_version} > 1500 Requires: python3 >= 3.8 Suggests: python3-Brotli @@ -59,38 +60,46 @@ Requires: python39 %endif %endif %endif +%python_subpackages %description yt-dlp is a command-line program to retrieve videos from YouTube.com and other video sites for later watching. -%package bash-completion +%package -n yt-dlp-bash-completion Summary: Bash completion for yt-dlp Group: System/Shells Requires: bash-completion Supplements: (yt-dlp and bash-completion) -%description bash-completion +%description -n yt-dlp-bash-completion Bash command line completion support for yt-dlp. -%package fish-completion +%package -n yt-dlp-fish-completion Summary: Fish completion for yt-dlp Group: System/Shells Requires: fish Supplements: (yt-dlp and fish) -%description fish-completion +%description -n yt-dlp-fish-completion Fish command line completion support for yt-dlp. -%package zsh-completion +%package -n yt-dlp-zsh-completion Summary: Zsh Completion for yt-dlp Group: System/Shells Requires: zsh Supplements: (yt-dlp and zsh) -%description zsh-completion +%description -n yt-dlp-zsh-completion ZSH command line completion support for yt-dlp. +%package -n python-yt-dlp +Summary: yt-dlp Python library +Group: Development/Languages/Python + +%description -n python-yt-dlp +The direct Python interface into yt-dlp. + %prep %autosetup -p1 -n %name @@ -118,8 +127,10 @@ install -Dvm0644 completions/bash/yt-dlp "$b/%_datadir/bash-completion/completio install -Dvm0644 completions/zsh/_yt-dlp "$b/%_datadir/zsh/site-functions/_yt-dlp" install -Dvm0644 completions/fish/yt-dlp.fish "$b/%_datadir/fish/completions/yt-dlp.fish" install -Dvm0644 yt-dlp.1 "$b/%_mandir/man1/yt-dlp.1" +%python_install +rm -Rf "$b/%_datadir/doc" -%files +%files -n yt-dlp %license LICENSE %doc README.md %_bindir/%name @@ -134,4 +145,7 @@ install -Dvm0644 yt-dlp.1 "$b/%_mandir/man1/yt-dlp.1" %files -n yt-dlp-zsh-completion %_datadir/zsh/ +%files %python_files +%python_sitelib/y* + %changelog