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