2020-07-01 13:05:03 +00:00
|
|
|
Name: uresourced
|
2024-01-31 07:35:53 +00:00
|
|
|
Version: 0.5.4
|
2022-02-15 15:28:09 +00:00
|
|
|
Release: %autorelease
|
2020-07-01 13:05:03 +00:00
|
|
|
Summary: Dynamically allocate resources to the active user
|
|
|
|
|
2023-04-28 14:17:19 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2020-07-01 13:05:03 +00:00
|
|
|
URL: https://gitlab.freedesktop.org/benzea/uresourced
|
2023-04-28 14:17:19 +00:00
|
|
|
Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
|
2020-07-01 13:05:03 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
2023-04-28 14:17:19 +00:00
|
|
|
BuildRequires: meson
|
2020-07-01 13:05:03 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2023-04-28 14:17:19 +00:00
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3)
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2020-07-01 13:05:03 +00:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
|
|
|
%prep
|
2023-04-28 14:17:19 +00:00
|
|
|
%autosetup -n %{name}-v%{version} -p1
|
2020-07-01 13:05:03 +00:00
|
|
|
|
|
|
|
%build
|
2022-02-22 13:28:02 +00:00
|
|
|
%meson -Dappmanagement=true
|
2020-07-01 13:05:03 +00:00
|
|
|
%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
|
2020-09-24 14:23:35 +00:00
|
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.UResourced.conf
|
2020-07-01 13:05:03 +00:00
|
|
|
%{_libexecdir}/uresourced
|
2021-03-30 19:56:53 +00:00
|
|
|
%{_libexecdir}/cgroupify
|
2020-07-01 13:05:03 +00:00
|
|
|
%{_unitdir}/*
|
|
|
|
%{_userunitdir}/*
|
|
|
|
|
|
|
|
%changelog
|
2022-02-15 15:28:09 +00:00
|
|
|
%autochangelog
|