- separate our rpm version number from upstream number, so there will be no problem...
[packages/youtube-dl.git] / youtube-dl.spec
CommitLineData
652733c1
AM
1# keep date only for rpm versioning, extra numbers go into release
2%define ver 20140912
3# full version number as seen on youtube-dl website
4%define verlong 2014.09.12
5#
28341d8e 6Summary: Video extraction utility for YouTube
7Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube
8Name: youtube-dl
652733c1 9Version: %{ver}
4c1746c0 10Release: 1
652733c1 11Epoch: 2
ae11d3cf 12License: Public Domain
28341d8e 13Group: Applications/System
652733c1 14Source0: http://youtube-dl.org/downloads/%{verlong}/%{name}-%{verlong}.tar.gz
cc5cf178 15# Source0-md5: e23dc65274fd063710be77b1ec8a5675
9f1b4a7d 16URL: http://youtube-dl.org/
6715ceef 17BuildRequires: python-distribute
28341d8e 18BuildRequires: rpm-pythonprov
19BuildRequires: rpmbuild(macros) >= 1.219
c24ed57f 20Requires: python-distribute
28341d8e 21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
b9296b05
ER
24%define bash_compdir %{_datadir}/bash-completion/completions
25
28341d8e 26%description
27youtube-dl is a small command-line program to download videos from
28YouTube.com.
29
30%description -l pl.UTF-8
31youtube-dl jest programem do ściągania plików video z YouTube.com.
32
97454f03
JB
33%package -n bash-completion-%{name}
34Summary: Bash completion for youtube-dl command
35Summary(pl.UTF-8): Bashowe dopełnianie parametrów polecenia youtube-dl
36Group: Applications/Shells
9a77a05b 37Requires: %{name} = %{epoch}:%{version}-%{release}
b9296b05 38Requires: bash-completion >= 2.0
97454f03
JB
39
40%description -n bash-completion-%{name}
41Bash completion for youtube-dl command.
42
43%description -n bash-completion-%{name} -l pl.UTF-8
44Bashowe dopełnianie parametrów polecenia youtube-dl.
45
28341d8e 46%prep
58a481cb
ER
47%setup -qc
48mv %{name} .tmp; mv .tmp/* .
48cee41a
AM
49
50%build
58a481cb 51%{__python} setup.py build
28341d8e 52
28341d8e 53%install
54rm -rf $RPM_BUILD_ROOT
55install -d $RPM_BUILD_ROOT%{_bindir}
58a481cb
ER
56%{__python} setup.py install \
57 --skip-build \
58 --optimize=2 \
59 --root=$RPM_BUILD_ROOT
60
61%py_postclean
62
b9296b05
ER
63install -d $RPM_BUILD_ROOT%{bash_compdir}
64%{__mv} $RPM_BUILD_ROOT%{_prefix}/etc/bash_completion.d/youtube-dl.bash-completion \
65 $RPM_BUILD_ROOT%{bash_compdir}/%{name}
58a481cb 66%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/youtube_dl
28341d8e 67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(644,root,root,755)
4c1746c0 73%doc README.md LICENSE
28341d8e 74%attr(755,root,root) %{_bindir}/youtube-dl
58a481cb
ER
75%{_mandir}/man1/youtube-dl.1*
76%{py_sitescriptdir}/youtube_dl
652733c1 77%{py_sitescriptdir}/youtube_dl-%{verlong}-py*.egg-info
97454f03
JB
78
79%files -n bash-completion-%{name}
80%defattr(644,root,root,755)
b9296b05 81%{bash_compdir}/%{name}
This page took 0.044656 seconds and 4 git commands to generate.