# # spec file for package gnome-vram-booster # # Copyright (c) 2024 sachesi # Name: gnome-vram-booster Version: 0.7.5 Release: 1%{?dist} Summary: Dynamic VRAM prioritization for GNOME License: GPL-3.0-or-later Group: System/GUI/GNOME URL: https://github.com/sachesi/gnome-vram-booster Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: glib2-devel BuildRequires: systemd-rpm-macros Requires: dmemcg-booster Recommends: gnome-shell %description GNOME VRAM Booster is a daemon and extension that prioritize VRAM for the foreground application using dmem cgroups. %prep %autosetup -n %{name}-%{version} %build pushd daemon export CARGO_HOME="$PWD/.cargo-home" cargo build --release popd %install # Daemon pushd daemon install -Dpm 0755 target/release/%{name} %{buildroot}%{_libexecdir}/%{name} install -Dpm 0755 target/release/%{name}ctl %{buildroot}%{_bindir}/%{name}ctl popd # Systemd install -Dm644 packaging/usr/lib/systemd/system/%{name}.service %{buildroot}%{_unitdir}/%{name}.service # DBus install -Dm644 packaging/usr/share/dbus-1/system.d/org.gnome.VramBooster.conf %{buildroot}%{_datadir}/dbus-1/system.d/org.gnome.VramBooster.conf # Extension %define ext_uuid vram-booster@local %define ext_dir %{_datadir}/gnome-shell/extensions/%{ext_uuid} mkdir -p %{buildroot}%{ext_dir} cp -r extension/* %{buildroot}%{ext_dir}/ glib-compile-schemas %{buildroot}%{ext_dir}/schemas/ %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %check test -x %{buildroot}%{_libexecdir}/%{name} test -x %{buildroot}%{_bindir}/%{name}ctl %files %license LICENSE %doc README.md %{_libexecdir}/%{name} %{_bindir}/%{name}ctl %{_unitdir}/%{name}.service %{_datadir}/dbus-1/system.d/org.gnome.VramBooster.conf %dir %{_datadir}/gnome-shell %dir %{_datadir}/gnome-shell/extensions %{_datadir}/gnome-shell/extensions/%{ext_uuid}/ %changelog * Mon Oct 26 2026 sachesi - 0.7.5-1 - Update to 0.7.5. - The daemon moves to /usr/libexec, out of PATH. * Thu Oct 08 2026 sachesi - 0.7.3-1 - Update to 0.7.3. * Sat Oct 03 2026 sachesi - 0.7.2-1 - Update to 0.7.2. * Fri Sep 18 2026 sachesi - 0.7.0-1 - Update to 0.7.0. * Mon Sep 07 2026 sachesi - 0.6.2-1 - Update to 0.6.2. * Mon Sep 07 2026 sachesi - 0.6.1-1 - Update to 0.6.1. * Mon Jun 15 2026 sachesi - 0.6.0-1 - Update to 0.6.0. * Fri May 29 2026 sachesi - 0.5.0-1 - Update to 0.5.0. * Sat May 23 2026 sachesi - 0.4.0 - Bump gnome-vram-booster to v0.4.0 * Sun May 17 2026 sachesi - 0.2.0 - Initial OBS package