summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Ekström <jan.ekstrom@intel.com>2014-09-24 12:54:45 +0300
committerJan Ekström <jan.ekstrom@intel.com>2014-09-24 13:02:20 +0300
commit802c0ef8cf9277d7d658e341425cb9d91f3bed34 (patch)
tree143cdc175246f67d1a1c66ebdd52a84a3628b273
parent26e72adc94c2b56d46b912a4ad4a105afca2ab31 (diff)
downloadico-uxf-homescreen-sample-apps-accepted/tizen_3.0.m14.3_ivi.tar.gz
ico-uxf-homescreen-sample-apps-accepted/tizen_3.0.m14.3_ivi.tar.bz2
ico-uxf-homescreen-sample-apps-accepted/tizen_3.0.m14.3_ivi.zip
Change-Id: Iabcc17a111afd2c682c57685ef573d0fc4d64a7a
-rw-r--r--packaging/ico-uxf-homescreen-sample-apps.spec20
1 files changed, 7 insertions, 13 deletions
diff --git a/packaging/ico-uxf-homescreen-sample-apps.spec b/packaging/ico-uxf-homescreen-sample-apps.spec
index 323870a..bc3342d 100644
--- a/packaging/ico-uxf-homescreen-sample-apps.spec
+++ b/packaging/ico-uxf-homescreen-sample-apps.spec
@@ -150,24 +150,18 @@ install -m 0644 ico-app-miscellaneous/navigator.png %{buildroot}%{_datadir}/icon
# Create a symbolic link to it instead.
ln -sf %{_datadir}/weston/terminal.png %{_datadir}/icons/default/small/
# Update the app database.
-%{_bindir}/pkginfo --imd /usr/share/packages/org.tizen.ico.app-soundsample.xml
-%{_bindir}/pkginfo --imd /usr/share/packages/org.tizen.ico.app-vicsample.xml
-%{_bindir}/pkginfo --imd /usr/share/packages/browser.xml
-%{_bindir}/pkginfo --imd /usr/share/packages/terminal.xml
-%{_bindir}/pkginfo --imd /usr/share/packages/navigator.xml
-
-%preun
-# Update the app database.
-%{_bindir}/pkginfo --rmd /usr/share/packages/org.tizen.ico.app-soundsample.xml
-%{_bindir}/pkginfo --rmd /usr/share/packages/org.tizen.ico.app-vicsample.xml
-%{_bindir}/pkginfo --rmd /usr/share/packages/browser.xml
-%{_bindir}/pkginfo --rmd /usr/share/packages/terminal.xml
-%{_bindir}/pkginfo --rmd /usr/share/packages/navigator.xml
+%{_bindir}/pkg_initdb
+%{_bindir}/ail_initdb
%postun
+if [ "$1" = "0" ]; then
/sbin/ldconfig
rm -f /usr/share/applications/org.tizen.ico.app-soundsample.desktop
rm -f /usr/share/applications/org.tizen.ico.app-vicsample.desktop
rm -f /usr/share/applications/browser.desktop
rm -f /usr/share/applications/terminal.desktop
rm -f %{_datadir}/icons/default/small/terminal.png
+# Update the app database.
+%{_bindir}/pkg_initdb
+%{_bindir}/ail_initdb
+fi