Log : since we are packagers let's start building this up, add tarballed source, build youtube-dl , no longer install the bianry, first attempt

This commit is contained in:
symbianflo 2014-05-07 00:19:00 +02:00
parent 82cc3d8bdf
commit b92d2a103a

View file

@ -7,31 +7,33 @@ Group: Video
Url: http://rg3.github.com/youtube-dl/
Source0: https://yt-dl.org/downloads/%{version}/youtube-dl-%{version}.tar.gz
BuildRequires: help2man
BuildRequires: python
BuildRequires: pythonegg(nose)
BuildRequires: pythonegg(setuptools)
Requires: python
BuildArch: noarch
%description
Small command-line program to download videos from YouTube.
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
#----------------------------------------------------------------------------
%prep
#nothing
%setup -qn %{name}
%build
#nothing
%make
%install
install -D -p -m 755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}
%makeinstall DESTDIR=%{buildroot} \
PREFIX=%{_prefix} \
MANDIR=%{_mandir}
mkdir -p %{buildroot}%{_mandir}/man1/
help2man %{buildroot}%{_bindir}/%{name} > %{buildroot}%{_mandir}/man1/%{name}.1
%check
make test
%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*