+%attr(755,root,root) /lib/udev/lmt-udev
+/lib/udev/rules.d/99-laptop-mode.rules
+%{systemdtmpfilesdir}/laptop-mode.conf
+%{systemdunitdir}/laptop-mode.service
+%{systemdunitdir}/laptop-mode.timer
+%{systemdunitdir}/lmt-poll.service
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/modules
+%attr(755,root,root) %{_datadir}/%{name}/modules/*
+%dir %{_datadir}/%{name}/module-helpers
+%attr(755,root,root) %{_datadir}/%{name}/module-helpers/*
+%attr(755,root,root) %{_sbindir}/laptop_mode
+%attr(755,root,root) %{_sbindir}/lm-profiler
+%attr(755,root,root) %{_sbindir}/lm-syslog-setup
+%{_mandir}/man8/laptop_mode.8*
+%{_mandir}/man8/lm-profiler.8*
+%{_mandir}/man8/lm-syslog-setup.8*
+# should be man5
+%{_mandir}/man8/laptop-mode.conf.8*
+%{_mandir}/man8/lm-profiler.conf.8*
+
+%if %{with acpi}
+# skip subpackage if only one backend built
+%{?with_apm:%files acpi}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sysconfdir}/acpi/actions/lm_*.sh
+%{_sysconfdir}/acpi/events/lm_*
+%endif
+
+%if %{with apm}
+# skip subpackage if only one backend built
+%{?with_acpi:%files apm}
+%defattr(644,root,root,755)
+# XXX: dir not owned
+%attr(755,root,root) %{_sysconfdir}/apm/event.d/laptop-mode
+%endif