From 509c3e091d83d4d5c965f2efa9fdf1f6e9eab0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Fri, 17 Aug 2012 19:58:50 +0200 Subject: [PATCH] Silenced 'dot -c' errors/warnings in post/postun - Do not remove dot config in plugins post/postun --- graphviz.spec | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/graphviz.spec b/graphviz.spec index 130fde0..894f1d3 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -48,7 +48,7 @@ Name: graphviz Summary: Graph Visualization Tools Version: 2.28.0 -Release: 22%{?dist} +Release: 23%{?dist} Group: Applications/Multimedia License: EPL URL: http://www.graphviz.org/ @@ -353,7 +353,7 @@ rm -rf %{buildroot} /sbin/ldconfig %{_bindir}/dot -c -# if there is no dot after everything else is done, then remove config +# if there is no dot after everything else is done, then remove config* %postun if [ $1 -eq 0 ]; then rm -f %{_libdir}/graphviz/config* || : @@ -361,39 +361,33 @@ fi /sbin/ldconfig %if %{DEVIL} -# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config +# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* %post devil -rm -f %{_libdir}/graphviz/config* -%{_bindir}/dot -c || : +%{_bindir}/dot -c 2>/dev/null || : /sbin/ldconfig %postun devil -rm -f %{_libdir}/graphviz/config* -%{_bindir}/dot -c || : +%{_bindir}/dot -c 2>/dev/null || : /sbin/ldconfig %endif -# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config +# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* %post gd -rm -f %{_libdir}/graphviz/config* -%{_bindir}/dot -c +%{_bindir}/dot -c 2>/dev/null || : /sbin/ldconfig %postun gd -rm -f %{_libdir}/graphviz/config* -%{_bindir}/dot -c || : +%{_bindir}/dot -c 2>/dev/null || : /sbin/ldconfig %if %{MING} -# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config +# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config* %post ming -rm -f %{_libdir}/graphviz/config* -%{_bindir}/dot -c || : +%{_bindir}/dot -c 2>/dev/null || : /sbin/ldconfig %postun ming -rm -f %{_libdir}/graphviz/config* -%{_bindir}/dot -c || : +%{_bindir}/dot -c 2>/dev/null || : /sbin/ldconfig %endif @@ -537,6 +531,10 @@ rm -f %{_libdir}/graphviz/config* %changelog +* Fri Aug 17 2012 Jaroslav Škarvada - 2.28.0-23 +- Silenced 'dot -c' errors/warnings in post/postun +- Do not remove dot config in plugins post/postun + * Fri Aug 17 2012 Jaroslav Škarvada - 2.28.0-22 - dot_builtins no longer installed (lowers implicit deps) - Fixed post/postuns for plugins