blob: 4e77c84e0838678f8356cc2f8aa9e53d49871e2b (
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
|
Name: __OBS_PACKAGE_NAME__
#VCS_FROM: __VCS_FROM__
#RS_Ver: __RS_VERSION__
Summary: __SUMMARY__
Version: __VERSION__
Release: 1
Group: __GROUP__
License: __LICENSE__
Source0: %{name}-%{version}.tar.gz
ExclusiveArch: __EXCLUSIVEARCH__
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: curl
Requires(post): /usr/bin/tpk-backend
%define internal_name __TIZEN_STUDIO_PACKAGE_NAME__
%define preload_tpk_path %{TZ_SYS_RO_APP}/.preload-tpk
%define build_mode %{nil}
%ifarch arm armv7l
%define target arm
%endif
%ifarch aarch64 x86_64
%define target arm64
%endif
%ifarch i386 i486 i586 i686 x86
%define target x86
%endif
%description
__VCS__
This is a container package which have preload TPK/WGT files
%prep
%setup -q
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{preload_tpk_path}
if [ -f *-%{target}.tpk ]; then
install *-%{target}.tpk %{buildroot}/%{preload_tpk_path}/
fi
%post
%files
%defattr(-,root,root,-)
%{preload_tpk_path}/*
|