Git init
[framework/api/power.git] / packaging / capi-system-power.spec
1 Name:       capi-system-power
2 Summary:    A power library in Tizen Native API
3 Version:    0.0.1
4 Release:    1
5 Group:      TO_BE/FILLED_IN
6 License:    TO BE FILLED IN
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires:  cmake
9 BuildRequires:  pkgconfig(dlog)
10 BuildRequires:  pkgconfig(pmapi)
11 BuildRequires:  pkgconfig(glib-2.0)
12 BuildRequires:  pkgconfig(capi-base-common)
13 Requires(post): /sbin/ldconfig  
14 Requires(postun): /sbin/ldconfig
15
16 %description
17
18
19 %package devel
20 Summary:  A power library in Tizen Native API (Development)
21 Group:    TO_BE/FILLED_IN
22 Requires: %{name} = %{version}-%{release}
23
24 %description devel
25
26
27
28 %prep
29 %setup -q
30
31
32 %build
33 cmake . -DCMAKE_INSTALL_PREFIX=/usr
34
35
36 make %{?jobs:-j%jobs}
37
38 %install
39 rm -rf %{buildroot}
40 %make_install
41
42 %post -p /sbin/ldconfig
43
44 %postun -p /sbin/ldconfig
45
46
47 %files
48 %{_libdir}/libcapi-system-power.so
49
50 %files devel
51 %{_includedir}/system/power.h
52 %{_libdir}/pkgconfig/*.pc
53
54