diff --git a/youtube-dl.spec b/youtube-dl.spec index 666d27e..ac71785 100644 --- a/youtube-dl.spec +++ b/youtube-dl.spec @@ -1,20 +1,25 @@ Summary: Small command-line program to download videos from YouTube Name: youtube-dl -Version: 2014.04.01.3 +Version: 2014.04.13 Release: 1 -License: Public Domain and GPLv2 +License: Public Domain and GPLv2+ Group: Video Url: http://rg3.github.com/youtube-dl/ Source0: https://yt-dl.org/downloads/%{version}/youtube-dl - -#man page from Debian by Rogerio Brito , licensed under GPLv2 -Source1: %{name}.1.gz -BuildArch: noarch +BuildRequires: help2man +BuildRequires: python Requires: python +BuildArch: noarch %description Small command-line program to download videos from YouTube. +%files +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.* + +#---------------------------------------------------------------------------- + %prep #nothing @@ -24,9 +29,6 @@ Small command-line program to download videos from YouTube. %install install -D -p -m 755 %{SOURCE0} %{buildroot}%{_bindir}/%{name} -#man page by Rogerio Brito , licensed under GPLv2 - from a Debian package -install -D -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1.gz +mkdir -p %{buildroot}%{_mandir}/man1/ +help2man %{buildroot}%{_bindir}/%{name} > %{buildroot}%{_mandir}/man1/%{name}.1 -%files -%{_bindir}/%{name} -%{_mandir}/man1/%{name}.1.*