Name: youtube-dl Version: 2017.02.01 Release: %mkrel 1 Summary: Small command-line program to download videos from YouTube License: Public Domain Group: Video/Players URL: http://rg3.github.io/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 BuildArch: noarch BuildRequires: zip Requires: python3 %description Small command-line program to download videos from YouTube. %prep %setup -q -n %{name} rm youtube-dl %build %install %make_install PREFIX="%{_prefix}" MANDIR="%{_mandir}" # force the youtube-dl binary to use python 3 environment by default sed -i -e 's,#!/usr/bin/env python,#!/usr/bin/env python3,' %{buildroot}%{_bindir}/%{name} %files %doc README.txt %license LICENSE %attr(0755,root,root) %{_bindir}/%{name} %{_sysconfdir}/bash_completion.d/youtube-dl %{_sysconfdir}/fish/completions/youtube-dl.fish %{_datadir}/zsh/site-functions/_youtube-dl %{_mandir}/man1/%{name}.1.*