%global makeflags PREFIX=%{_prefix} SYSCONFDIR=%{_sysconfdir} SYSTEMDUNITDIR=%{_unitdir} Name: earlyoom Version: 1.6.2 Release: 1%{?dist} License: MIT URL: https://github.com/rfjakob/%{name} Summary: Early OOM Daemon for Linux Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # https://pagure.io/fedora-workstation/issue/119 Patch0: %{name}-fedora-options.patch %{?systemd_requires} BuildRequires: systemd BuildRequires: pandoc BuildRequires: gcc %description The oom-killer generally has a bad reputation among Linux users. This may be part of the reason Linux invokes it only when it has absolutely no other choice. It will swap out the desktop environment, drop the whole page cache and empty every buffer before it will ultimately kill a process. At least that's what I think what it will do. I have yet to be patient enough to wait for it, sitting in front of an unresponsive system. %prep %autosetup -p1 sed -e '/systemctl/d' -i Makefile %build %set_build_flags %make_build VERSION=%{version} %{makeflags} %install %make_install %{makeflags} %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_unitdir}/%{name}.service %{_mandir}/man1/%{name}.* %config(noreplace) %{_sysconfdir}/default/%{name} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %changelog * Thu Oct 15 2020 Vitaly Zaitsev - 1.6.2-1 - Updated to version 1.6.2. * Mon Jul 27 2020 Fedora Release Engineering - 1.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 08 2020 Vitaly Zaitsev - 1.6.1-1 - Updated to version 1.6.1. * Sat Apr 11 2020 Vitaly Zaitsev - 1.6-1 - Updated to version 1.6. * Fri Apr 10 2020 Neal Gompa - 1.5-2 - Add Supplements to fedora-release-workstation for F32+ to work around RHBZ#1814306 * Mon Mar 23 2020 Vitaly Zaitsev - 1.5-1 - Updated to version 1.5. * Tue Mar 03 2020 Vitaly Zaitsev - 1.4-2 - Fixed RHBZ#1809407 and RHBZ#1809408. * Mon Mar 02 2020 Vitaly Zaitsev - 1.4-1 - Updated to version 1.4. * Fri Feb 28 2020 Vitaly Zaitsev - 1.3.1-1 - Updated to version 1.3.1. * Fri Feb 21 2020 Vitaly Zaitsev - 1.3-4 - Rebuilt for Fedora 32. - Backported security hardening patches. * Wed Jul 24 2019 Fedora Release Engineering - 1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 05 2019 Vitaly Zaitsev - 1.3-2 - Forwarded version to compiled binary. * Mon May 27 2019 Vitaly Zaitsev - 1.3-1 - Updated to version 1.3. * Thu Jan 31 2019 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 05 2018 Vitaly Zaitsev - 1.2-1 - Updated to version 1.2. * Wed Aug 15 2018 Vitaly Zaitsev - 1.1-1 - Initial SPEC release.