Prune scriptlets a bit
No functional change.
This commit is contained in:
parent
7083485948
commit
798ac163bc
15
cups.spec
15
cups.spec
@ -470,44 +470,35 @@ exit 0
|
|||||||
--slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-cups.1.gz \
|
--slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-cups.1.gz \
|
||||||
--slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-cups.1.gz \
|
--slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-cups.1.gz \
|
||||||
--slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-cups.1.gz \
|
--slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-cups.1.gz \
|
||||||
--slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-cups.1.gz
|
--slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-cups.1.gz || :
|
||||||
%endif
|
%endif
|
||||||
exit 0
|
|
||||||
|
|
||||||
%post lpd
|
%post lpd
|
||||||
%systemd_post cups-lpd.socket
|
%systemd_post cups-lpd.socket
|
||||||
exit 0
|
|
||||||
|
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{name}.path %{name}.socket %{name}.service
|
%systemd_preun %{name}.path %{name}.socket %{name}.service
|
||||||
exit 0
|
|
||||||
|
|
||||||
%preun client
|
%preun client
|
||||||
%if %{use_alternatives}
|
%if %{use_alternatives}
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/usr/sbin/alternatives --remove print %{_bindir}/lpr.cups
|
/usr/sbin/alternatives --remove print %{_bindir}/lpr.cups || :
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
exit 0
|
|
||||||
|
|
||||||
%preun lpd
|
%preun lpd
|
||||||
%systemd_preun cups-lpd.socket
|
%systemd_preun cups-lpd.socket
|
||||||
exit 0
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
# ignore the messages due #1614751 (systemd bug)
|
%systemd_postun_with_restart %{name}.path %{name}.socket %{name}.service
|
||||||
%systemd_postun_with_restart %{name}.path %{name}.socket %{name}.service > /dev/null 2>&1
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%postun lpd
|
%postun lpd
|
||||||
%systemd_postun_with_restart cups-lpd.socket
|
%systemd_postun_with_restart cups-lpd.socket
|
||||||
exit 0
|
|
||||||
|
|
||||||
%triggerin -- samba-client
|
%triggerin -- samba-client
|
||||||
ln -sf %{_libexecdir}/samba/cups_backend_smb %{cups_serverbin}/backend/smb || :
|
ln -sf %{_libexecdir}/samba/cups_backend_smb %{cups_serverbin}/backend/smb || :
|
||||||
exit 0
|
|
||||||
|
|
||||||
%triggerun -- samba-client
|
%triggerun -- samba-client
|
||||||
[ $2 = 0 ] || exit 0
|
[ $2 = 0 ] || exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user