blob: 52e0095f255c3770f7c4a3fe1fd0e56f393f6440 (
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
|
Name: capi-system-media-key
Summary: A System Information library in SLP C API
Version: 0.1.2
Release: 6
Group: System/API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: capi-system-media-key.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(ecore-input)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(ecore-wl2)
%description
%{summary}.
%package devel
Summary: A Media Key library in SLP C API (Development)
Group: System/API
Requires: %{name} = %{version}-%{release}
%description devel
%devel_desc
%prep
%setup -q
cp %{SOURCE1001} .
%build
export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake -DFULLVER=%{version} \
-DMAJORVER=${MAJORVER} \
.
make %{?jobs:-j%jobs}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%license LICENSE
%{_libdir}/libcapi-system-media-key.so.*
%manifest capi-system-media-key.manifest
%files devel
%manifest %{name}.manifest
%{_includedir}/system/media_key.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libcapi-system-media-key.so
|