/
sensorfw-qt5-hybris.spec
70 lines (58 loc) · 1.74 KB
/
sensorfw-qt5-hybris.spec
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
59
60
61
62
63
64
65
66
67
68
69
70
Name: hybris-libsensorfw-qt5
Summary: Sensor Framework Qt5
Version: 0.9.7
Release: 0
Group: System/Sensor Framework
License: LGPLv2+
URL: http://gitorious.org/sensorfw
Source0: %{name}-%{version}.tar.bz2
# Eventhough these are really needed we have these here
# as those are added to packaging dir by tar_git.
Source2: sensorfwd.service
Requires: sensord-qt5
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(sensord-qt5)
BuildRequires: pkgconfig(libhardware)
BuildRequires: pkgconfig(android-headers)
Obsoletes: %{name}-configs <= 0.8.17
%description
Sensor Framework provides an interface to hardware sensor drivers through logical sensors. This package contains sensor framework daemon and required libraries.
%package devel
Summary: Sensor framework daemon libraries development headers
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtcore-devel
Requires: qt5-qtdbus-devel
Requires: qt5-qtnetwork-devel
%description devel
Development headers for sensor framework daemon and libraries.
%prep
%setup -q -n %{name}-%{version}
%build
unset LD_AS_NEEDED
export LD_RUN_PATH=/usr/lib/sensord-qt5/
export QT_SELECT=5
%qmake5 CONFIG+=hybris
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
export QT_SELECT=5
%qmake5_install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libhybrissensorfw*.so.*
%{_libdir}/libhybrissensorfw*.so
%{_libdir}/sensord-qt5/*.so
%files devel
%defattr(-,root,root,-)
%{_includedir}/sensord-qt5/*