yt-dlp/youtube-dl.spec
2017-02-17 11:45:06 +03:00

54 lines
1.4 KiB
RPMSpec

Summary: Small command-line program to download videos from YouTube
Name: youtube-dl
Version: 2016.10.26
Release: 3
License: Public Domain and GPLv2+
Group: Video
Url: http://rg3.github.com/youtube-dl/
Source0: https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz
Source1: https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz.sig
# using 4096R/A4826A18 Philipp Hagemeister Key fingerprint = 7D33 D762 FD6C 3513 0481 347F DB4B 54CB A482 6A18
# from http://rg3.github.io/youtube-dl/download.html
# Source2: gpgkey-7D33D762FD6C35130481347FDB4B54CBA4826A18.gpg
BuildArch: noarch
BuildRequires: pythonegg(nose)
BuildRequires: pythonegg(setuptools)
BuildRequires: gnupg2
# For tests
BuildRequires: ffmpeg
Requires: python
Suggests: ffmpeg
%description
Small command-line program to download videos from YouTube and similar sites.
%files
%doc LICENSE README.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/zsh/site-functions/_youtube-dl
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
%config(noreplace) %{_sysconfdir}/fish/completions/%{name}.fish
#-----------------------------------------------------------------------------
%prep
# gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%setup -qn %{name}
%build
%make
%install
%makeinstall DESTDIR=%{buildroot} \
PREFIX=%{_prefix} \
MANDIR=%{_mandir}
%check
# This would need a huge amount of downloads.
#make test