Install Bash completions on RHEL 7 and later
This commit is contained in:
parent
7a812b899e
commit
603d15c734
@ -99,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/opensc
|
|||||||
# Remove the symlink as nothing is supposed to link against libopensc.
|
# 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}/libopensc.so
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libsmm-local.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/
|
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ fi
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING NEWS README*
|
%doc COPYING NEWS README*
|
||||||
|
|
||||||
%if ! 0%{?rhel}
|
%if ! 0%{?rhel} || 0%{?rhel} >= 7
|
||||||
%{_sysconfdir}/bash_completion.d/*
|
%{_sysconfdir}/bash_completion.d/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user