2 Summary: Sensor HAL Plugins
5 Group: System/Sensor HAL
7 Source0: %{name}-%{version}.tar.gz
8 Source1: sensor-hal.manifest
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(libxml-2.0)
14 %define accel_state ON
15 %define gyro_state OFF
16 %define proxi_state ON
17 %define light_state OFF
19 %define pressure_state OFF
20 %define temperature_state OFF
21 %define ultraviolet_state OFF
23 %define bio_led_red_state OFF
29 Summary: Sensor HAL Plugins
30 Group: System/Sensor Framework
31 Requires: %{name} = %{version}-%{release}
33 %description sensor-hal
40 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DACCEL=%{accel_state} \
41 -DGYRO=%{gyro_state} -DPROXI=%{proxi_state} -DLIGHT=%{light_state} \
42 -DGEO=%{geo_state} -DPRESSURE=%{pressure_state} -DTEMPERATURE=%{temperature_state} \
43 -DRV=%{rv_state} -DULTRAVIOLET=%{ultraviolet_state} \
44 -DBIO_LED_RED=%{bio_led_red_state} \
45 -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir}
54 %post -n sensor-hal -p /sbin/ldconfig
56 %postun -n sensor-hal -p /sbin/ldconfig
59 %manifest sensor-hal.manifest
60 %attr(0644,root,root)/usr/etc/sensors.xml
61 %{_libdir}/sensor-hal/libsensor-hal.so