blob: 75b5faedc347b4a772914d01aae3b956c3bc6c44 (
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
|
#sbs-git:slp/pkgs/d/devman devman 0.1.6 5bf2e95e0bb15c43ff928f7375e1978b0accb0f8
Name: haptic-module-tizen
Summary: Haptic Module library
Version: 0.1.0
Release: 9
Group: System/Libraries
License: APLv2
Source0: %{name}-%{version}.tar.gz
ExclusiveArch: %{arm}
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(deviced)
BuildRequires: pkgconfig(device-node)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
%prep
%setup -q
%build
%if 0%{?simulator}
%cmake . -DSIMULATOR=yes
%else
%ifarch %{ix86}
CFLAGS=`echo %{optflags} |sed 's/\-fexceptions//g'`
%endif
%cmake . -DSIMULATOR=no
%endif
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_datadir}/license
cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/%{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/libhaptic-module.so
%{_datadir}/license/%{name}
|