%define _debugsource_template %{nil} %define debug_package %{nil} Name: umbriel-vram-booster Version: 0.4.4 Release: 1%{?dist} Summary: Dynamic VRAM prioritization for the Umbriel compositor via Linux dmem cgroups License: GPL-3.0-or-later URL: https://github.com/sachesi/umbriel-vram-booster Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.88 BuildRequires: systemd-rpm-macros Requires: dmemcg-booster %description A systemd --user daemon that follows Umbriel's IPC socket, takes the active window from each snapshot and gives its app.slice unit the bulk of VRAM through the dmem cgroup controller, reverting the window boosted before it. umbriel-vram-boosterctl reports what it is doing. Needs a kernel with the dmem controller (6.12+) and a running dmemcg-booster to propagate that controller into the user session. %prep %autosetup -n %{name}-%{version} %build cd daemon export CARGO_HOME=$PWD/.cargo-home cargo build --release --locked %install install -Dpm 0755 daemon/target/release/%{name} %{buildroot}%{_libexecdir}/%{name} install -Dpm 0755 daemon/target/release/%{name}ctl %{buildroot}%{_bindir}/%{name}ctl install -Dpm 0644 data/%{name}.service %{buildroot}%{_userunitdir}/%{name}.service %check cd daemon export CARGO_HOME=$PWD/.cargo-home cargo test --release --locked %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun_with_restart %{name}.service %files %license LICENSE %doc README.md docs/install.md docs/usage.md %{_libexecdir}/%{name} %{_bindir}/%{name}ctl %{_userunitdir}/%{name}.service %changelog * Mon Oct 26 2026 sachesi - 0.4.4-1 - Update to 0.4.4. - The daemon moves to /usr/libexec, out of PATH. * Thu Oct 08 2026 sachesi - 0.4.3-1 - Update to 0.4.3. * Sat Oct 03 2026 sachesi - 0.4.2-1 - Update to 0.4.2. * Fri Sep 18 2026 sachesi - 0.4.0-1 - Update to 0.4.0. * Mon Sep 14 2026 sachesi - 0.3.0-1 - Update to 0.3.0; the user unit now ships from data/. * Mon Sep 14 2026 sachesi - 0.2.1-1 - Initial package for Copr.