xsuspender/xsuspender.spec

42 lines
1 KiB
RPMSpec
Raw Normal View History

2023-08-09 07:45:36 +00:00
Summary: Save battery by auto-suspending unfocused X11 applications
Name: xsuspender
Version: 1.3
Release: 1
License: WTFPL
Group: System/Configuration/Hardware
2023-08-09 11:51:23 +00:00
URL: https://github.com/kernc/xsuspender
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
2023-08-09 07:45:36 +00:00
BuildRequires: cmake
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libwnck-3.0)
%description
Automatically suspend inactive X11 applications.
2023-08-09 11:51:23 +00:00
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.
2023-08-09 07:45:36 +00:00
%files
%{_bindir}/xsuspender
%{_usr}/etc/xdg/autostart/xsuspender.desktop
%{_datadir}/doc/xsuspender/examples/xsuspender.conf
%{_mandir}/man1/xsuspender.1.xz
#------------------------------------------------------------------
%prep
2023-08-09 11:51:23 +00:00
%setup -q
2023-08-09 07:45:36 +00:00
%build
%cmake
%make
%install
%makeinstall_std -C build