SHA256
1
0
forked from pool/yt-dlp

- Enable Python library [boo#1216467]

OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=70
This commit is contained in:
Jan Engelhardt 2023-10-22 22:39:07 +00:00 committed by Git OBS Bridge
parent 8ff302cd74
commit 2bec916958
2 changed files with 26 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Oct 22 22:36:58 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Enable Python library [boo#1216467]
-------------------------------------------------------------------
Fri Oct 13 23:29:00 UTC 2023 - Ich <jengelh@inai.de>

View File

@ -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