Name: wgt-backend
Summary: Application installer backend for WGT
-Version: 0.15.9
+Version: 0.15.39
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
Source1002: wgt-installer-tests.manifest
Requires: wgt-installer = %{version}
-BuildRequires: boost-devel
BuildRequires: cmake
-BuildRequires: gtest-devel
BuildRequires: app-installers-tests
BuildRequires: pkgconfig(app-installers)
BuildRequires: pkgconfig(manifest-parser)
BuildRequires: pkgconfig(tpk-installer)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(libgum)
+BuildRequires: pkgconfig(gmock)
%description
This is a package that installs the WGT backend of pkgmgr.
cp %{SOURCE1002} .
%build
-%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
+%ifnarch x86_64 aarch64
+ISARC64=0
+%else
+ISARC64=1
+%endif
+%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
+ -DISARC64=${ISARC64}
make %{?_smp_mflags}
%install
ln -s %{_bindir}/wgt-backend %{buildroot}%{_sysconfdir}/package-manager/backend/wgt
%post -n wgt-installer-tests
-/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-installer-ut/smoke-test
-/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-installer-ut/smoke-test-helper
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/smoke-test
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/smoke-test-helper
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/hybrid-smoke-test-helper
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/extensive-smoke-test
%files
%manifest wgt-backend.manifest
%files -n wgt-installer-tests
%manifest wgt-installer-tests.manifest
%{_bindir}/wgt-installer-ut/*
+%ifnarch x86_64 aarch64
%{_datadir}/wgt-installer-ut/*
+%endif
%{_libdir}/libwgt-smoke-utils.so*
%{_includedir}/app-installers/smoke_tests/wgt_smoke_utils.h