forked from pool/yt-dlp
Merge sh-completion, make new youtube-dl compat package
This commit is contained in:
parent
e9e1c5b157
commit
0bb8636baf
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 13 18:34:37 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Merge sh completion packages into main package
|
||||||
|
- Add yt-dlp-youtube-dl subpackage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 1 15:48:06 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Thu Aug 1 15:48:06 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
48
yt-dlp.spec
48
yt-dlp.spec
@ -35,6 +35,12 @@ BuildRequires: make >= 4
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Obsoletes: youtube-dl-bash-completion < %version-%release
|
||||||
|
Provides: youtube-dl-bash-completion = %version-%release
|
||||||
|
Obsoletes: youtube-dl-fish-completion < %version-%release
|
||||||
|
Provides: youtube-dl-fish-completion = %version-%release
|
||||||
|
Obsoletes: youtube-dl-zsh-completion < %version-%release
|
||||||
|
Provides: youtube-dl-zsh-completion = %version-%release
|
||||||
# %%primary_python not available in Leap yet
|
# %%primary_python not available in Leap yet
|
||||||
Requires: %(echo %{python_module yt-dlp} | perl -pe 's{.* }{}g')
|
Requires: %(echo %{python_module yt-dlp} | perl -pe 's{.* }{}g')
|
||||||
%define python_subpackage_only 1
|
%define python_subpackage_only 1
|
||||||
@ -44,32 +50,14 @@ Requires: %(echo %{python_module yt-dlp} | perl -pe 's{.* }{}g')
|
|||||||
yt-dlp is a command-line program to retrieve videos from
|
yt-dlp is a command-line program to retrieve videos from
|
||||||
YouTube.com and other video sites for later watching.
|
YouTube.com and other video sites for later watching.
|
||||||
|
|
||||||
%package -n yt-dlp-bash-completion
|
%package -n yt-dlp-youtube-dl
|
||||||
Summary: Bash completion for yt-dlp
|
Summary: Compat symlinks for youtube-dl
|
||||||
Group: System/Shells
|
Requires: yt-dlp
|
||||||
Requires: bash-completion
|
Provides: youtube-dl
|
||||||
Supplements: (yt-dlp and bash-completion)
|
Conflicts: youtube-dl
|
||||||
|
|
||||||
%description -n yt-dlp-bash-completion
|
%description -n yt-dlp-youtube-dl
|
||||||
Bash command line completion support for yt-dlp.
|
This package installs "youtube-dl" as a symlink to yt-dlp.
|
||||||
|
|
||||||
%package -n yt-dlp-fish-completion
|
|
||||||
Summary: Fish completion for yt-dlp
|
|
||||||
Group: System/Shells
|
|
||||||
Requires: fish
|
|
||||||
Supplements: (yt-dlp and fish)
|
|
||||||
|
|
||||||
%description -n yt-dlp-fish-completion
|
|
||||||
Fish command line completion support for yt-dlp.
|
|
||||||
|
|
||||||
%package -n yt-dlp-zsh-completion
|
|
||||||
Summary: Zsh Completion for yt-dlp
|
|
||||||
Group: System/Shells
|
|
||||||
Requires: zsh
|
|
||||||
Supplements: (yt-dlp and zsh)
|
|
||||||
|
|
||||||
%description -n yt-dlp-zsh-completion
|
|
||||||
ZSH command line completion support for yt-dlp.
|
|
||||||
|
|
||||||
%package -n python-yt-dlp
|
%package -n python-yt-dlp
|
||||||
Summary: yt-dlp Python library
|
Summary: yt-dlp Python library
|
||||||
@ -99,6 +87,7 @@ rm -f youtube-dl yt-dlp
|
|||||||
%install
|
%install
|
||||||
b="%buildroot"
|
b="%buildroot"
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
ln -s yt-dlp "$b/%_bindir/youtube-dl"
|
||||||
%fdupes %buildroot/usr
|
%fdupes %buildroot/usr
|
||||||
rm -Rf "$b/%_datadir/doc"
|
rm -Rf "$b/%_datadir/doc"
|
||||||
|
|
||||||
@ -107,16 +96,13 @@ rm -Rf "$b/%_datadir/doc"
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
%_bindir/%name
|
%_bindir/%name
|
||||||
%_mandir/man1/%name.1%ext_man
|
%_mandir/man1/%name.1%ext_man
|
||||||
|
|
||||||
%files -n yt-dlp-bash-completion
|
|
||||||
%_datadir/bash-completion/
|
%_datadir/bash-completion/
|
||||||
|
|
||||||
%files -n yt-dlp-fish-completion
|
|
||||||
%_datadir/fish/
|
%_datadir/fish/
|
||||||
|
|
||||||
%files -n yt-dlp-zsh-completion
|
|
||||||
%_datadir/zsh/
|
%_datadir/zsh/
|
||||||
|
|
||||||
|
%files -n yt-dlp-youtube-dl
|
||||||
|
%_bindir/youtube-dl
|
||||||
|
|
||||||
%files %{python_files yt-dlp}
|
%files %{python_files yt-dlp}
|
||||||
%python_sitelib/y*
|
%python_sitelib/y*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user