Packager: Bengt Fredh %define name pinebookpro-suspend %define version 2 %define sourcerelease 4 %define release %{sourcerelease}%{?dist} Summary: Enable suspend2idle Name: %{name} Version: %{version} Release: %{release} License: GPL2 URL: https://github.com/bengtfredh/pinebook-pro-copr.git ExclusiveArch: aarch64 Source0: https://raw.githubusercontent.com/bengtfredh/pinebook-pro-copr/master/pinebookpro-suspend/s2idle.conf Requires: acpid %global debug_package %{nil} %description Enable suspend2idle %prep %setup -c -T %build %install mkdir %{buildroot}/etc/systemd/sleep.conf.d -p install -Dm644 ${RPM_SOURCE_DIR}/s2idle.conf -t %{buildroot}/etc/systemd/sleep.conf.d/ %files %config(noreplace) /etc/systemd/sleep.conf.d/s2idle.conf %post sed -i "s/^action=.*/action=/g" /etc/acpi/events/powerconf systemctl enable acpid %preun %changelog * Tue Nov 17 2020 Bengt Fredh - 2-4 - Fix install file * Thu Nov 13 2020 Bengt Fredh - 2-3 - Fix post script * Thu Nov 12 2020 Bengt Fredh - 2-2 - Fix source path * Thu Nov 12 2020 Bengt Fredh - 2-1 - Changed following man sleep.conf * Wed Oct 28 2020 Bengt Fredh - 1-1 - First version