Name: app2sd
Summary: Application installation on external memory
-Version: 0.7.14
+Version: 0.7.27
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gmock)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(storage)
BuildRequires: pkgconfig(pkgmgr)
-BuildRequires: pkgconfig(libcryptsetup)
+BuildRequires: pkgconfig(sqlite3)
BuildRequires: cmake
+Requires: cryptsetup
%description
Tizen application installation on external memory
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DUNITDIR=%{_unitdir} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%cmake . -DUNITDIR=%{_unitdir} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=%{_arch}
make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
+%check
+cd unit-tests
+LD_LIBRARY_PATH=../:../plugin/app2sd/ ctest -V
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig