From 0168bdfdc7f2e74432a71aa1349fa852118611ee Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Oct 27 2020 23:51:14 +0000 Subject: Conditionally use ldconfig scriptlets from the library template This has not been needed since Fedora 28; instead of hardcoding the scriptlet, conditionally expand %{?ldconfig_scriptlets} if it's defined. https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets Signed-off-by: Michel Alexandre Salim --- diff --git a/spectemplate-lib.spec b/spectemplate-lib.spec index 9081fb2..22b1b2c 100644 --- a/spectemplate-lib.spec +++ b/spectemplate-lib.spec @@ -37,9 +37,7 @@ make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%{?ldconfig_scriptlets} %files