fix scriptlet hell.

This commit is contained in:
Peter Jones 2005-11-18 23:33:25 +00:00
parent 99a82f877e
commit 179282412f
1 changed files with 8 additions and 10 deletions

View File

@ -15,7 +15,7 @@ ExcludeArch: s390 s390x
Name: NetworkManager
Summary: Network connection manager and user applications
Version: 0.5.1
Release: 3%{?nm_cvs_version}
Release: 4%{?nm_cvs_version}
Group: System Environment/Base
License: GPL
URL: http://www.gnome.org/projects/NetworkManager/
@ -130,8 +130,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
%post
/sbin/chkconfig --add NetworkManager
/sbin/chkconfig --add NetworkManagerDispatcher
if [ "$1" == "1" ]; then
/sbin/chkconfig --add NetworkManager
/sbin/chkconfig --add NetworkManagerDispatcher
fi
%preun
if [ $1 -eq 0 ]; then
@ -142,13 +144,6 @@ if [ $1 -eq 0 ]; then
/sbin/chkconfig --del NetworkManagerDispatcher
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service NetworkManager condrestart >/dev/null 2>&1
/sbin/service NetworkManagerDispatcher condrestart >/dev/null 2>&1
fi
%post gnome
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
@ -197,6 +192,9 @@ fi
%changelog
* Fri Nov 18 2005 Peter Jones <pjones@redhat.com> - 0.5.1-4
- Don't kill the network connection when you upgrade the package.
* Fri Oct 21 2005 Christopher Aillon <caillon@redhat.com> - 0.5.1-3
- Split out the -glib subpackage to have a -glib-devel package as well
- Add epoch to version requirements for bind and wireless-tools