From 694b63401689c0cc785c030734bc51c55e17eb55 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 20 Jul 2017 15:27:47 +0900 Subject: [PATCH] Adding a spec file for packaging TPK format application package. The tizen platform does not support the tpk format for the preloaded application at least now. This patch will help to package RPM file using the TPK file. Change-Id: I9817e3147b8c92814f59f91aca76bb6c5a0457a0 Signed-off-by: Sung-jae Park --- packaging/org.tizen.xamediahub.spec | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 packaging/org.tizen.xamediahub.spec diff --git a/packaging/org.tizen.xamediahub.spec b/packaging/org.tizen.xamediahub.spec new file mode 100644 index 0000000..7dec3c4 --- /dev/null +++ b/packaging/org.tizen.xamediahub.spec @@ -0,0 +1,47 @@ +Name: org.tizen.xamediahub +Summary: mediahub application +Version: 1.0.0 +Release: 1 +Group: Applications +License: Flora-1.1 +Source0: %{name}-%{version}.tar.gz + +BuildRequires: pkgconfig(libtzplatform-config) +Requires(post): /usr/bin/tpk-backend + +%define internal_name org.tizen.xamediahub +%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 includes preloaded application package as the TPK file format. +During installation of this package, the preloaded application package would be dropped into a specific folder. +The folder will be searched by the system and the system will install the TPK files in the folder automatically. + +%prep +%setup -q + +%build + +%install +mkdir -p %{buildroot}/%{preload_tpk_path} +install TVMediaHub/TVMediaHub.Tizen/bin/Debug/xamediahub.tpk %{buildroot}/%{preload_tpk_path}/ + +%post + +%files +%defattr(-,root,root,-) +%{preload_tpk_path}/*.tpk -- 2.7.4