[packages/feh] install bash completion file to %{bash_compdir}
atler
atler at pld-linux.org
Thu Dec 14 03:14:12 CET 2023
commit 4e7a728dc3fed8a9f13077f8a23b46289fff6ff4
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Dec 14 01:00:21 2023 +0100
install bash completion file to %{bash_compdir}
feh.spec | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/feh.spec b/feh.spec
index 8e7055e..85703ab 100644
--- a/feh.spec
+++ b/feh.spec
@@ -100,14 +100,13 @@ LDFLAGS="%{rpmldflags}" \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
-install -d $RPM_BUILD_ROOT%{zsh_compdir}
+install -d $RPM_BUILD_ROOT{%{bash_compdir},%{zsh_compdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
PREFIX=%{_prefix}
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{bash_compdir}/%{name}
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{zsh_compdir}/_%{name}
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
@@ -135,8 +134,8 @@ rm -rf $RPM_BUILD_ROOT
%files -n bash-completion-feh
%defattr(644,root,root,755)
-%{_sysconfdir}/bash_completion.d/%{name}
+%{bash_compdir}/%{name}
%files -n zsh-completion-feh
%defattr(644,root,root,755)
-%{zsh_compdir}/_feh
+%{zsh_compdir}/_%{name}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/feh.git/commitdiff/bddb813609c4e807b3970a76363d0b744e7530ab
More information about the pld-cvs-commit
mailing list