From: ellson Date: Mon, 30 Jan 2006 23:45:06 +0000 (+0000) Subject: only rm config if there is no dot executable after rpm update X-Git-Tag: LAST_LIBGRAPH~32^2~6811 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=148b5bc6065820f497e726653b5d7094911d48c5;p=graphviz only rm config if there is no dot executable after rpm update --- diff --git a/graphviz.spec.in b/graphviz.spec.in index e17bee132..065472874 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -405,8 +405,9 @@ rm -rf $RPM_BUILD_ROOT %post %{_bindir}/dot -c -%preun -rm -f %{_libdir}/%{name}/config +# if there is not dot after everything else is done, the remove config +%postun +if ! test -x %{_bindir}/dot; then rm -f %{_libdir}/%{name}/config; fi %changelog * Tue Sep 13 2005 John Ellson