From 4c70bcc1e86bc23e232c8a5373f5e9e7958f97926297917b24bae425a9e028af Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Mon, 1 Aug 2016 08:02:03 +0000 Subject: [PATCH] Accepting request 415919 from home:jengelh:branches:Printing - Avoid invocation of sh for simple ldconfig calls OBS-URL: https://build.opensuse.org/request/show/415919 OBS-URL: https://build.opensuse.org/package/show/Printing/epson-inkjet-printer-escpr?expand=0&rev=26 --- epson-inkjet-printer-escpr.changes | 5 +++++ epson-inkjet-printer-escpr.spec | 12 ++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/epson-inkjet-printer-escpr.changes b/epson-inkjet-printer-escpr.changes index 8816726..7d446cf 100644 --- a/epson-inkjet-printer-escpr.changes +++ b/epson-inkjet-printer-escpr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 29 15:58:36 UTC 2016 - jengelh@inai.de + +- Avoid invocation of sh for simple ldconfig calls + ------------------------------------------------------------------- Tue Jul 19 13:38:46 CEST 2016 - jsmeix@suse.de diff --git a/epson-inkjet-printer-escpr.spec b/epson-inkjet-printer-escpr.spec index 2751cb4..eb4c8cb 100644 --- a/epson-inkjet-printer-escpr.spec +++ b/epson-inkjet-printer-escpr.spec @@ -53,13 +53,10 @@ Group: Hardware/Printing Source0: epson-inkjet-printer-escpr-%{version}-1lsb3.2.tar.gz # This software is a filter program used with CUPS: Requires: cups -# Prerequire /sbin/ldconfig which is used in the traditional bash scriptlets for post/postun: -PreReq: /sbin/ldconfig # Install into this non-root directory (required when norootforbuild is used): BuildRoot: %{_tmppath}/%{name}-%{version}-build %description - The ESC/P-R driver works as a filter program used with CUPS. @@ -128,13 +125,8 @@ done set -x popd -%post -/sbin/ldconfig -exit 0 - -%postun -/sbin/ldconfig -exit 0 +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files # The files sections list all mandatory files explicitly one by one.