diff --git a/pilot-link.spec b/pilot-link.spec index 18d43ba..98ec782 100644 --- a/pilot-link.spec +++ b/pilot-link.spec @@ -3,7 +3,7 @@ Name: pilot-link Version: 0.12.2 -Release: 13%{?dist} +Release: 14%{?dist} Epoch: 2 License: GPLv2 and GPLv2+ and LGPLv2+ and TCL Group: Applications/Communications @@ -28,7 +28,8 @@ Patch6: pilot-link-0.12.2-open.patch Patch7: pilot-link-0.12.2-NR70V.patch Patch8: pilot-link-0.12.2-md5.patch -Requires: /sbin/ldconfig +Requires(post): /sbin/ldconfig, /sbin/service, /sbin/modprobe +Requires(postun): /sbin/ldconfig %if %{support_perl} Requires: perl(:MODULE_COMPAT_%{perl_version}) @@ -157,9 +158,16 @@ cp %{SOURCE4} README.fedora install -p -m644 %{SOURCE5} %{buildroot}%{_datadir}/pilot-link/udev install -p -m644 %{SOURCE6} %{buildroot}%{_datadir}/pilot-link/udev -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/service haldaemon condrestart >/dev/null 2>&1 +if [ $1 = 2 ]; then +# only attempt to remove visor module on upgrade, not needed for fresh install + /sbin/modprobe -s -r visor > /dev/null 2>&1 +fi -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %clean rm -rf %{buildroot} @@ -188,6 +196,10 @@ rm -rf %{buildroot} %{_datadir}/aclocal/*.m4 %changelog +* Fri Jan 4 2008 Alex Lancaster - 2:0.12.2-14 +- Restart hal daemon if running and remove visor module if currently + loaded (#280251) + * Fri Jan 4 2008 Alex Lancaster - 2:0.12.2-13 - Add README.fedora and visor configs as fallbacks (#280251: thanks Kevin Page)