|
|
@ -1,5 +1,5 @@
|
|
|
|
Name: youtube-dl
|
|
|
|
Name: youtube-dl
|
|
|
|
Version: 2015.01.15.1
|
|
|
|
Version: 2015.01.25
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A small command-line program to download online videos
|
|
|
|
Summary: A small command-line program to download online videos
|
|
|
|
License: Public Domain
|
|
|
|
License: Public Domain
|
|
|
@ -8,10 +8,9 @@ Source0: https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://yt-dl.org/downloads/%{version}/youtube-dl-%{version}.tar.gz.sig
|
|
|
|
Source1: https://yt-dl.org/downloads/%{version}/youtube-dl-%{version}.tar.gz.sig
|
|
|
|
Source2: gpgkey-7D33D762FD6C35130481347FDB4B54CBA4826A18.gpg
|
|
|
|
Source2: gpgkey-7D33D762FD6C35130481347FDB4B54CBA4826A18.gpg
|
|
|
|
Source3: %{name}.conf
|
|
|
|
Source3: %{name}.conf
|
|
|
|
BuildRequires: python2
|
|
|
|
BuildRequires: python-devel
|
|
|
|
# Tests failed because of no connection in Koji.
|
|
|
|
# Tests failed because of no connection in Koji.
|
|
|
|
# BuildRequires: python-nose
|
|
|
|
# BuildRequires: python-nose
|
|
|
|
Requires: python
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
# For source verification with gpgv
|
|
|
|
# For source verification with gpgv
|
|
|
|
BuildRequires: gpg
|
|
|
|
BuildRequires: gpg
|
|
|
@ -23,15 +22,24 @@ Small command-line program to download videos from YouTube and other sites.
|
|
|
|
gpgv --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
|
gpgv --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
|
%setup -qn %{name}
|
|
|
|
%setup -qn %{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp -a setup.py setup.py.installpath
|
|
|
|
|
|
|
|
# Remove files that are installed to the wrong path
|
|
|
|
|
|
|
|
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
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%{__python2} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install PREFIX=%{_prefix} \
|
|
|
|
%{__python2} setup.py install --root=%{buildroot}
|
|
|
|
MANDIR=%{_mandir} \
|
|
|
|
|
|
|
|
PYTHON=%{__python2}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
install -pm644 %{S:3} %{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
|
|
|
|
%check
|
|
|
|
#make test
|
|
|
|
#make test
|
|
|
@ -42,16 +50,24 @@ install -pm644 %{S:3} %{buildroot}%{_sysconfdir}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
|
|
%{_sysconfdir}/bash_completion.d/%{name}
|
|
|
|
%{_sysconfdir}/bash_completion.d/%{name}
|
|
|
|
%exclude %{_sysconfdir}/fish/completions/youtube-dl.fish
|
|
|
|
|
|
|
|
%{_datadir}/zsh/site-functions/_youtube-dl
|
|
|
|
%{_datadir}/zsh/site-functions/_youtube-dl
|
|
|
|
|
|
|
|
%{python_sitelib}/youtube_dl/
|
|
|
|
|
|
|
|
%{python_sitelib}/youtube_dl*.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Jan 27 2015 Till Maas <opensource@till.name> - 2015.01.25-1
|
|
|
|
|
|
|
|
- Update to new release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 27 2015 Alexey Kurov <nucleo@fedoraproject.org> - 2015.01.25.1-1
|
|
|
|
|
|
|
|
- Python 2.7 byte compile
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 16 2015 Matej Cepl <mcepl@redhat.com> - 2015.01.15.1-1
|
|
|
|
* Fri Jan 16 2015 Matej Cepl <mcepl@redhat.com> - 2015.01.15.1-1
|
|
|
|
- Update to new release.
|
|
|
|
- Update to new release.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 14 2015 Till Maas <opensource@till.name> - 2015.01.11-1
|
|
|
|
* Wed Jan 14 2015 Till Maas <opensource@till.name> - 2015.01.11-1
|
|
|
|
- Update to new release
|
|
|
|
- Update to new release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Dec 13 2014 Till Maas <opensource@till.name> - 2014.12.10.3-1
|
|
|
|
* Sat Dec 13 2014 Till Maas <opensource@till.name> - 2014.12.10.3-1
|
|
|
|
- Update to new release
|
|
|
|
- Update to new release
|
|
|
|
|
|
|
|
|
|
|
|