tizen beta release
[platform/core/system/libslp-pm.git] / packaging / libslp-pm.spec
1
2 Name:       libslp-pm
3 Summary:    Power manager library
4 Version:    1.2.4
5 Release:    2.1
6 Group:      TO_BE/FILLED_IN
7 License:    TO BE FILLED IN
8 Source0:    libslp-pm-%{version}.tar.bz2
9 Patch0:     remove_tests.patch
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  cmake
13
14
15 %description
16 Samsung Linux platform power manager client library
17
18
19
20 %package devel
21 Summary:    SLP power manager client (devel)
22 Group:      Development/Libraries
23 Requires:   %{name} = %{version}-%{release}
24 Requires:   libslp-pm
25
26 %description devel
27 SLP power manager client library (devel)
28
29
30 %prep
31 %setup -q 
32 %patch0 -p1
33
34
35 %build
36 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
37
38
39 make %{?jobs:-j%jobs}
40
41 %install
42 rm -rf %{buildroot}
43 %make_install
44
45
46
47
48 %post -p /sbin/ldconfig
49
50 %postun -p /sbin/ldconfig
51
52
53
54
55
56 %files
57 %defattr(-,root,root,-)
58 %doc COPYING
59 %{_libdir}/libpmapi.so.1.2
60
61
62 %files devel
63 %defattr(-,root,root,-)
64 %{_includedir}/pmapi.h
65 %{_includedir}/SLP_pm_PG.h
66 %{_libdir}/pkgconfig/pmapi.pc
67 %{_libdir}/libpmapi.so
68