%global git_date 20251001 %global git_hash 551303610 %global git_ver 2025.09.26 %global rel 2 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: yt-dlp Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: A youtube-dl fork with additional features and fixes. License: unlicense URL: https://github.com/yt-dlp/yt-dlp Source0: %{src_name} #Patch1: requirements.patch Patch2: 12583.patch BuildRequires: python3-devel BuildArch: noarch BuildRequires: pandoc BuildRequires: make Requires: yt-dlp+default = %{?epoch:%{epoch}:}%{version}-%{release} Recommends: /usr/bin/ffmpeg Recommends: /usr/bin/ffprobe Suggests: python3dist(keyring) %description yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. The main focus of this project is adding new features and patches while also keeping up to date with the original project. %package bash-completion Summary: Bash completion for yt-dlp Requires: yt-dlp = %{version}-%{release} Requires: bash-completion Supplements: (yt-dlp and bash-completion) %description bash-completion Bash command line completion support for yt-dlp. %package zsh-completion Summary: Zsh completion for yt-dlp Requires: yt-dlp = %{version}-%{release} Requires: zsh Supplements: (yt-dlp and zsh) %description zsh-completion Zsh command line completion support for yt-dlp. %package fish-completion Summary: Fish completion for yt-dlp Requires: yt-dlp = %{version}-%{release} Requires: fish Supplements: (yt-dlp and fish) %description fish-completion Fish command line completion support for yt-dlp. %prep %autosetup -p1 -n %{name} # Remove unnecessary shebangs find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + %generate_buildrequires %pyproject_buildrequires -x default,secretstorage %build make yt-dlp.1 completion-bash completion-zsh completion-fish %pyproject_wheel %install %pyproject_install %pyproject_save_files yt_dlp %files -f %{pyproject_files} %{_bindir}/yt-dlp %{_mandir}/man1/yt-dlp.1* %doc README.md %license LICENSE %files bash-completion %{bash_completions_dir}/yt-dlp %files zsh-completion %{zsh_completions_dir}/_yt-dlp %files fish-completion %{fish_completions_dir}/yt-dlp.fish %pyproject_extras_subpkg -n yt-dlp default secretstorage %changelog %autochangelog