diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42d220e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/uresourced-v0.1.0.tar.bz2 diff --git a/sources b/sources new file mode 100644 index 0000000..57f78ff --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (uresourced-v0.1.0.tar.bz2) = db5e5959f50902876eb4bddee6915ba5cf72c5adc001e81a94d88ba6a1cb67a33656888d640b060f32af92c0126d4f3cce08b20d998e74309a82bab74b97f11e diff --git a/uresourced.spec b/uresourced.spec new file mode 100644 index 0000000..93f6bf2 --- /dev/null +++ b/uresourced.spec @@ -0,0 +1,56 @@ +Name: uresourced +Version: 0.1.0 +Release: 1%{?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 +%{_libexecdir}/uresourced +%{_unitdir}/* +%{_userunitdir}/* + +%changelog +* Wed Jul 08 2020 Benjamin Berg - 0.1.0-1 +- Initial package (rhbz#1854898)