eba2f9171bb82fd148bc862c458e8034776cad1c
[platform/core/appfw/librua.git] / packaging / librua.spec
1 Name:           librua
2 Version:        0.5.1
3 Release:        0
4 License:        Apache-2.0
5 Summary:        Recently used application
6 Group:          Application Framework/Libraries
7 Source0:        librua-%{version}.tar.gz
8 Source1001:     librua.manifest
9 BuildRequires:  cmake
10 BuildRequires:  sqlite3
11 BuildRequires:  pkgconfig(bundle)
12 BuildRequires:  pkgconfig(aul)
13 BuildRequires:  pkgconfig(sqlite3)
14 BuildRequires:  pkgconfig(libtzplatform-config)
15 BuildRequires:  pkgconfig(gio-2.0)
16 BuildRequires:  pkgconfig(glib-2.0)
17 BuildRequires:  pkgconfig(capi-appfw-app-control)
18 BuildRequires:  pkgconfig(pkgmgr-info)
19
20 %description
21 Recently used application library
22
23 %package devel
24 Summary:        Recently used application (devel)
25 Requires:       %{name} = %{version}
26
27 %description devel
28 Recently used application library (devel)
29
30 %package test
31 Summary:        Recently used application (test)
32 Requires:       %{name} = %{version}
33
34 %description test
35 Recently used application library (test)
36
37 %prep
38 %setup -q
39 cp %{SOURCE1001} .
40
41 %build
42 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
43 %cmake -DFULLVER=%{version} \
44         -DMAJORVER=${MAJORVER} \
45         .
46
47 make %{?_smp_mflags}
48
49 %install
50 %make_install
51
52 %post -p /sbin/ldconfig
53
54 %postun -p /sbin/ldconfig
55
56 %files
57 %manifest %{name}.manifest
58 %defattr(-,root,root,-)
59 %{_libdir}/librua.so.*
60 %license LICENSE
61
62 %files devel
63 %manifest %{name}.manifest
64 %defattr(-,root,root,-)
65 %dir %{_includedir}/rua
66 %{_includedir}/rua/*.h
67 %{_libdir}/librua.so
68 %{_libdir}/pkgconfig/rua.pc
69
70 %files test
71 %manifest %{name}.manifest
72 %defattr(-,root,root,-)
73 %{_bindir}/rua-test