%global commit 30dc182391e2c002f6f7c988e76aa477a4772aa2 Name: lact Version: 0.10.1 Release: 2%{?dist} Summary: GPU control utility License: MIT URL: https://github.com/ilya-zlobintsev/LACT Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Linux x86_64 crates only, generated from the tag's Cargo.lock with: # cargo vendor-filterer --platform=x86_64-unknown-linux-gnu --all-features \ # --versioned-dirs vendor > vendor-config.toml # tar -cJf lact-vendor-%%{version}.tar.xz vendor vendor-config.toml Source1: lact-vendor-%{version}.tar.xz ExclusiveArch: x86_64 BuildRequires: rpm_macro(cargo_build) BuildRequires: clang-devel BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libdrm_amdgpu) BuildRequires: pkgconfig(libdisplay-info) BuildRequires: systemd-rpm-macros Requires: hwdata vulkan-tools clinfo %description GPU control utility %prep %autosetup -n LACT-%{version} -a 1 %cargo_prep -v vendor # Git dependencies (nvml-wrapper, zbus_polkit) need their own source # replacements, which %%cargo_prep does not write. sed -n '/^\[source\."git+/,/^replace-with/p' vendor-config.toml >> .cargo/config.toml %build export VERGEN_GIT_SHA=%{sub %{commit} 1 7} cd lact %cargo_build %install install -Dm755 target/rpm/lact -t %{buildroot}%{_bindir} install -Dm644 res/lactd.service -t %{buildroot}%{_unitdir} install -Dm644 res/io.github.ilya_zlobintsev.LACT.desktop -t %{buildroot}%{_datadir}/applications install -Dm644 res/io.github.ilya_zlobintsev.LACT.png -t %{buildroot}%{_datadir}/icons/hicolor/512x512/apps install -Dm644 res/io.github.ilya_zlobintsev.LACT.svg -t %{buildroot}%{_datadir}/icons/hicolor/scalable/apps install -Dm644 res/io.github.ilya_zlobintsev.LACT.metainfo.xml -t %{buildroot}%{_metainfodir} install -Dm644 res/io.github.ilya_zlobintsev.LACT.policy -t %{buildroot}%{_datadir}/polkit-1/actions %files %license LICENSE %doc README.md %{_bindir}/lact %{_unitdir}/lactd.service %{_datadir}/applications/io.github.ilya_zlobintsev.LACT.desktop %{_datadir}/icons/hicolor/512x512/apps/io.github.ilya_zlobintsev.LACT.png %{_datadir}/icons/hicolor/scalable/apps/io.github.ilya_zlobintsev.LACT.svg %{_metainfodir}/io.github.ilya_zlobintsev.LACT.metainfo.xml %{_datadir}/polkit-1/actions/io.github.ilya_zlobintsev.LACT.policy %changelog * Tue Oct 20 2026 Lars Søe Mikkelsen - 0.10.1-2 - Build from source again (vendored crates) instead of repackaging upstream's prebuilt binary * Mon Sep 07 2026 Lars Søe Mikkelsen - 0.10.1-1 - Update to v0.10.1 * Thu Aug 20 2026 Lars Søe Mikkelsen - 0.10.0-1 - Switch to repackaging upstream's official signed Fedora 44 binary release instead of building from source - no Rust toolchain available locally to regenerate the cargo vendor tarball the source build needs. * Sat Jun 28 2026 Lars Søe Mikkelsen - 0.9.1-1 - Update to v0.9.1 * Sat Apr 25 2026 - ilya-zlobintsev - v0.9.0 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.9.0 for detailed changelog. * Sun Jan 25 2026 - ilya-zlobintsev - v0.8.4 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.8.4 for detailed changelog. * Thu Nov 20 2025 - ilya-zlobintsev - v0.8.3 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.8.3 for detailed changelog. * Sat Oct 18 2025 - ilya-zlobintsev - v0.8.2 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.8.2 for detailed changelog. * Thu Aug 07 2025 - ilya-zlobintsev - v0.8.1 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.8.1 for detailed changelog. * Sat Jun 28 2025 - ilya-zlobintsev - v0.8.0 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.8.0 for detailed changelog. * Sun May 11 2025 - ilya-zlobintsev - v0.7.4 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.7.4 for detailed changelog. * Sat Apr 05 2025 - ilya-zlobintsev - v0.7.3 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.7.3 for detailed changelog. * Sun Mar 16 2025 - ilya-zlobintsev - v0.7.2 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.7.2 for detailed changelog. * Thu Feb 27 2025 - ilya-zlobintsev - v0.7.1 - Autogenerated from CI, please see https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.7.1 for detailed changelog.