96ea4948dfb5614631164725634622d84e456c05
[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 #Patch0:     remove_tests.patch
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires:  cmake
12
13
14 %description
15 Samsung Linux platform power manager client library
16
17
18
19 %package devel
20 Summary:    SLP power manager client (devel)
21 Group:      Development/Libraries
22 Requires:   %{name} = %{version}-%{release}
23 Requires:   libslp-pm
24
25 %description devel
26 SLP power manager client library (devel)
27
28
29 %prep
30 %setup -q 
31 #%patch0 -p1
32
33
34 %build
35 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
36
37
38 make %{?jobs:-j%jobs}
39
40 %install
41 rm -rf %{buildroot}
42 %make_install
43
44
45
46
47 %post -p /sbin/ldconfig
48
49 %postun -p /sbin/ldconfig
50
51
52
53
54
55 %files
56 %{_libdir}/libpmapi.so.1.2
57
58
59 %files devel
60 %{_includedir}/pmapi.h
61 %{_includedir}/SLP_pm_PG.h
62 %{_libdir}/pkgconfig/pmapi.pc
63 %{_libdir}/libpmapi.so
64