HALCC (HAL Compatibility Checker) checks and stores the compatibility
result of hal-backend package under /opt/etc/hal/ directory.
When installing/un-installing hal-api packages,
compatibility result between HAL manifest and hal-backend package should
be reset. So that reset the result of hal-compatibility-checker by
'usr/bin/hal-compatibility-checker --reset' command.
Change-Id: I531805ba0f985c842b3fd96ce03b9619d67ce6a1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/hal/
%make_install
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/usr/bin/hal-compatibility-checker --reset
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+/usr/bin/hal-compatibility-checker --reset
%files
%manifest %{name}.manifest