Add sqlite3 dependency
[platform/core/appfw/app2sd.git] / packaging / app2sd.spec
1 Name:       app2sd
2 Summary:    Application installation on external memory
3 Version:    0.7.20
4 Release:    1
5 Group:      Application Framework/Package Management
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1:    %{name}.manifest
9 Source2:    %{name}-test.manifest
10 Source3:    %{name}-plugin.manifest
11
12 BuildRequires:  pkgconfig(db-util)
13 BuildRequires:  pkgconfig(minizip)
14 BuildRequires:  pkgconfig(zlib)
15 BuildRequires:  pkgconfig(dlog)
16 BuildRequires:  pkgconfig(pkgmgr-info)
17 BuildRequires:  pkgconfig(libtzplatform-config)
18 BuildRequires:  pkgconfig(gio-2.0)
19 BuildRequires:  pkgconfig(glib-2.0)
20 BuildRequires:  pkgconfig(gmock)
21 BuildRequires:  pkgconfig(aul)
22 BuildRequires:  pkgconfig(storage)
23 BuildRequires:  pkgconfig(pkgmgr)
24 BuildRequires:  pkgconfig(sqlite3)
25 BuildRequires:  cmake
26 Requires:       cryptsetup
27
28 %description
29 Tizen application installation on external memory
30
31 %package devel
32 Summary:    Application install on external memory (devel)
33 Group:      Development/Libraries
34 Requires:   app2sd = %{version}-%{release}
35
36 %description devel
37 Tizen application installation on external memory (devel)
38
39 %package test
40 Summary:    Application install on external memory (test)
41 Group:      Development/Libraries
42 Requires:   app2sd = %{version}-%{release}
43
44 %description test
45 Tizen application installation on external memory (test)
46
47 %package plugin
48 Summary:    app2sd server and plugin library
49 Group:      Application Framework/Package Management
50
51 %description plugin
52 app2sd server and plugin library
53
54 %prep
55 %setup -q
56
57 cp %{SOURCE1} .
58 cp %{SOURCE2} .
59 cp %{SOURCE3} .
60
61 %build
62 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
63 %cmake . -DUNITDIR=%{_unitdir} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
64
65 make %{?jobs:-j%jobs}
66
67 %install
68 rm -rf %{buildroot}
69 %make_install
70
71 %check
72 cd unit-tests
73 LD_LIBRARY_PATH=../:../plugin/app2sd/ ctest -V
74
75 %post -p /sbin/ldconfig
76
77 %postun -p /sbin/ldconfig
78
79 %files
80 %manifest %{name}.manifest
81 %license LICENSE
82 %defattr(-,root,root,-)
83 %{_libdir}/libapp2ext.so.*
84
85 %files devel
86 %defattr(-,root,root,-)
87 %{_includedir}/*.h
88 %{_libdir}/pkgconfig/app2sd.pc
89 %{_libdir}/libapp2ext.so
90
91 %files test
92 %manifest %{name}-test.manifest
93 %defattr(-,root,root,-)
94 %{_bindir}/test_app2ext
95
96 %files plugin
97 %manifest %{name}-plugin.manifest
98 %{_libdir}/libapp2sd.so*
99 %{_bindir}/app2sd-server
100 %{_unitdir}/app2sd-server.service
101 %{_datadir}/dbus-1/system-services/org.tizen.app2sd.service
102 %config %{_sysconfdir}/dbus-1/system.d/org.tizen.app2sd.conf
103 %{_bindir}/app2sd-mount-helper