diff --git a/infiniband-diags.spec b/infiniband-diags.spec index 4cd846d..9c39822 100644 --- a/infiniband-diags.spec +++ b/infiniband-diags.spec @@ -15,8 +15,6 @@ Provides: perl(IBswcountlimits) Provides: libibmad = %{version}-%{release} Obsoletes: libibmad < %{version}-%{release} Obsoletes: openib-diags < 1.3 -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig ExcludeArch: s390 %{arm} %if 0%{?rhel} > 7 ExcludeArch: s390x @@ -192,8 +190,7 @@ find ${RPM_BUILD_ROOT} -type f -name '*.la' -print -delete %{_libdir}/*.so %{_includedir}/infiniband/*.h -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files devel-static %{_libdir}/*.a