Install Bash completions on RHEL 7 and later

This commit is contained in:
David Ward 2018-03-31 14:50:28 -04:00 committed by Jakub Jelen
parent 7a812b899e
commit 603d15c734

View File

@ -99,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/opensc
# Remove the symlink as nothing is supposed to link against libopensc.
rm -f $RPM_BUILD_ROOT%{_libdir}/libopensc.so
rm -f $RPM_BUILD_ROOT%{_libdir}/libsmm-local.so
%if 0%{?rhel}
%if 0%{?rhel} && 0%{?rhel} < 7
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/
%endif
@ -135,7 +135,7 @@ fi
%defattr(-,root,root,-)
%doc COPYING NEWS README*
%if ! 0%{?rhel}
%if ! 0%{?rhel} || 0%{?rhel} >= 7
%{_sysconfdir}/bash_completion.d/*
%endif