up to 2013.05.23
[packages/youtube-dl.git] / youtube-dl.spec
CommitLineData
58a481cb
ER
1# TODO
2# - bash-completions subpackage
3%define ver 2013.05.23
28341d8e 4Summary: Video extraction utility for YouTube
5Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube
6Name: youtube-dl
48cee41a 7Version: %(echo %{ver} | tr -d .)
3b3b31d2 8Release: 1
ae11d3cf 9License: Public Domain
28341d8e 10Group: Applications/System
58a481cb
ER
11Source0: http://youtube-dl.org/downloads/%{ver}/%{name}-%{ver}.tar.gz
12# Source0-md5: 6cb4ee904456d102d4f3edb68272ca50
9f1b4a7d 13URL: http://youtube-dl.org/
28341d8e 14BuildRequires: rpm-pythonprov
15BuildRequires: rpmbuild(macros) >= 1.219
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
58a481cb
ER
27%setup -qc
28mv %{name} .tmp; mv .tmp/* .
48cee41a
AM
29
30%build
58a481cb 31%{__python} setup.py build
28341d8e 32
28341d8e 33%install
34rm -rf $RPM_BUILD_ROOT
35install -d $RPM_BUILD_ROOT%{_bindir}
58a481cb
ER
36%{__python} setup.py install \
37 --skip-build \
38 --optimize=2 \
39 --root=$RPM_BUILD_ROOT
40
41%py_postclean
42
43%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/youtube_dl
28341d8e 44
45%clean
46rm -rf $RPM_BUILD_ROOT
47
48%files
49%defattr(644,root,root,755)
58a481cb 50%doc CHANGELOG README.md LICENSE
28341d8e 51%attr(755,root,root) %{_bindir}/youtube-dl
58a481cb
ER
52%{_mandir}/man1/youtube-dl.1*
53%{py_sitescriptdir}/youtube_dl
54%{py_sitescriptdir}/youtube_dl-%{ver}-py*.egg-info
This page took 0.103306 seconds and 4 git commands to generate.