summaryrefslogtreecommitdiff
path: root/packaging/libslp-pm.spec
blob: b6e46a2a49749c2dc9d6601e7f6f16e9bbcd1cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

Name:       libslp-pm
Summary:    Power manager library
Version:    1.2.4
Release:    2.1
Group:      TO_BE/FILLED_IN
License:    TO BE FILLED IN
Source0:    libslp-pm-%{version}.tar.bz2
Patch0:     remove_tests.patch
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  cmake


%description
Samsung Linux platform power manager client library



%package devel
Summary:    SLP power manager client (devel)
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   libslp-pm

%description devel
SLP power manager client library (devel)


%prep
%setup -q 
%patch0 -p1


%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}


make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install




%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig





%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libpmapi.so.1.2


%files devel
%defattr(-,root,root,-)
%{_includedir}/pmapi.h
%{_includedir}/SLP_pm_PG.h
%{_libdir}/pkgconfig/pmapi.pc
%{_libdir}/libpmapi.so