From 2f1fed2f63f53bbffbb2706a3bed817b0925e796774f17e57cb649bd20143392 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 Dec 2021 10:39:05 +0000 Subject: [PATCH] Rename specfiles to yt-dlp OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=2 --- youtube-dl.changes => yt-dlp.changes | 0 youtube-dl.spec => yt-dlp.spec | 37 ++++++++-------------------- 2 files changed, 10 insertions(+), 27 deletions(-) rename youtube-dl.changes => yt-dlp.changes (100%) rename youtube-dl.spec => yt-dlp.spec (73%) diff --git a/youtube-dl.changes b/yt-dlp.changes similarity index 100% rename from youtube-dl.changes rename to yt-dlp.changes diff --git a/youtube-dl.spec b/yt-dlp.spec similarity index 73% rename from youtube-dl.spec rename to yt-dlp.spec index b2dd4f1..e4543ee 100644 --- a/youtube-dl.spec +++ b/yt-dlp.spec @@ -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