Name: low-memory-monitor Version: 2.1 Release: 1 Summary: Monitors low-memory conditions License: GPLv3+ URL: https://gitlab.freedesktop.org/hadess/low-memory-monitor Source0: https://gitlab.freedesktop.org/hadess/low-memory-monitor/-/archive/2.1/low-memory-monitor-2.1.tar.gz BuildRequires: meson gcc gtk-doc systemd libgudev-devel >= 234 glib2-devel >= 2.62.5 %description The Low Memory Monitor is an early boot daemon that will monitor memory pressure information coming from the kernel, and, first, send a signal to user-space applications when memory is running low, and then activate the kernel's OOM killer when memory is running really low. %package doc Summary: Documentation for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc This package contains the documentation for %{name}. %prep %autosetup %build %meson -Dgtk_doc=true -Dtrigger_kernel_oom=false %meson_build %install %meson_install %post %systemd_post low-memory-monitor.service %preun %systemd_preun low-memory-monitor.service %postun %systemd_postun_with_restart low-memory-monitor.service systemctl --no-reload preset low-memory-monitor.service &>/dev/null || : %files %license COPYING %doc NEWS README.md %{_unitdir}/low-memory-monitor.service %{_libexecdir}/low-memory-monitor %{_datadir}/dbus-1/system.d/org.freedesktop.LowMemoryMonitor.conf %files doc %dir %{_datadir}/gtk-doc/ %dir %{_datadir}/gtk-doc/html/ %{_datadir}/gtk-doc/html/%{name}/ %changelog * Mon Jun 7 2021 weijin deng - 2.1-1 - Package low-memory-monitor init with version 2.1