- package bash completion
[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
97454f03
JB
26%package -n bash-completion-%{name}
27Summary: Bash completion for youtube-dl command
28Summary(pl.UTF-8): Bashowe dopełnianie parametrów polecenia youtube-dl
29Group: Applications/Shells
30Requires: %{name} = %{version}-%{release}
31Requires: bash-completion
32
33%description -n bash-completion-%{name}
34Bash completion for youtube-dl command.
35
36%description -n bash-completion-%{name} -l pl.UTF-8
37Bashowe dopełnianie parametrów polecenia youtube-dl.
38
28341d8e 39%prep
58a481cb
ER
40%setup -qc
41mv %{name} .tmp; mv .tmp/* .
48cee41a
AM
42
43%build
58a481cb 44%{__python} setup.py build
28341d8e 45
28341d8e 46%install
47rm -rf $RPM_BUILD_ROOT
48install -d $RPM_BUILD_ROOT%{_bindir}
58a481cb
ER
49%{__python} setup.py install \
50 --skip-build \
51 --optimize=2 \
52 --root=$RPM_BUILD_ROOT
53
54%py_postclean
55
97454f03
JB
56install -d $RPM_BUILD_ROOT/etc
57%{__mv} -f $RPM_BUILD_ROOT%{_prefix}/etc/bash_completion.d $RPM_BUILD_ROOT/etc
58a481cb 58%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/youtube_dl
28341d8e 59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
58a481cb 65%doc CHANGELOG README.md LICENSE
28341d8e 66%attr(755,root,root) %{_bindir}/youtube-dl
58a481cb
ER
67%{_mandir}/man1/youtube-dl.1*
68%{py_sitescriptdir}/youtube_dl
69%{py_sitescriptdir}/youtube_dl-%{ver}-py*.egg-info
97454f03
JB
70
71%files -n bash-completion-%{name}
72%defattr(644,root,root,755)
73/etc/bash_completion.d/youtube-dl.bash-completion
This page took 0.194854 seconds and 4 git commands to generate.