8 |
Source0: https://github.com/rg3/youtube-dl/archive/%{version}.zip |
Source0: https://github.com/rg3/youtube-dl/archive/%{version}.zip |
9 |
#man page from Debian by Rogerio Brito <rbrito@users.sf.net>, licensed under GPLv2 |
#man page from Debian by Rogerio Brito <rbrito@users.sf.net>, licensed under GPLv2 |
10 |
Source1: %{name}.1.gz |
Source1: %{name}.1.gz |
11 |
|
Patch0: %{name}-2012.12.11-mga-disable-broken-installation-of-bash-completion.patch |
12 |
|
|
13 |
BuildArch: noarch |
BuildArch: noarch |
14 |
|
|
19 |
|
|
20 |
|
|
21 |
%prep |
%prep |
22 |
#nothing to prep |
%setup -q |
23 |
|
%patch0 -p0 |
24 |
|
|
25 |
%build |
%build |
26 |
#nothing to build |
python setup.py build |
27 |
|
|
28 |
%install |
%install |
29 |
#python executable |
python setup.py install --skip-build --root %{buildroot} |
|
install -D -p -m 755 %{_sourcedir}/%{name} %{buildroot}%{_bindir}/%{name} |
|
30 |
|
|
31 |
# man page by Rogerio Brito <rbrito@users.sf.net>, licensed under GPLv2 - from a Debian package |
# man page by Rogerio Brito <rbrito@users.sf.net>, licensed under GPLv2 - from a Debian package |
32 |
install -D -p -m 644 %{_sourcedir}/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz |
install -D -p -m 644 %{_sourcedir}/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz |
33 |
|
|
34 |
%files |
%files |
35 |
%{_bindir}/%{name} |
%{_bindir}/%{name} |
36 |
|
%{python_sitelib}/youtube_dl/*py |
37 |
|
%{python_sitelib}/youtube_dl-%{version}-py2.7.egg-info |
38 |
%{_mandir}/man?/* |
%{_mandir}/man?/* |