]>
Commit | Line | Data |
---|---|---|
48cee41a | 1 | %define ver 2013.03.29 |
28341d8e | 2 | Summary: Video extraction utility for YouTube |
3 | Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube | |
4 | Name: youtube-dl | |
48cee41a | 5 | Version: %(echo %{ver} | tr -d .) |
9f1b4a7d | 6 | Release: 2 |
ae11d3cf | 7 | License: Public Domain |
28341d8e | 8 | Group: Applications/System |
9f1b4a7d AM |
9 | Source0: http://youtube-dl.org/downloads/%{ver}/youtube-dl?/%{name}-%{version} |
10 | # Source0-md5: 7f7b297838928d4f4135f4a6a1ee7f3a | |
11 | URL: http://youtube-dl.org/ | |
28341d8e | 12 | BuildRequires: rpm-pythonprov |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
14 | %pyrequires_eq python-libs | |
f8173f52 | 15 | Requires: python >= 2.6 |
28341d8e | 16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | youtube-dl is a small command-line program to download videos from | |
21 | YouTube.com. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | youtube-dl jest programem do ściągania plików video z YouTube.com. | |
25 | ||
26 | %prep | |
48cee41a AM |
27 | %setup -c -T |
28 | ||
29 | %build | |
30 | ver=$(%{__python} %{SOURCE0} --version | tr -d .) | |
31 | ||
32 | if [ "$ver" != "%{version}" ]; then | |
33 | echo "Source with $ver found while expecting %{version}!" >&2 | |
34 | exit 1 | |
35 | fi | |
28341d8e | 36 | |
28341d8e | 37 | %install |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{_bindir} | |
9f1b4a7d | 40 | install %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/youtube-dl |
28341d8e | 41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %attr(755,root,root) %{_bindir}/youtube-dl |