From 418d1dc80292544a9f058c986bc6846ca0e4d2c3 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 3 Nov 2021 08:20:39 -0400 Subject: [PATCH] import uresourced-0.4.0-3.el9 --- .gitignore | 1 + .uresourced.metadata | 1 + SPECS/uresourced.spec | 82 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 .uresourced.metadata create mode 100644 SPECS/uresourced.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf91f59 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/uresourced-v0.4.0.tar.bz2 diff --git a/.uresourced.metadata b/.uresourced.metadata new file mode 100644 index 0000000..a91f87e --- /dev/null +++ b/.uresourced.metadata @@ -0,0 +1 @@ +89077d899197bc6cdb87d3e0dc4bcd74f4501231 SOURCES/uresourced-v0.4.0.tar.bz2 diff --git a/SPECS/uresourced.spec b/SPECS/uresourced.spec new file mode 100644 index 0000000..cfebbbf --- /dev/null +++ b/SPECS/uresourced.spec @@ -0,0 +1,82 @@ +Name: uresourced +Version: 0.4.0 +Release: 3%{?dist} +Summary: Dynamically allocate resources to the active user + +License: LGPLv2+ +URL: https://gitlab.freedesktop.org/benzea/uresourced +Source0: https://gitlab.freedesktop.org/benzea/uresourced/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 + +BuildRequires: git +BuildRequires: systemd-devel +BuildRequires: systemd-rpm-macros +BuildRequires: meson +BuildRequires: gcc +BuildRequires: pkgconfig(gio-2.0) + +%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 +%autosetup -S git -n %{name}-v%{version} + +%build +%meson +%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 +* Tue Aug 10 2021 Mohan Boddu - 0.4.0-3 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.4.0-2 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Mar 30 2021 Benjamin Berg - 0.4.0-1 +- New upstream release including cgroupify + Resolves: #1931938 + Resolves: #1931934 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Sep 24 2020 Benjamin Berg - 0.3.0-1 +- New upstream release fixing various issues + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 22 2020 Benjamin Berg - 0.2.0-1 +- New upstream release enabling CPU/IO controllers for applications + +* Wed Jul 08 2020 Benjamin Berg - 0.1.0-1 +- Initial package (rhbz#1854898)