2021-12-28 10:18:23 +01:00
|
|
|
#
|
2021-12-28 11:39:05 +01:00
|
|
|
# spec file for package yt-dlp
|
2021-12-28 10:18:23 +01:00
|
|
|
#
|
2023-01-02 17:04:21 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-12-28 10:18:23 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
Name: yt-dlp
|
2023-01-06 22:52:12 +01:00
|
|
|
Version: 2023.01.06
|
2021-12-28 10:18:23 +01:00
|
|
|
Release: 0
|
2021-12-28 16:36:33 +01:00
|
|
|
Summary: Enhanced fork of youtube-dl, a video site downloader for offline watching
|
2021-12-28 10:18:23 +01:00
|
|
|
License: CC-BY-SA-3.0 AND SUSE-Public-Domain
|
|
|
|
Group: Productivity/Networking/Web/Utilities
|
|
|
|
URL: https://github.com/yt-dlp/yt-dlp
|
2023-01-06 22:52:12 +01:00
|
|
|
Source: https://github.com/yt-dlp/yt-dlp/releases/download/%version/yt-dlp.tar.gz
|
2021-12-28 10:18:23 +01:00
|
|
|
BuildRequires: make >= 4
|
2022-08-10 21:18:18 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2021-12-28 10:18:23 +01:00
|
|
|
BuildRequires: python3-devel
|
2022-08-13 10:31:42 +02:00
|
|
|
%else
|
|
|
|
%if 0%{?sle_version} > 150300
|
|
|
|
BuildRequires: python310-devel
|
2022-08-10 21:18:18 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: python39-devel
|
2022-08-13 10:31:42 +02:00
|
|
|
%endif
|
2022-08-10 21:18:18 +02:00
|
|
|
%endif
|
2021-12-28 10:18:23 +01:00
|
|
|
BuildRequires: zip
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: ffmpeg
|
2022-08-10 21:18:18 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2021-12-28 10:18:23 +01:00
|
|
|
Requires: python3
|
2022-08-13 10:31:42 +02:00
|
|
|
Suggests: python3-Brotli
|
|
|
|
Suggests: python3-brotlicffi
|
|
|
|
Suggests: python3-certifi
|
|
|
|
Suggests: python3-mutagen
|
|
|
|
Suggests: python3-pycryptodomex
|
|
|
|
Suggests: python3-websockets
|
|
|
|
%else
|
|
|
|
%if 0%{?sle_version} > 150300
|
|
|
|
Requires: python310
|
2022-08-10 21:18:18 +02:00
|
|
|
%else
|
|
|
|
Requires: python39
|
2022-08-13 10:31:42 +02:00
|
|
|
%endif
|
2022-08-10 21:18:18 +02:00
|
|
|
%endif
|
2021-12-28 10:18:23 +01:00
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%description
|
2021-12-28 10:18:23 +01:00
|
|
|
yt-dlp is a command-line program to retrieve videos from
|
|
|
|
YouTube.com and other video sites for later watching.
|
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%package bash-completion
|
2021-12-28 10:18:23 +01:00
|
|
|
Summary: Bash completion for yt-dlp
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: bash-completion
|
2021-12-29 10:36:27 +01:00
|
|
|
Supplements: (yt-dlp and bash-completion)
|
2021-12-28 10:18:23 +01:00
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%description bash-completion
|
2021-12-28 10:18:23 +01:00
|
|
|
Bash command line completion support for yt-dlp.
|
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%package fish-completion
|
2021-12-28 10:18:23 +01:00
|
|
|
Summary: Fish completion for yt-dlp
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: fish
|
2021-12-28 16:26:47 +01:00
|
|
|
Supplements: (yt-dlp and fish)
|
2021-12-28 10:18:23 +01:00
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%description fish-completion
|
2021-12-28 10:18:23 +01:00
|
|
|
Fish command line completion support for yt-dlp.
|
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%package zsh-completion
|
2021-12-28 10:18:23 +01:00
|
|
|
Summary: Zsh Completion for yt-dlp
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: zsh
|
2021-12-28 16:26:47 +01:00
|
|
|
Supplements: (yt-dlp and zsh)
|
2021-12-28 10:18:23 +01:00
|
|
|
|
2021-12-28 11:39:05 +01:00
|
|
|
%description zsh-completion
|
2021-12-28 10:18:23 +01:00
|
|
|
ZSH command line completion support for yt-dlp.
|
|
|
|
|
|
|
|
%prep
|
2021-12-28 11:39:05 +01:00
|
|
|
%autosetup -p1 -n %name
|
2021-12-28 10:18:23 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
rm -f youtube-dl yt-dlp
|
2022-08-10 21:18:18 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
PYTHON="%_bindir/python3" \
|
|
|
|
%else
|
2022-08-13 10:31:42 +02:00
|
|
|
%if 0%{?sle_version} > 150300
|
|
|
|
PYTHON="%_bindir/python3.10" \
|
|
|
|
%else
|
2022-08-10 21:18:18 +02:00
|
|
|
PYTHON="%_bindir/python3.9" \
|
2022-08-13 10:31:42 +02:00
|
|
|
%endif
|
2022-08-10 21:18:18 +02:00
|
|
|
%endif
|
|
|
|
%make_build yt-dlp
|
2021-12-28 10:18:23 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
install -Dvm0755 yt-dlp "$b/%_bindir/yt-dlp"
|
|
|
|
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"
|
|
|
|
|
2021-12-28 16:26:47 +01:00
|
|
|
%files
|
2021-12-28 10:18:23 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2021-12-28 16:26:47 +01:00
|
|
|
%_bindir/%name
|
|
|
|
%_mandir/man1/%name.1%ext_man
|
2021-12-28 10:18:23 +01:00
|
|
|
|
|
|
|
%files -n yt-dlp-bash-completion
|
|
|
|
%_datadir/bash-completion/
|
|
|
|
|
|
|
|
%files -n yt-dlp-fish-completion
|
|
|
|
%_datadir/fish/
|
|
|
|
|
|
|
|
%files -n yt-dlp-zsh-completion
|
|
|
|
%_datadir/zsh/
|
|
|
|
|
|
|
|
%changelog
|