Adding a spec file for packaging TPK format application package. 90/139690/2
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 20 Jul 2017 06:27:47 +0000 (15:27 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 20 Jul 2017 06:44:34 +0000 (15:44 +0900)
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 <nicesj.park@samsung.com>
packaging/org.tizen.xamediahub.spec [new file with mode: 0644]

diff --git a/packaging/org.tizen.xamediahub.spec b/packaging/org.tizen.xamediahub.spec
new file mode 100644 (file)
index 0000000..7dec3c4
--- /dev/null
@@ -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