diff options
author | Ronan Le Martret <ronan@fridu.net> | 2014-10-09 16:54:37 +0200 |
---|---|---|
committer | Ronan Le Martret <ronan@fridu.net> | 2014-12-03 13:50:23 +0100 |
commit | 002a7ec8b4a05743715503ea37124d31891cde05 (patch) | |
tree | d8c24c5744d0d310fc604eb5d8e08780a638acea | |
parent | bd467ea49a93f2d2e565a99912e7039123b003ec (diff) | |
download | ico-uxf-homescreen-sample-apps-tizen_3.0_ivi.tar.gz ico-uxf-homescreen-sample-apps-tizen_3.0_ivi.tar.bz2 ico-uxf-homescreen-sample-apps-tizen_3.0_ivi.zip |
clean spec fileHEADtizen_3.0_ivi_releasesubmit/tizen_ivi/20141205.032119accepted/tizen/ivi/20141205.050906tizen_3.0_ivitizenaccepted/tizen_iviaccepted/tizen_3.0_ivi
- use multi user macro
- remove useless command
- allow yocto build
Change-Id: Iaeb7a4ae09188392fb00fc1dd9ad280a94b0b217
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
-rw-r--r-- | packaging/ico-uxf-homescreen-sample-apps.spec | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/packaging/ico-uxf-homescreen-sample-apps.spec b/packaging/ico-uxf-homescreen-sample-apps.spec index 4d7263e..8a4ed6b 100644 --- a/packaging/ico-uxf-homescreen-sample-apps.spec +++ b/packaging/ico-uxf-homescreen-sample-apps.spec @@ -1,3 +1,9 @@ +# configurations(ico-app-soundsample) +%define sound_PREFIX %TZ_SYS_RW_APP/org.tizen.ico.app-soundsample + +# configurations(ico-app-vicsample) +%define vic_PREFIX %TZ_SYS_RW_APP/org.tizen.ico.app-vicsample + Name: ico-uxf-homescreen-sample-apps Summary: HomeScreen sample application Version: 0.9.8 @@ -8,6 +14,8 @@ URL: http://www.toyota.com Source0: %{name}-%{version}.tar.bz2 Source1001: %{name}.manifest +BuildRequires: pkgconfig(libtzplatform-config) + #ico-app-soundsample BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(ecore) @@ -58,7 +66,7 @@ Requires: genivi-shell Requires: weekeyboard %description -HomeScreen sample application +HomeScreen sample application files %prep %setup -q -n %{name}-%{version} @@ -76,12 +84,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/packages/ mkdir -p %{buildroot}%{_datadir}/icons/default/small -# configurations(ico-app-soundsample) -%define sound_PREFIX /usr/apps/org.tizen.ico.app-soundsample - mkdir -p %{buildroot}%{sound_PREFIX}/bin/ mkdir -p %{buildroot}%{sound_PREFIX}/sounds/ -mkdir -p %{buildroot}%{sound_PREFIX}/res/icons/default/small/ mkdir -p %{buildroot}%{sound_PREFIX}/res/images/ install -m 0644 ico-app-soundsample/soundsample_config.txt %{buildroot}%{sound_PREFIX}/res/ install -m 0644 ico-app-soundsample/sound_bg.png %{buildroot}%{sound_PREFIX}/res/images/ @@ -89,11 +93,7 @@ install -m 0644 ico-app-soundsample/org.tizen.ico.app-soundsample.png %{buildroo install -m 0644 ico-app-soundsample/musicbox.wav %{buildroot}%{sound_PREFIX}/sounds/ install -m 0644 ico-app-soundsample/org.tizen.ico.app-soundsample.xml %{buildroot}%{_datadir}/packages/ -# configurations(ico-app-vicsample) -%define vic_PREFIX /usr/apps/org.tizen.ico.app-vicsample - mkdir -p %{buildroot}%{vic_PREFIX}/bin/ -mkdir -p %{buildroot}%{vic_PREFIX}/res/icons/default/small/ mkdir -p %{buildroot}%{vic_PREFIX}/res/images/ install -m 0644 ico-app-vicsample/vicsample_config.txt %{buildroot}%{vic_PREFIX}/res/ install -m 0644 ico-app-vicsample/vicinfo_bg.png %{buildroot}%{vic_PREFIX}/res/images/ @@ -111,7 +111,26 @@ install -m 0644 ico-app-miscellaneous/weekeyboard.xml %{buildroot}%{_datadir}/pa install -m 0644 ico-app-miscellaneous/navigator.xml %{buildroot}%{_datadir}/packages/ install -m 0644 ico-app-miscellaneous/navigator.png %{buildroot}%{_datadir}/icons/default/small/ +%post +/sbin/ldconfig +# This icons exists in main weston package so we don't package it in. +# Create a symbolic link to it instead. +ln -sf %{_datadir}/weston/terminal.png %{_datadir}/icons/default/small/ +# Update the app database. +pkg_initdb +ail_initdb +%postun +if [ "$1" = "0" ]; then +/sbin/ldconfig +rm -f %{_datadir}/applications/org.tizen.ico.app-soundsample.desktop +rm -f %{_datadir}/applications/org.tizen.ico.app-vicsample.desktop +rm -f %{_datadir}/applications/terminal.desktop +rm -f %{_datadir}/icons/default/small/terminal.png +# Update the app database. +pkg_initdb +ail_initdb +fi %files %manifest %{name}.manifest @@ -136,24 +155,3 @@ install -m 0644 ico-app-miscellaneous/navigator.png %{buildroot}%{_datadir}/icon %{_datadir}/packages/navigator.xml %{_datadir}/packages/weekeyboard.xml %{_datadir}/icons/default/small/navigator.png - -%post -/sbin/ldconfig -# This icons exists in main weston package so we don't package it in. -# Create a symbolic link to it instead. -ln -sf %{_datadir}/weston/terminal.png %{_datadir}/icons/default/small/ -# Update the app database. -%{_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/terminal.desktop -rm -f %{_datadir}/icons/default/small/terminal.png -# Update the app database. -%{_bindir}/pkg_initdb -%{_bindir}/ail_initdb -fi |