From 622b49fcc5e2c1bd0f34e30f93df0f325b89abe3 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 11 Apr 2014 16:53:46 +0200 Subject: fix widgets install in multiuser mode Change-Id: I95b2a246750b1eca603775c5be09a70ba3291fb8 Signed-off-by: Stephane Desneux --- packaging/wrt-widgets.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'packaging/wrt-widgets.spec') diff --git a/packaging/wrt-widgets.spec b/packaging/wrt-widgets.spec index fbe246b..e8f6b8a 100644 --- a/packaging/wrt-widgets.spec +++ b/packaging/wrt-widgets.spec @@ -6,6 +6,8 @@ Group: Web Framework/Web Run Time License: Apache-2.0 BuildArch: noarch Source0: %{name}-%{version}.tar.gz +BuildRequires: pkgconfig(libtzplatform-config) +Requires: libtzplatform-config %description Wrt-widgets prepare a suitable pc oriented environment to install Web apps @@ -22,16 +24,12 @@ mkdir -p %{buildroot}/%{_bindir} cp install_widgets.sh %{buildroot}/%{_bindir} cp prepare_widgets.sh %{buildroot}/%{_bindir} -if [ ! -d %{buildroot}/%{_datadir}/widget_demo ] -then - mkdir -p %{buildroot}/%{_datadir}/widget_demo -fi - -cp -r *.wgt %{buildroot}/%{_datadir}/widget_demo/ +mkdir -p %{buildroot}/%{TZ_SYS_SHARE}/widget_demo +cp -r *.wgt %{buildroot}/%{TZ_SYS_SHARE}/widget_demo/ %post %files -%{_datadir}/widget_demo/*.wgt +%{TZ_SYS_SHARE}/widget_demo/*.wgt %attr(755,root,root) %{_bindir}/install_widgets.sh %attr(755,root,root) %{_bindir}/prepare_widgets.sh -- cgit v1.2.3