feat: Add uresourced-dmemcg package which replaces uresourced. (#12488) (#12499)

This commit is contained in:
Raboneko
2026-05-23 12:01:47 -05:00
committed by GitHub
parent f895e71d1b
commit a59533a3cd
3 changed files with 77 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "uresourced-dmemcg.spec"
}
labels {
subrepo = "extras"
}
}
@@ -0,0 +1 @@
rpm.version(gh("OpenGamingCollective/uresourced-dmemcg"));
@@ -0,0 +1,68 @@
Name: uresourced-dmemcg
Epoch: 1
Version: 0.5.4
Release: 1%{?dist}
Summary: Dynamically allocate resources to the active user
Packager: Kyle Gospodnetich <me@kylegospodneti.ch>
License: LGPL-2.1-or-later
URL: https://github.com/OpenGamingCollective/uresourced-dmemcg
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildRequires: gcc
BuildRequires: meson
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(systemd)
BuildRequires: systemd-rpm-macros
Provides: uresourced = %{evr}
Obsoletes: uresourced < %{evr}
Conflicts: uresourced
%description
This daemon dynamically assigns a resource allocation to the active
graphical user. If the user has an active graphical session managed
using systemd (e.g. GNOME), then the memory allocation will be used
to protect the sessions core processes (session.slice). This fork
adds dmem cgroup protection for focused applications.
%prep
%autosetup -n %{name}-%{version} -p1
%conf
%meson -Dappmanagement=true
%build
%meson_build
%install
%meson_install
%post
%systemd_post uresourced.service
%systemd_user_post uresourced.service
%preun
%systemd_preun uresourced.service
%systemd_user_preun uresourced.service
%postun
%systemd_postun uresourced.service
%systemd_user_postun uresourced.service
%files
%license COPYING
%doc README
%doc NEWS.md
%config(noreplace) %{_sysconfdir}/uresourced.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.UResourced.conf
%{_libexecdir}/uresourced
%{_libexecdir}/cgroupify
%{_unitdir}/*
%{_userunitdir}/*
%changelog
* Fri May 22 2026 Kyle Gospodnetich <me@kylegospodnetich> - 1:0.5.4-1
- Initial release