From 09825fb09a3abc9f530ac952ff4657fe9702d185 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:40:34 +0100 Subject: [PATCH] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- openblas.spec | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/openblas.spec b/openblas.spec index 7d05589..f6d790b 100644 --- a/openblas.spec +++ b/openblas.spec @@ -595,33 +595,23 @@ rm -rf %{buildroot}%{_libdir}/cmake # Get rid of generated pkgconfig rm -rf %{buildroot}%{_libdir}/pkgconfig -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets -%post openmp -p /sbin/ldconfig -%postun openmp -p /sbin/ldconfig +%ldconfig_scriptlets openmp -%post Rblas -p /sbin/ldconfig -%postun Rblas -p /sbin/ldconfig +%ldconfig_scriptlets Rblas -%post threads -p /sbin/ldconfig -%postun threads -p /sbin/ldconfig +%ldconfig_scriptlets threads %if %build64 -%post openmp64 -p /sbin/ldconfig -%postun openmp64 -p /sbin/ldconfig -%post openmp64_ -p /sbin/ldconfig -%postun openmp64_ -p /sbin/ldconfig +%ldconfig_scriptlets openmp64 +%ldconfig_scriptlets openmp64_ -%post serial64 -p /sbin/ldconfig -%postun serial64 -p /sbin/ldconfig -%post serial64_ -p /sbin/ldconfig -%postun serial64_ -p /sbin/ldconfig +%ldconfig_scriptlets serial64 +%ldconfig_scriptlets serial64_ -%post threads64 -p /sbin/ldconfig -%postun threads64 -p /sbin/ldconfig -%post threads64_ -p /sbin/ldconfig -%postun threads64_ -p /sbin/ldconfig +%ldconfig_scriptlets threads64 +%ldconfig_scriptlets threads64_ %endif %files