New version 2014.04.13, generate man page instead of using pre-generated old one

This commit is contained in:
Andrey Bondrov 2014-04-16 01:02:05 +11:00
parent 4b7501e57c
commit ca447cc793

View file

@ -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 <rbrito@users.sf.net>, 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 <rbrito@users.sf.net>, 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.*