Name: youtube-dl Version: 2011.12.08 Release: %mkrel 1 Summary: Small command-line program to download videos from YouTube License: Public Domain and GPLv2 Group: Video URL: http://rg3.github.com/youtube-dl/ Source0: https://github.com/rg3/youtube-dl/raw/%{version}/youtube-dl #man page from Debian by Rogerio Brito , licensed under GPLv2 Source1: youtube-dl.1.gz #from the website #http://rg3.github.com/youtube-dl/about.html Source10: about #http://rg3.github.com/youtube-dl/documentation.html Source11: documentation BuildArch: noarch Requires: python %description Small command-line program to download videos from YouTube. %prep #nothing to prep %build #nothing to build %install #python executable install -D -p -m 755 %{_sourcedir}/%{name} %{buildroot}%{_bindir}/%{name} #man page by Rogerio Brito , licensed under GPLv2 - from Debian package install -D -p -m 644 %{_sourcedir}/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz #license mkdir -p %{buildroot}%{_datadir}/doc/%{name} echo "The program is in the Public Domain." > %{buildroot}%{_datadir}/doc/%{name}/COPYRIGHT chmod 0644 %{buildroot}%{_datadir}/doc/%{name}/COPYRIGHT #docs install -p -m 644 %{_sourcedir}/about %{buildroot}%{_datadir}/doc/%{name} install -p -m 644 %{_sourcedir}/documentation %{buildroot}%{_datadir}/doc/%{name} %files %doc %{_datadir}/doc/%{name} %{_bindir}/%{name} %{_mandir}/man?/*