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