1 Name: sensor-plugins-tm1
2 Summary: TM1 Sensor Plugins
5 Group: System/Sensor Framework
7 Source0: %{name}-%{version}.tar.gz
9 %if "%{?profile}" == "mobile"
10 ExcludeArch: aarch64 %ix86 x86_64
12 ExcludeArch: %{arm} aarch64 %ix86 x86_64
16 BuildRequires: pkgconfig(dlog)
18 %define accel_state ON
19 %define gyro_state OFF
20 %define proxi_state ON
21 %define light_state OFF
23 %define pressure_state OFF
24 %define temperature_state OFF
25 %define ultraviolet_state OFF
27 %define bio_led_red_state OFF
35 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DACCEL=%{accel_state} \
36 -DGYRO=%{gyro_state} -DPROXI=%{proxi_state} -DLIGHT=%{light_state} \
37 -DGEO=%{geo_state} -DPRESSURE=%{pressure_state} -DTEMPERATURE=%{temperature_state} \
38 -DRV=%{rv_state} -DULTRAVIOLET=%{ultraviolet_state} \
39 -DBIO_LED_RED=%{bio_led_red_state} \
40 -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir}
56 %manifest packaging/%{name}.manifest
57 %{_libdir}/sensor/*.so