Name: app2sd
Summary: Application installation on external memory
-Version: 0.7.0
+Version: 0.7.27
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.manifest
+Source2: %{name}-test.manifest
+Source3: %{name}-plugin.manifest
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(minizip)
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(sqlite3)
BuildRequires: cmake
+Requires: cryptsetup
%description
Tizen application installation on external memory
%prep
%setup -q
+cp %{SOURCE1} .
+cp %{SOURCE2} .
+cp %{SOURCE3} .
+
%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
%{_libdir}/libapp2ext.so
%files test
+%manifest %{name}-test.manifest
%defattr(-,root,root,-)
%{_bindir}/test_app2ext
%files plugin
+%manifest %{name}-plugin.manifest
%{_libdir}/libapp2sd.so*
%{_bindir}/app2sd-server
%{_unitdir}/app2sd-server.service
%{_datadir}/dbus-1/system-services/org.tizen.app2sd.service
%config %{_sysconfdir}/dbus-1/system.d/org.tizen.app2sd.conf
+%{_bindir}/app2sd-mount-helper