From: Sung-jae Park Date: Thu, 20 Jul 2017 06:27:47 +0000 (+0900) Subject: Adding a spec file for packaging TPK format application package. X-Git-Tag: accepted/tizen/unified/20170811.133302~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F139690%2F2;p=profile%2Ftv%2Fapps%2Fdotnet%2Fmediahub.git 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 --- 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