From 603d15c734684dd38121b19b8eae0001cccb4860 Mon Sep 17 00:00:00 2001 From: David Ward Date: Sat, 31 Mar 2018 14:50:28 -0400 Subject: [PATCH] Install Bash completions on RHEL 7 and later --- opensc.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensc.spec b/opensc.spec index 676303e..8d67568 100644 --- a/opensc.spec +++ b/opensc.spec @@ -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