--- youtube-dl.spec 2014-12-22 01:51:14.000000000 +0200 +++ youtube-dl.spec 2014-12-22 02:11:47.247705294 +0200 @@ -1,5 +1,5 @@ Name: youtube-dl -Version: 2014.12.10.3 +Version: 2014.12.17.2 Release: 1%{?dist} Summary: A small command-line program to download online videos License: Public Domain @@ -8,10 +8,9 @@ Source1: https://yt-dl.org/downloads/%{version}/youtube-dl-%{version}.tar.gz.sig Source2: gpgkey-7D33D762FD6C35130481347FDB4B54CBA4826A18.gpg Source3: %{name}.conf -BuildRequires: python2 +BuildRequires: python3-devel # Tests failed because of no connection in Koji. # BuildRequires: python-nose -Requires: python BuildArch: noarch # For source verification with gpgv BuildRequires: gpg @@ -23,15 +22,22 @@ gpgv --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %setup -qn %{name} +sed -i '/youtube-dl.bash-completion/d' setup.py +sed -i '/youtube-dl.fish/d' setup.py +sed -i '/README.txt/d' setup.py + %build -make %{?_smp_mflags} +%{__python3} setup.py build %install -%make_install PREFIX=%{_prefix} \ - MANDIR=%{_mandir} \ - PYTHON=%{__python2} +%{__python3} setup.py install --root=%{buildroot} + mkdir -p %{buildroot}%{_sysconfdir} install -pm644 %{S:3} %{buildroot}%{_sysconfdir} +mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/ +install -pm644 youtube-dl.bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/youtube-dl +mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/ +install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtube-dl %check #make test @@ -42,10 +48,15 @@ %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/%{name}.conf %{_sysconfdir}/bash_completion.d/%{name} -%exclude %{_sysconfdir}/fish/completions/youtube-dl.fish %{_datadir}/zsh/site-functions/_youtube-dl +%{python3_sitelib}/youtube_dl/ +%{python3_sitelib}/youtube_dl*.egg-info %changelog +* Mon Dec 22 2014 Alexey Kurov - 2014.12.17.2 +- Update to 2014.12.17.2 +- Python 3.4 byte compile + * Sat Dec 13 2014 Till Maas - 2014.12.10.3-1 - Update to new release