X-Git-Url: http://git.pld-linux.org/?p=packages%2Fyoutube-dl.git;a=blobdiff_plain;f=youtube-dl.spec;h=1fcc74e8737163c7b552601d9ef78ccf26c26266;hp=94ee107a14e6821355d6f1168372a58daf7201f9;hb=f094d9a60d06d64f24bb9467ea30a068a1122a7b;hpb=9c4c91167f2eb7f40a0a9870dd813c9f6fb781a2 diff --git a/youtube-dl.spec b/youtube-dl.spec index 94ee107..1fcc74e 100644 --- a/youtube-dl.spec +++ b/youtube-dl.spec @@ -1,5 +1,5 @@ # full version number as seen on youtube-dl website -%define verlong 2017.04.15 +%define verlong 2018.11.18 # transform version so we don't have to bump epoch after four digit upgrades: # 2013.01.17.1 becomes 20130117_1 @@ -16,21 +16,23 @@ Epoch: 2 License: Public Domain Group: Applications/System Source0: http://youtube-dl.org/downloads/%{verlong}/%{name}-%{verlong}.tar.gz -# Source0-md5: c0e550cd3f1ba82c3f115b4cf256b717 +# Source0-md5: f66ab6c0fbcbeab2a2fadd68b03b4c26 Source1: %{name}.conf +# should be downloaded from: +# https://github.com/rg3/youtube-dl/pull/10291.diff +# but the author removed his repository, so the url is 404 +# git log -p --reverse pr/10291~3..pr/10291 +Patch0: 10291.diff URL: http://youtube-dl.org/ BuildRequires: python-setuptools BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.713 +BuildRequires: rpmbuild(macros) >= 1.720 Requires: python-pyxattr >= 0.5.0 Requires: python-setuptools +Suggests: ffmpeg BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define bash_compdir %{_datadir}/bash-completion/completions -%define fish_compdir %{_datadir}/fish/completions -%define zsh_compdir %{_datadir}/zsh/site-functions - %description youtube-dl is a small command-line program to download videos from YouTube.com. @@ -80,6 +82,7 @@ Dopełnianie parametrów w zsh dla polecenia youtube-dl. %prep %setup -qc mv %{name} .tmp; mv .tmp/* . +%patch0 -p1 %build %py_build