# This specfile is licensed under: # SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: Fedora Project Authors # SPDX-FileCopyrightText: 2022 Maxwell G # License text: https://spdx.org/licenses/MIT.html %bcond_without tests Name: yt-dlp Version: 2025.11.12 Release: %autorelease Summary: A command-line program to download videos from online video platforms License: Unlicense URL: https://github.com/yt-dlp/yt-dlp Source: %{url}/archive/%{version}/yt-dlp-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} # Needed for %%check BuildRequires: %{py3_dist pytest} %endif # Needed for docs BuildRequires: pandoc BuildRequires: make Requires: yt-dlp+default = %{?epoch:%{epoch}:}%{version}-%{release} # ffmpeg-free is now available in Fedora. Recommends: /usr/bin/ffmpeg Recommends: /usr/bin/ffprobe Suggests: python3dist(keyring) # Remove in Fedora 46 Obsoletes: yt-dlp-bash-completion < 2025.09.26-2 Obsoletes: yt-dlp-fish-completion < 2025.09.26-2 Obsoletes: yt-dlp-zsh-completion < 2025.09.26-2 %description yt-dlp is a command-line program to download videos from many different online video platforms, such as youtube.com. The project is a fork of youtube-dl with additional features and fixes. %prep %autosetup -N # Remove unnecessary shebangs find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + %generate_buildrequires %pyproject_buildrequires -x default,secretstorage %build # Docs and shell completions make yt-dlp.1 completion-bash completion-zsh completion-fish # Docs and shell completions are also included in the wheel. %pyproject_wheel %install %pyproject_install %pyproject_save_files yt_dlp %check %if %{with tests} %pytest -k "not download and not test_verify_cert[Websockets]" %endif %files -f %{pyproject_files} %doc README.md %license LICENSE %{_bindir}/yt-dlp %{_mandir}/man1/yt-dlp.1* %{bash_completions_dir}/yt-dlp %{fish_completions_dir}/yt-dlp.fish %{zsh_completions_dir}/_yt-dlp %pyproject_extras_subpkg -n yt-dlp default secretstorage %changelog %autochangelog