mirror of
https://abf.rosa.ru/djam/yt-dlp.git
synced 2025-02-23 15:22:53 +00:00

Packaging ========= What is the point in adding the sig tarball if you don't use it? =============================================================== Use a gpg key (see spec file), for check the sources
55 lines
1.4 KiB
RPMSpec
55 lines
1.4 KiB
RPMSpec
Summary: Small command-line program to download videos from YouTube
|
|
Name: youtube-dl
|
|
Version: 2016.05.21.2
|
|
Release: 1
|
|
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
|
|
#python ./setup.py
|
|
%make
|
|
|
|
|
|
%install
|
|
%makeinstall DESTDIR=%{buildroot} \
|
|
PREFIX=%{_prefix} \
|
|
MANDIR=%{_mandir}
|
|
|
|
|
|
%check
|
|
# This would need a huge amount of downloads.
|
|
#make test
|