Silenced 'dot -c' errors/warnings in post/postun

- Do not remove dot config in plugins post/postun
This commit is contained in:
Jaroslav Škarvada 2012-08-17 19:58:50 +02:00
parent 3dcebe0cb2
commit 509c3e091d

View File

@ -48,7 +48,7 @@
Name: graphviz Name: graphviz
Summary: Graph Visualization Tools Summary: Graph Visualization Tools
Version: 2.28.0 Version: 2.28.0
Release: 22%{?dist} Release: 23%{?dist}
Group: Applications/Multimedia Group: Applications/Multimedia
License: EPL License: EPL
URL: http://www.graphviz.org/ URL: http://www.graphviz.org/
@ -353,7 +353,7 @@ rm -rf %{buildroot}
/sbin/ldconfig /sbin/ldconfig
%{_bindir}/dot -c %{_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 %postun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
rm -f %{_libdir}/graphviz/config* || : rm -f %{_libdir}/graphviz/config* || :
@ -361,39 +361,33 @@ fi
/sbin/ldconfig /sbin/ldconfig
%if %{DEVIL} %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 %post devil
rm -f %{_libdir}/graphviz/config* %{_bindir}/dot -c 2>/dev/null || :
%{_bindir}/dot -c || :
/sbin/ldconfig /sbin/ldconfig
%postun devil %postun devil
rm -f %{_libdir}/graphviz/config* %{_bindir}/dot -c 2>/dev/null || :
%{_bindir}/dot -c || :
/sbin/ldconfig /sbin/ldconfig
%endif %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 %post gd
rm -f %{_libdir}/graphviz/config* %{_bindir}/dot -c 2>/dev/null || :
%{_bindir}/dot -c
/sbin/ldconfig /sbin/ldconfig
%postun gd %postun gd
rm -f %{_libdir}/graphviz/config* %{_bindir}/dot -c 2>/dev/null || :
%{_bindir}/dot -c || :
/sbin/ldconfig /sbin/ldconfig
%if %{MING} %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 %post ming
rm -f %{_libdir}/graphviz/config* %{_bindir}/dot -c 2>/dev/null || :
%{_bindir}/dot -c || :
/sbin/ldconfig /sbin/ldconfig
%postun ming %postun ming
rm -f %{_libdir}/graphviz/config* %{_bindir}/dot -c 2>/dev/null || :
%{_bindir}/dot -c || :
/sbin/ldconfig /sbin/ldconfig
%endif %endif
@ -537,6 +531,10 @@ rm -f %{_libdir}/graphviz/config*
%changelog %changelog
* Fri Aug 17 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 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 <jskarvad@redhat.com> - 2.28.0-22 * Fri Aug 17 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.28.0-22
- dot_builtins no longer installed (lowers implicit deps) - dot_builtins no longer installed (lowers implicit deps)
- Fixed post/postuns for plugins - Fixed post/postuns for plugins