- rel 2; proper url
[packages/youtube-dl.git] / youtube-dl.spec
CommitLineData
48cee41a 1%define ver 2013.03.29
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 .)
9f1b4a7d 6Release: 2
ae11d3cf 7License: Public Domain
28341d8e 8Group: Applications/System
9f1b4a7d
AM
9Source0: http://youtube-dl.org/downloads/%{ver}/youtube-dl?/%{name}-%{version}
10# Source0-md5: 7f7b297838928d4f4135f4a6a1ee7f3a
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.181975 seconds and 4 git commands to generate.