There is a warning message during creating Image.
Fix the below warning message with this patch.
INFO: Installing: hal-api-common-0.0.1-1.armv7l.rpm
/opt/etc/hal: No such file or directory
/opt/etc/hal: No such file or directory
/var/tmp/rpm-tmp.LHK8m3: line 3: systemd-tmpfiles: command not found
warning: %post(hal-api-common-0.0.1-1.armv7l) scriptlet failed, exit status 127
WARNING: (hal-api-common-0.0.1-1.armv7l.rpm) Post script failed
Change-Id: I1ed933f92f2614ae4ea1c4e1e5d07a932b6a558b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
%package -n %{test_name}
Summary: tests for hal-api-common
Requires: hal-api-common = %{version}
+Requires(post): /sbin/ldconfig
+Requires(post): systemd
+Requires(post): security-config
+Requires(postun): /sbin/ldconfig
%description -n %{test_name}
Haltests for hal-api-common
%clean
rm -rf %{buildroot}
-%post
+%post -n %{test_name}
/sbin/ldconfig
chsmack -a "System" -t %{hal_rpmdb_checker_path}
systemd-tmpfiles /usr/lib/tmpfiles.d/hal-rpmdb-checker.conf --create