summaryrefslogtreecommitdiff
path: root/spec.template
blob: cceffa4b57cd5382c436c13906d0b6fff6abab5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Name:       __OBS_PACKAGE_NAME__
__VCS__
#RS_Ver:    __ROOTSTRAP_VERSION__
Summary:    __SUMMARY__
Version:    __VERSION__
Release:    1
Group:      __GROUP__
License:    __LICENSE__
Source0:    %{name}-%{version}.tar.gz

__EXCLUSIVE_ARCH__
__EXCLUDE_ARCH__

BuildRequires:  pkgconfig(libtzplatform-config)
Requires(post):  /usr/bin/__APP_TYPE__-backend

%define internal_name __TIZEN_STUDIO_PACKAGE_NAME__
%define preload___APP_TYPE___path %{TZ_SYS_RO_APP}/.preload-__APP_TYPE__

%define build_mode __BUILD_MODE__

%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 x86
%endif

%description
__VCS_DESCRIPTION__
This is a container package which have preload TPK/WGT files

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{preload___APP_TYPE___path}
install %{internal_name}-%{version}-%{target}%{build_mode}.__APP_TYPE__ %{buildroot}/%{preload___APP_TYPE___path}/

%post

%files
%defattr(-,root,root,-)
%{preload___APP_TYPE___path}/*