fix scriptlet hell.
This commit is contained in:
parent
99a82f877e
commit
179282412f
@ -15,7 +15,7 @@ ExcludeArch: s390 s390x
|
|||||||
Name: NetworkManager
|
Name: NetworkManager
|
||||||
Summary: Network connection manager and user applications
|
Summary: Network connection manager and user applications
|
||||||
Version: 0.5.1
|
Version: 0.5.1
|
||||||
Release: 3%{?nm_cvs_version}
|
Release: 4%{?nm_cvs_version}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://www.gnome.org/projects/NetworkManager/
|
URL: http://www.gnome.org/projects/NetworkManager/
|
||||||
@ -130,8 +130,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add NetworkManager
|
if [ "$1" == "1" ]; then
|
||||||
/sbin/chkconfig --add NetworkManagerDispatcher
|
/sbin/chkconfig --add NetworkManager
|
||||||
|
/sbin/chkconfig --add NetworkManagerDispatcher
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
@ -142,13 +144,6 @@ if [ $1 -eq 0 ]; then
|
|||||||
/sbin/chkconfig --del NetworkManagerDispatcher
|
/sbin/chkconfig --del NetworkManagerDispatcher
|
||||||
fi
|
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
|
%post gnome
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
touch --no-create %{_datadir}/icons/hicolor
|
||||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||||
@ -197,6 +192,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Split out the -glib subpackage to have a -glib-devel package as well
|
||||||
- Add epoch to version requirements for bind and wireless-tools
|
- Add epoch to version requirements for bind and wireless-tools
|
||||||
|
Loading…
Reference in New Issue
Block a user