forked from pool/yt-dlp
Rename specfiles to yt-dlp
OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=2
This commit is contained in:
parent
33544b1478
commit
2f1fed2f63
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package youtube-dl
|
||||
# spec file for package yt-dlp
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
Name: youtube-dl
|
||||
Name: yt-dlp
|
||||
Version: 2021.12.01
|
||||
Release: 0
|
||||
Summary: A tool for downloading from video sites for offline watching
|
||||
@ -29,57 +29,43 @@ BuildRequires: python3-devel
|
||||
BuildRequires: python3-xml
|
||||
BuildRequires: zip
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
youtube-dl is a command-line program to retrieve videos from
|
||||
YouTube.com and other video sites for later watching.
|
||||
|
||||
youtube-dl is inactive since 2021-07-01; yt-dlp replaces it.
|
||||
|
||||
%package -n yt-dlp
|
||||
Summary: A tool for downloading from video sites for offline watching
|
||||
Group: Productivity/Networking/Web/Utilities
|
||||
Obsoletes: youtube-dl <= 2021.06.06
|
||||
Provides: youtube-dl = %version-%release
|
||||
Requires: ffmpeg
|
||||
Requires: python3
|
||||
Requires: python3-xml
|
||||
|
||||
%description -n yt-dlp
|
||||
%description
|
||||
yt-dlp is a command-line program to retrieve videos from
|
||||
YouTube.com and other video sites for later watching.
|
||||
|
||||
%package -n yt-dlp-bash-completion
|
||||
%package bash-completion
|
||||
Summary: Bash completion for yt-dlp
|
||||
Group: System/Shells
|
||||
Requires: bash-completion
|
||||
Supplements: packageand(yt-dlp:bash)
|
||||
Obsoletes: youtube-dl-bash-completion <= 2021.06.06
|
||||
|
||||
%description -n yt-dlp-bash-completion
|
||||
%description bash-completion
|
||||
Bash command line completion support for yt-dlp.
|
||||
|
||||
%package -n yt-dlp-fish-completion
|
||||
%package fish-completion
|
||||
Summary: Fish completion for yt-dlp
|
||||
Group: System/Shells
|
||||
Requires: fish
|
||||
Supplements: packageand(yt-dlp:fish)
|
||||
Obsoletes: youtube-dl-fish-completion <= 2021.06.06
|
||||
|
||||
%description -n yt-dlp-fish-completion
|
||||
%description fish-completion
|
||||
Fish command line completion support for yt-dlp.
|
||||
|
||||
%package -n yt-dlp-zsh-completion
|
||||
%package zsh-completion
|
||||
Summary: Zsh Completion for yt-dlp
|
||||
Group: System/Shells
|
||||
Requires: zsh
|
||||
Supplements: packageand(yt-dlp:zsh)
|
||||
|
||||
%description -n yt-dlp-zsh-completion
|
||||
%description zsh-completion
|
||||
ZSH command line completion support for yt-dlp.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n yt-dlp
|
||||
%autosetup -p1 -n %name
|
||||
|
||||
%build
|
||||
rm -f youtube-dl yt-dlp
|
||||
@ -88,18 +74,15 @@ PYTHON="%_bindir/python3" %make_build yt-dlp
|
||||
%install
|
||||
b="%buildroot"
|
||||
install -Dvm0755 yt-dlp "$b/%_bindir/yt-dlp"
|
||||
ln -sv yt-dlp "$b/%_bindir/youtube-dl"
|
||||
install -Dvm0644 completions/bash/yt-dlp "$b/%_datadir/bash-completion/completions/yt-dlp"
|
||||
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"
|
||||
echo ".SO yt-dlp.1" >"$b/%_mandir/man1/youtube-dl.1"
|
||||
|
||||
%files -n yt-dlp
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%_bindir/yt-dlp
|
||||
%_bindir/youtube-dl
|
||||
%_mandir/man1/*.1*
|
||||
|
||||
%files -n yt-dlp-bash-completion
|
Loading…
Reference in New Issue
Block a user