diff --git a/hplip.spec b/hplip.spec index 1cf429d..9d401b3 100644 --- a/hplip.spec +++ b/hplip.spec @@ -24,6 +24,11 @@ Patch8: hplip-libsane.patch Patch9: hplip-media-empty.patch BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +Requires(post): /sbin/service +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/service +Requires(preun): /sbin/chkconfig + %define hpijs_epoch 1 Requires: hpijs = %{hpijs_epoch}:%{version}-%{release} @@ -178,6 +183,8 @@ rm -rf %{buildroot} %{_bindir}/hp-testpage %{_bindir}/hp-unload %{_sbindir}/hpiod +# Note: this must be /usr/lib not %{_libdir}, since that's the +# CUPS serverbin directory. /usr/lib/cups/backend/hp /usr/lib/cups/backend/hpfax %{_libdir}/python*/site-packages/* @@ -248,7 +255,7 @@ rm -rf %{buildroot} %post /sbin/chkconfig --add hplip || : -if [ "$1" == "1" ]; then +if [ "$1" -ge "1" ]; then /sbin/service hplip condrestart >/dev/null 2>&1 || : fi exit 0 @@ -272,6 +279,11 @@ fi exit 0 %changelog +* Mon Apr 16 2007 Tim Waugh +- Added /sbin/service and /sbin/chkconfig requirements for the scriptlets + (bug #236445). +- Fixed %%post scriptlet's condrestart logic (bug #236445). + * Fri Apr 13 2007 Tim Waugh 1.7.2-6 - Fixed dangling symlinks (bug #236156). - Move all fax bits to the gui package (bug #236161).