Name: org.tizen.xahome Summary: TV home application Version: 1.0.0 Release: 1 Group: Applications License: Flora-1.1 Source0: %{name}-%{version}.tar.gz Source1: %{name}.service 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 internal_name org.tizen.xahome %define preload_tpk_path %{TZ_SYS_RO_APP}/.preload-tpk %define build_mode %{nil} %ifarch arm armv7l %define target arm %endif %ifarch aarch64 %define target aarch64 %endif %ifarch x86_64 %define target x86_64 %endif %ifarch i386 i486 i586 i686 %define target i386 %endif %description This is a container package which have preload TPK files %prep %setup -q %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{preload_tpk_path} install TVHome/TVHome.Tizen.TV/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 "_" %files %defattr(-,root,root,-) %{preload_tpk_path}/*.tpk %{_prefix}/lib/%{_sysuserdir}/%{name}.service %{_prefix}/lib/%{_sysuserdir}/%{name}.path %{_prefix}/lib/%{_servicedir}/%{name}.path