summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorHyerim Kim <rimi.kim@samsung.com>2017-08-04 14:09:44 +0900
committerHyerim Kim <rimi.kim@samsung.com>2017-08-07 15:57:02 +0900
commitd8843bceff3fa4cbd52c091df2b3a5c5e958036e (patch)
tree0b2e0d88214406f82d99f20e9fd382dd4744b894 /packaging
parent67c873f79756a2aad479f186008881c0f8ab2e70 (diff)
downloadhome-d8843bceff3fa4cbd52c091df2b3a5c5e958036e.tar.gz
home-d8843bceff3fa4cbd52c091df2b3a5c5e958036e.tar.bz2
home-d8843bceff3fa4cbd52c091df2b3a5c5e958036e.zip
Modifies the files for RPM packagingsubmit/tizen/20170808.015446
Change-Id: I240a905353b2922c9dffdc69a3b6522ef16ffba8 Signed-off-by: Hyerim Kim <rimi.kim@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/org.tizen.xahome.spec31
1 files changed, 17 insertions, 14 deletions
diff --git a/packaging/org.tizen.xahome.spec b/packaging/org.tizen.xahome.spec
index b9ab70d..dd80b4e 100644
--- a/packaging/org.tizen.xahome.spec
+++ b/packaging/org.tizen.xahome.spec
@@ -11,8 +11,8 @@ Source2: %{name}.path
BuildRequires: pkgconfig(libtzplatform-config)
Requires(post): /usr/bin/tpk-backend
-%define _sysuserdir /systemd/user
-%define _servicedir /systemd/user/default.target.wants
+%define _sysuserdir systemd/user
+%define _servicedir systemd/user/default.target.wants
%define internal_name org.tizen.xahome
%define preload_tpk_path %{TZ_SYS_RO_APP}/.preload-tpk
@@ -40,21 +40,24 @@ This is a container package which have preload TPK files
%build
%install
-mkdir -p %{buildroot}/%{preload_tpk_path}
-install xahome/xahome/bin/Debug/xahome.tpk %{buildroot}/%{preload_tpk_path}/
-#install --directory %{buildroot}%{_prefix}/lib/%{_servicedir}
-#install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/%{_sysuserdir}
-#install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/%{_sysuserdir}
-#ln -sf ../%{name}.path %{buildroot}%{_prefix}/lib/%{_servicedir}
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{preload_tpk_path}
+install TVHome/TVHome.TizenTV/bin/Debug/TVHome.TizenTV.tpk %{buildroot}%{preload_tpk_path}/
+install --directory %{buildroot}%{_prefix}/lib/%{_servicedir}
+install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/%{_sysuserdir}
+install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/%{_sysuserdir}
+ln -sf ../%{name}.path %{buildroot}%{_prefix}/lib/%{_servicedir}
%post
-#chsmack %{_prefix}/lib/%{_sysuserdir}/%{name}.service -a "_"
-#chsmack %{_prefix}/lib/%{_sysuserdir}/%{name}.path -a "_"
-#chsmack %{_prefix}/lib/%{_servicedir}/%{name}.path -a "_"
+chsmack %{_prefix}/lib/%{_sysuserdir}/%{name}.service -a "_"
+chsmack %{_prefix}/lib/%{_sysuserdir}/%{name}.path -a "_"
+chsmack %{_prefix}/lib/%{_servicedir}/%{name}.path -a "_"
+/usr/bin/tpk-backend -i %{preload_tpk_path}/TVHome.TizenTV.tpk --preload
+rm -rf %{preload_tpk_path}/TVHome.TizenTV.tpk
%files
%defattr(-,root,root,-)
%{preload_tpk_path}/*.tpk
-#%{_prefix}/lib/%{_sysuserdir}/%{name}.service
-#%{_prefix}/lib/%{_sysuserdir}/%{name}.path
-#%{_prefix}/lib/%{_servicedir}/%{name}.path
+%{_prefix}/lib/%{_sysuserdir}/%{name}.service
+%{_prefix}/lib/%{_sysuserdir}/%{name}.path
+%{_prefix}/lib/%{_servicedir}/%{name}.path