add suffix to if test

This commit is contained in:
Ivana Varekova 2009-08-10 14:04:27 +00:00
parent 1790a7c89c
commit 39f8ad4631

View File

@ -172,7 +172,7 @@ install -p -m 755 ./src/gnuplot-minimal $RPM_BUILD_ROOT%{_bindir}/gnuplot-minima
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-wx 60
%post common
if [ -f %{_infodir}/gnuplot.info ]; then
if [ -f %{_infodir}/gnuplot.info* ]; then
/sbin/install-info %{_infodir}/gnuplot.info %{_infodir}/dir || :
fi
@ -186,7 +186,7 @@ fi
%preun common
if [ $1 = 0 ] ; then # last uninstall
if [ -f %{_infodir}/gnuplot.info ]; then
if [ -f %{_infodir}/gnuplot.info* ]; then
/sbin/install-info --delete %{_infodir}/gnuplot.info %{_infodir}/dir || :
fi
fi