|
|
4ac570 |
Name: low-memory-monitor
|
|
|
4ac570 |
Version: 2.1
|
|
|
4ac570 |
Release: 4%{?dist}
|
|
|
4ac570 |
Summary: Monitors low-memory conditions
|
|
|
4ac570 |
|
|
|
4ac570 |
License: GPLv3+
|
|
|
4ac570 |
URL: https://gitlab.freedesktop.org/hadess/low-memory-monitor
|
|
|
4ac570 |
Source0: https://gitlab.freedesktop.org/hadess/low-memory-monitor/uploads/9c201566253ed52a9054f514f9904e48/low-memory-monitor-2.1.tar.xz
|
|
|
4ac570 |
|
|
|
4ac570 |
BuildRequires: meson
|
|
|
4ac570 |
BuildRequires: gcc
|
|
|
4ac570 |
BuildRequires: pkgconfig(gudev-1.0)
|
|
|
4ac570 |
BuildRequires: pkgconfig(gio-2.0)
|
|
|
4ac570 |
BuildRequires: gtk-doc
|
|
|
4ac570 |
BuildRequires: systemd
|
|
|
4ac570 |
|
|
|
4ac570 |
%description
|
|
|
4ac570 |
The Low Memory Monitor is an early boot daemon that will monitor memory
|
|
|
4ac570 |
pressure information coming from the kernel, and, first, send a signal
|
|
|
4ac570 |
to user-space applications when memory is running low, and then activate
|
|
|
4ac570 |
the kernel's OOM killer when memory is running really low.
|
|
|
4ac570 |
|
|
|
4ac570 |
%package doc
|
|
|
4ac570 |
Summary: Documentation for %{name}
|
|
|
4ac570 |
BuildArch: noarch
|
|
|
4ac570 |
Requires: %{name} = %{version}-%{release}
|
|
|
4ac570 |
|
|
|
4ac570 |
%description doc
|
|
|
4ac570 |
|
|
|
4ac570 |
This package contains the documentation for %{name}.
|
|
|
4ac570 |
|
|
|
4ac570 |
%prep
|
|
|
4ac570 |
%autosetup
|
|
|
4ac570 |
|
|
|
4ac570 |
|
|
|
4ac570 |
%build
|
|
|
4ac570 |
%meson -Dgtk_doc=true -Dtrigger_kernel_oom=false
|
|
|
4ac570 |
%meson_build
|
|
|
4ac570 |
|
|
|
4ac570 |
|
|
|
4ac570 |
%install
|
|
|
4ac570 |
%meson_install
|
|
|
4ac570 |
|
|
|
4ac570 |
|
|
|
4ac570 |
%post
|
|
|
4ac570 |
%systemd_post low-memory-monitor.service
|
|
|
4ac570 |
|
|
|
4ac570 |
%preun
|
|
|
4ac570 |
%systemd_preun low-memory-monitor.service
|
|
|
4ac570 |
|
|
|
4ac570 |
%postun
|
|
|
4ac570 |
%systemd_postun_with_restart low-memory-monitor.service
|
|
|
4ac570 |
|
|
|
4ac570 |
%triggerun -- low-memory-monitor < 2.0-6
|
|
|
4ac570 |
|
|
|
4ac570 |
# This is for upgrades from previous versions before low-memory-monitor became part
|
|
|
4ac570 |
# of the system daemons.
|
|
|
4ac570 |
systemctl --no-reload preset low-memory-monitor.service &>/dev/null || :
|
|
|
4ac570 |
|
|
|
4ac570 |
%files
|
|
|
4ac570 |
%license COPYING
|
|
|
4ac570 |
%doc NEWS README.md
|
|
|
4ac570 |
%{_unitdir}/low-memory-monitor.service
|
|
|
4ac570 |
%{_libexecdir}/low-memory-monitor
|
|
|
4ac570 |
%{_datadir}/dbus-1/system.d/org.freedesktop.LowMemoryMonitor.conf
|
|
|
4ac570 |
|
|
|
4ac570 |
%files doc
|
|
|
4ac570 |
%dir %{_datadir}/gtk-doc/
|
|
|
4ac570 |
%dir %{_datadir}/gtk-doc/html/
|
|
|
4ac570 |
%{_datadir}/gtk-doc/html/%{name}/
|
|
|
4ac570 |
|
|
|
4ac570 |
%changelog
|
|
|
4ac570 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.1-4
|
|
|
4ac570 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
4ac570 |
Related: rhbz#1991688
|
|
|
4ac570 |
|
|
|
4ac570 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1-3
|
|
|
4ac570 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
4ac570 |
|
|
|
4ac570 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
|
|
4ac570 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
4ac570 |
|
|
|
4ac570 |
* Tue Nov 17 2020 Bastien Nocera <bnocera@redhat.com> - 2.1-1
|
|
|
4ac570 |
+ low-memory-monitor-2.1-1
|
|
|
4ac570 |
- Update to 2.1
|
|
|
4ac570 |
- Don't poke at sysrq proc file (#1898524)
|
|
|
4ac570 |
|
|
|
4ac570 |
* Wed Oct 28 2020 Bastien Nocera <bnocera@redhat.com> - 2.0-6
|
|
|
4ac570 |
+ low-memory-monitor-2.0-6
|
|
|
4ac570 |
- Reload presets when updating from an older version to enable daemon
|
|
|
4ac570 |
|
|
|
4ac570 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-5
|
|
|
4ac570 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4ac570 |
|
|
|
4ac570 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-4
|
|
|
4ac570 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
4ac570 |
|
|
|
4ac570 |
* Tue Nov 19 2019 Bastien Nocera <bnocera@redhat.com> - 2.0-3
|
|
|
4ac570 |
+ low-memory-monitor-2.0-3
|
|
|
4ac570 |
- Disable OOM killer by default for now
|
|
|
4ac570 |
- Import into Fedora (#1769843)
|
|
|
4ac570 |
|
|
|
4ac570 |
* Mon Nov 18 2019 Bastien Nocera <bnocera@redhat.com> - 2.0-2
|
|
|
4ac570 |
+ low-memory-monitor-2.0-2
|
|
|
4ac570 |
- Rename -docs subpackage to -doc
|
|
|
4ac570 |
|
|
|
4ac570 |
* Thu Nov 14 2019 Bastien Nocera <bnocera@redhat.com> - 2.0-1
|
|
|
4ac570 |
+ low-memory-monitor-2.0-1
|
|
|
4ac570 |
- Update to 2.0
|
|
|
4ac570 |
|
|
|
4ac570 |
* Thu Nov 07 2019 Bastien Nocera <bnocera@redhat.com> - 1.1-2
|
|
|
4ac570 |
+ low-memory-monitor-1.1-2
|
|
|
4ac570 |
- Add missing requires for the main package in the docs one
|
|
|
4ac570 |
- Add config tag for low-memory-monitor.conf
|
|
|
4ac570 |
|
|
|
4ac570 |
* Thu Nov 07 2019 Bastien Nocera <bnocera@redhat.com> - 1.1-1
|
|
|
4ac570 |
+ low-memory-monitor-1.1-1
|
|
|
4ac570 |
- Initial Fedora packaging
|