Name: app2sd
Summary: Application installation on external memory
-Version: 0.5
-Release: 9
-Group: Application Framework/Application Installer
+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(libssl)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(minizip)
+BuildRequires: pkgconfig(zlib)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(pkgmgr-info)
+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
%description devel
Tizen application installation on external memory (devel)
+%package test
+Summary: Application install on external memory (test)
+Group: Development/Libraries
+Requires: app2sd = %{version}-%{release}
+
+%description test
+Tizen application installation on external memory (test)
+
+%package plugin
+Summary: app2sd server and plugin library
+Group: Application Framework/Package Management
+
+%description plugin
+app2sd server and plugin library
+
%prep
%setup -q
+cp %{SOURCE1} .
+cp %{SOURCE2} .
+cp %{SOURCE3} .
+
%build
-%cmake .
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%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
%files
-%manifest app2sd.manifest
+%manifest %{name}.manifest
+%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/libapp2ext.so.*
-%{_libdir}/libapp2sd.so*
-
%files devel
%defattr(-,root,root,-)
-%{_includedir}/app2ext_interface.h
+%{_includedir}/*.h
%{_libdir}/pkgconfig/app2sd.pc
-%{_libdir}/libapp2sd.so
%{_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