From 420616ec9d2fd38c9be5a75f6b3316868bd480ee Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:39:10 +0100 Subject: [PATCH] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- graphviz.spec | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/graphviz.spec b/graphviz.spec index 51c0593..c7eb48e 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -443,41 +443,40 @@ php --no-php-ini \ # make rtest %post -/sbin/ldconfig +%{?ldconfig} %{_bindir}/dot -c 2>/dev/null || : -%postun -/sbin/ldconfig +%ldconfig_postun %if %{DEVIL} # run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* %post devil %{_bindir}/dot -c 2>/dev/null || : -/sbin/ldconfig +%{?ldconfig} %postun devil %{_bindir}/dot -c 2>/dev/null || : -/sbin/ldconfig +%{?ldconfig} %endif # run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* %post gd %{_bindir}/dot -c 2>/dev/null || : -/sbin/ldconfig +%{?ldconfig} %postun gd %{_bindir}/dot -c 2>/dev/null || : -/sbin/ldconfig +%{?ldconfig} %if %{MING} # run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* %post ming %{_bindir}/dot -c 2>/dev/null || : -/sbin/ldconfig +%{?ldconfig} %postun ming %{_bindir}/dot -c 2>/dev/null || : -/sbin/ldconfig +%{?ldconfig} %endif %files