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