1 Name: sensor-plugins-tm1
2 Summary: TM1 Sensor Plugins
5 Group: System/Sensor Framework
7 Source0: %{name}-%{version}.tar.gz
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(libxml-2.0)
13 %define accel_state ON
14 %define gyro_state OFF
15 %define proxi_state ON
16 %define light_state OFF
18 %define pressure_state OFF
19 %define temperature_state OFF
20 %define ultraviolet_state OFF
22 %define bio_led_red_state OFF
30 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DACCEL=%{accel_state} \
31 -DGYRO=%{gyro_state} -DPROXI=%{proxi_state} -DLIGHT=%{light_state} \
32 -DGEO=%{geo_state} -DPRESSURE=%{pressure_state} -DTEMPERATURE=%{temperature_state} \
33 -DRV=%{rv_state} -DULTRAVIOLET=%{ultraviolet_state} \
34 -DBIO_LED_RED=%{bio_led_red_state} \
35 -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir}
51 %manifest packaging/%{name}.manifest
52 %attr(0644,root,root)/usr/etc/sensors.xml
53 %{_libdir}/sensor/*.so