1 #Available values for profile: mobile, wearable, tv, ivi, common
2 %{!?profile:%define profile tv}
5 Summary: Application installer backend for WGT
8 Group: Application Framework/Package Management
10 Source0: %{name}-%{version}.tar.gz
12 Source1000: wgt-backend.manifest
13 Source1001: wgt-backend-tests.manifest
15 BuildRequires: boost-devel
17 BuildRequires: gtest-devel
18 BuildRequires: pkgconfig(app-installers)
19 BuildRequires: pkgconfig(manifest-parser)
20 BuildRequires: pkgconfig(manifest-handlers)
21 BuildRequires: pkgconfig(pkgmgr-installer)
22 BuildRequires: pkgconfig(libwebappenc)
25 This is a package that installs the WGT backend of pkgmgr.
28 Summary: Unit tests for wgt-backend
29 Requires: %{name} = %{version}
32 Unit tests for wgt-backend
41 #Variable for setting symlink to runtime
42 runtime_path=%{_bindir}/xwalk-launcher
43 %if "%{profile}" == "mobile" || "%{profile}" == "wearable" || "%{profile}" == "tv"
44 runtime_path=%{_bindir}/wrt
46 %cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} -DWRT_LAUNCHER=${runtime_path}
51 mkdir -p %{buildroot}/etc/package-manager/backend
52 ln -s %{_bindir}/wgt-backend %{buildroot}%{_sysconfdir}/package-manager/backend/wgt
55 %manifest wgt-backend.manifest
57 %{_sysconfdir}/package-manager/backend/wgt
58 %{_bindir}/wgt-backend
61 %manifest wgt-backend-tests.manifest
62 %{_bindir}/wgt-backend-ut/*
63 %{_datadir}/wgt-backend-ut/*
66 * Thu Dec 18 2015 Pawel Sikorski <p.sikorski@samsung.com> 0.1-1
67 - initial files creation