summaryrefslogtreecommitdiff
path: root/packaging/sf-plugin-proc-accel-emul.spec
blob: af979bfb98a971611bf93bc38846475a1c44fb03 (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
#git:/slp/pkgs/e/emulator-plugin-accel-proc
Name: sf-plugin-proc-accel-emul
Version: 0.2.22
Release: 1
Summary: Accel simulator Processor plugin for sensor framework (using setting)
Group: System Environment/Libraries
License: GNUv2
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/sf-plugin-proc-accel-emul.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(sf_common)
BuildRequires: pkgconfig(vconf)

%description
Accel simulator Processor plugin for sensor framework(unstripped)
Easy Accel simulator Processor plugin for SLP(not recommended)

%prep
%setup -q

%build
export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"  
  
LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}  

make

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/usr/share/license
cp LICENSE.LGPLv2.1 %{buildroot}/usr/share/license/%{name}

%make_install

%clean
make clean
rm -rf CMakeCache.txt
rm -rf CMakeFiles
rm -rf cmake_install.cmake
rm -rf Makefile
rm -rf install_manifes.txt
rm -rf *.so

%post

%postun

%files
%defattr(-,root,root,-)
%{_prefix}/lib/sensor_framework/*.so*
/usr/share/license/%{name}

%changelog