Name: org.tizen.alarm #VCS_FROM: profile/wearable/apps/native/alarm#5f1c0f5237afd87f79308fa84ff0b174d060866f #RS_Ver: 20161006_2 Summary: alarm Version: 2.3.2 Release: 1 Group: N/A License: N/A Source0: %{name}-%{version}.tar.gz ExcludeArch: aarch64 x86_64 BuildRequires: pkgconfig(libtzplatform-config) Requires(post): /usr/bin/tpk-backend %define internal_name org.tizen.alarm %define preload_tpk_path %{TZ_SYS_RO_APP}/.preload-tpk %define build_mode %{nil} %ifarch i386 i486 i586 i686 x86_64 %define target i386 %else %ifarch arm armv7l aarch64 %define target arm %else %define target noarch %endif %endif %description profile/wearable/apps/native/alarm#5f1c0f5237afd87f79308fa84ff0b174d060866f 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 %{internal_name}-%{version}-%{target}%{build_mode}.tpk %{buildroot}/%{preload_tpk_path}/ %post %files %defattr(-,root,root,-) %{preload_tpk_path}/*