1 |
Name: youtube-dl |
2 |
Version: 2015.10.24 |
3 |
Release: %mkrel 1 |
4 |
Summary: Small command-line program to download videos from YouTube |
5 |
License: Public Domain |
6 |
Group: Video/Players |
7 |
URL: http://rg3.github.io/youtube-dl |
8 |
Source0: https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz |
9 |
Source1: https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz.sig |
10 |
BuildArch: noarch |
11 |
BuildRequires: zip |
12 |
Requires: python3 |
13 |
|
14 |
%description |
15 |
Small command-line program to download videos from YouTube. |
16 |
|
17 |
%prep |
18 |
%setup -q -n %{name} |
19 |
rm youtube-dl |
20 |
|
21 |
%build |
22 |
|
23 |
%install |
24 |
%make_install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" MANDIR="%{_mandir}" |
25 |
|
26 |
# force the youtube-dl binary to use python 3 environment by default |
27 |
sed -i -e 's,#!/usr/bin/env python,#!/usr/bin/env python3,' %{buildroot}%{_bindir}/%{name} |
28 |
|
29 |
%files |
30 |
%doc README.txt |
31 |
%license LICENSE |
32 |
%attr(0755,root,root) %{_bindir}/%{name} |
33 |
%{_sysconfdir}/bash_completion.d/youtube-dl |
34 |
%{_sysconfdir}/fish/completions/youtube-dl.fish |
35 |
%{_datadir}/zsh/site-functions/_youtube-dl |
36 |
%{_mandir}/man1/%{name}.1.* |