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(wgt-manifest-handlers)
21 BuildRequires: pkgconfig(pkgmgr-installer)
22 BuildRequires: pkgconfig(libwebappenc)
23 BuildRequires: pkgconfig(tpk-installer)
26 This is a package that installs the WGT backend of pkgmgr.
29 Summary: Unit tests for wgt-backend
30 Requires: %{name} = %{version}
33 Unit tests for wgt-backend
42 #Variable for setting symlink to runtime
43 runtime_path=%{_bindir}/xwalk-launcher
44 %if "%{profile}" == "mobile" || "%{profile}" == "wearable" || "%{profile}" == "tv"
45 runtime_path=%{_bindir}/wrt
47 %cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} -DWRT_LAUNCHER=${runtime_path}
52 mkdir -p %{buildroot}/etc/package-manager/backend
53 ln -s %{_bindir}/wgt-backend %{buildroot}%{_sysconfdir}/package-manager/backend/wgt
56 /usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-backend-ut/smoke-test
57 /usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-backend-ut/smoke-test-helper
60 %manifest wgt-backend.manifest
62 %{_sysconfdir}/package-manager/backend/wgt
63 %{_bindir}/wgt-backend
64 %{_datadir}/wgt-backend/default.png
67 %manifest wgt-backend-tests.manifest
68 %{_bindir}/wgt-backend-ut/*
69 %{_datadir}/wgt-backend-ut/*
72 * Thu Dec 18 2015 Pawel Sikorski <p.sikorski@samsung.com> 0.1-1
73 - initial files creation