5 Summary: Power HAL for TW3
8 Group: System/Hardware Adaptation
10 Source0: %{name}-%{version}.tar.gz
11 Source1: %{name}.manifest
15 Requires(post): /sbin/ldconfig
16 Requires(post): /bin/systemctl
17 Requires(postun): /sbin/ldconfig
18 Requires(postun): /bin/systemctl
20 BuildRequires: pkgconfig(hal-api-common)
21 BuildRequires: pkgconfig(hal-api-power)
31 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
32 -DCMAKE_HAL_LIBDIR_PREFIX=%{_hal_libdir} \
33 -DCMAKE_HAL_LICENSEDIR_PREFIX=%{_hal_licensedir} \
43 systemd-tmpfiles /hal/lib/tmpfiles.d/pass-hal.conf --create
44 if [ -f %{_unitdir}/pass.service ]; then
45 systemctl try-restart pass.service
50 if [ -f %{_unitdir}/pass.service ]; then
51 systemctl try-restart pass.service
55 %manifest %{name}.manifest
56 %{_hal_licensedir}/%{name}/LICENSE
58 /hal/lib/tmpfiles.d/pass-hal.conf
59 %config %{_hal_sysconfdir}/pass/pass.json
60 %config %{_hal_sysconfdir}/pass/pass-resource0.json
61 %config %{_hal_sysconfdir}/pass/pass-resource1.json
62 %config %{_hal_sysconfdir}/pass/pass-dummy.json