From 17468b8b5ad9c1fcc2174be3cdfaf9930ccd2d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Mon, 26 Mar 2018 23:39:51 +0200 Subject: [PATCH] bash completion script actually is Fedora dependent. --- youtube-dl.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube-dl.spec b/youtube-dl.spec index d777ed2..307fca2 100644 --- a/youtube-dl.spec +++ b/youtube-dl.spec @@ -75,7 +75,7 @@ find youtube_dl -type f -exec sed -i -e '1{/^\#!\/usr\/bin\/env python$/d;};' {} mkdir -p %{buildroot}%{_sysconfdir} install -pm644 %{S:3} %{buildroot}%{_sysconfdir} -%if %{with python3} +%if 0%{?fedora} mkdir -p %{buildroot}%{_datadir}/bash-completion/completions install -pm644 youtube-dl.bash-completion %{buildroot}%{_datadir}/bash-completion/completions/youtube-dl %else @@ -107,7 +107,7 @@ install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtub %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/%{name}.conf -%if %{with python3} +%if 0%{?fedora} %{_datadir}/bash-completion/completions/%{name} %else %{_sysconfdir}/bash_completion.d/%{name}