blob: 0d2b5bffa605b3b30bf1c5eaa82bdb0c495329b6 (
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
|
Name: libdevice-node
Summary: Library to control OAL APIs
Version: 0.1.0
Release: 1
Group: System/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
Source2: smack-device-labeling.service
BuildRequires: cmake
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
%description
development package of library to control OAL APIs
%package devel
Summary: Control OAL APIs (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Library to control OAL APIs (devel)
%prep
%setup -q
cp %{SOURCE1} .
%build
%cmake .
make %{?jobs:-j%jobs}
%install
%make_install
mkdir -p %{buildroot}%{_unitdir}/basic.target.wants
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/
ln -s ../smack-device-labeling.service %{buildroot}%{_unitdir}/basic.target.wants/
mkdir -p %{buildroot}/lib/firmware/mdnie
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/*.so.*
%{_prefix}/lib/udev/rules.d/*
%{_unitdir}/smack-device-labeling.service
%{_unitdir}/basic.target.wants/smack-device-labeling.service
/lib/firmware/mdnie
%manifest %{name}.manifest
%files devel
%{_includedir}/device-node/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
|