From 77c03db4be0d40d6ffe382ef112229a5dfdc6ebf Mon Sep 17 00:00:00 2001 From: ABF Date: Wed, 9 Aug 2023 07:45:36 +0000 Subject: [PATCH] Automatic import for version 1.3-1 --- .abf.yml | 2 ++ xsuspender.spec | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .abf.yml create mode 100644 xsuspender.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..ba42c8a --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + "xsuspender-1.3.tar.gz": a280a3b3fe829a528abdc6ba8b9dce7c8b94959f diff --git a/xsuspender.spec b/xsuspender.spec new file mode 100644 index 0000000..0eb37b3 --- /dev/null +++ b/xsuspender.spec @@ -0,0 +1,39 @@ +Summary: Save battery by auto-suspending unfocused X11 applications +Name: xsuspender +Version: 1.3 +Release: 1 +License: WTFPL +Group: System/Configuration/Hardware +Url: https://github.com/kernc/xsuspender +Source0: https://github.com/kernc/xsuspender/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(libwnck-3.0) + +%description +Automatically suspend inactive X11 applications. + +When an application window loses focus, XSuspender tries to match it to one of +the rules in its configuration. If a match is found, the application is sent a +SIGSTOP signal (preventing the process from obtaining further CPU time). Upon +windows regaining focus, the process is seamlessly continued where it had left off. + +%files +%{_bindir}/xsuspender +%{_usr}/etc/xdg/autostart/xsuspender.desktop +%{_datadir}/doc/xsuspender/examples/xsuspender.conf +%{_mandir}/man1/xsuspender.1.xz + +#------------------------------------------------------------------ + +%prep +%autosetup -p1 + +%build +%cmake +%make + +%install +%makeinstall_std -C build + +