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