Name: pkgmgr-info
Summary: Packager Manager infomation api for package
-Version: 0.22.15
+Version: 0.23.1
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
BuildRequires: pkgconfig(cynara-client-async)
BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(cynara-creds-socket)
+BuildRequires: pkgconfig(capi-system-resource)
+BuildRequires: pkgconfig(tizen-database)
%if 0%{?gcov:1}
BuildRequires: lcov
%description common-devel
Dev package for libpkgmgr_common
+%if 0%{?asan} != 1
%package unittests
Summary: %{name} unittests binary
%description unittests
unittest binary
+%endif
%prep
%setup -q
%endif
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DUNITDIR=%{_unitdir}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DUNITDIR=%{_unitdir} \
+%if 0%{?asan} != 1
+ -DASAN_ENABLED=FALSE
+%else
+ -DASAN_ENABLED=TRUE
+%endif
%__make %{?jobs:-j%jobs}
find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
%endif
+%if 0%{?asan} != 1
cat << EOF > run-unittest.sh
#!/bin/sh
mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
+%endif
mkdir -p %{buildroot}%{_unitdir}/basic.target.wants
ln -sf ../pkg-db-recovery.service %{buildroot}%{_unitdir}/basic.target.wants/pkg-db-recovery.service
%{_datadir}/gcov/obj/*
%endif
+%if 0%{?asan} != 1
%files unittests
%{_bindir}/pkgmgr-info-unit-test
%{_bindir}/tizen-unittests/%{name}/run-unittest.sh
+%endif