packaging: fix post-script requirements 97/169297/2
authorMichal Bloch <m.bloch@samsung.com>
Mon, 5 Feb 2018 15:39:08 +0000 (16:39 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 6 Feb 2018 10:58:00 +0000 (11:58 +0100)
Change-Id: I4034d0affd64f73de37ceb74c317125bec6765fa
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
packaging/dlog.spec

index 5bc6ecd..35d3214 100644 (file)
@@ -20,10 +20,6 @@ BuildRequires: libtool
 BuildRequires: pkgconfig(capi-base-common)
 BuildRequires: pkgconfig(libudev)
 BuildRequires: pkgconfig(libtzplatform-config)
-Requires(post): coreutils
-Requires(post): /usr/bin/systemctl
-Requires(postun): /usr/bin/systemctl
-Requires(preun): /usr/bin/systemctl
 
 %description
 dlog API library
@@ -31,8 +27,14 @@ dlog API library
 %package -n libdlog
 Summary:    Logging service dlog API
 Group:      Development/Libraries
-Requires(post): /usr/bin/chsmack
+Requires(pre): coreutils
 Requires(post): coreutils
+Requires(post): /sbin/ldconfig
+Requires(post): /usr/bin/chsmack
+Requires(post): /usr/bin/systemctl
+Requires(posttrans): coreutils
+Requires(posttrans): /usr/bin/chsmack
+Requires(postun): /sbin/ldconfig
 
 %description -n libdlog
 dlog API library. If dlogbackend isn't installed, pipe backend is selected.
@@ -48,7 +50,6 @@ dlog API library
 %package -n dlogbackend-logger
 Summary:       Android-logger backend selection for dlog
 Requires:      lib%{name} = %{?epoch:%{epoch}:}%{version}-%{release}
-Requires(post): coreutils
 
 %description -n dlogbackend-logger
 Change dlog backend to logger backend. Require kernel support (Android-logger)
@@ -57,9 +58,6 @@ Change dlog backend to logger backend. Require kernel support (Android-logger)
 Summary:    print log data to the screen
 Group:      Development/Libraries
 Requires:   lib%{name} = %{?epoch:%{epoch}:}%{version}-%{release}
-Requires(post): /usr/bin/systemctl
-Requires(postun): /usr/bin/systemctl
-Requires(preun): /usr/bin/systemctl
 
 %description -n dlogutil
 Utilities for print log data