From 39cdd8c6a7614c5d1a1593331d43c752b34bd1d4 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Sun, 5 Mar 2017 00:29:19 -0500 Subject: [PATCH] trying to fix an issue with %post in rpm .spec filr --- graphviz.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphviz.spec.in b/graphviz.spec.in index 448bab5a9..d94eed4b8 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -326,11 +326,11 @@ Requires: %{name}-nox = %{version}-%{release} Graphviz plugins - core layout engines and text renderers # run "dot -c" to generate plugin config in {_libdir}/graphviz/config6 -%post +%post plugins-core LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c # if there is no dot after everything else is done, then remove config -%postun +%postun plugins-core if [ $1 -eq 0 ]; then rm -f $RPM_INSTALL_PREFIX0/%{_lib}/graphviz/config6 || : fi -- 2.40.0