Name:           lact
Version:        0.9.0
Release:        1
Summary:        GPU control utility
License:        MIT
URL:            https://github.com/ilya-zlobintsev/LACT
Source0:        https://github.com/ilya-zlobintsev/LACT/archive/refs/tags/v0.9.0.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  rust cargo gtk4-devel gcc libdrm-devel dbus libadwaita-devel curl make clang git vulkan-tools clinfo
Requires:       gtk4 libdrm libadwaita hwdata vulkan-tools clinfo

%description
GPU control utility

%prep
%setup -q -n LACT-%{version}

%build
VERGEN_GIT_SHA=454a6e2 make build-release %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install PREFIX=/usr DESTDIR=%{buildroot}

%files
%defattr(-,root,root,-)
%license LICENSE
%doc README.md
/usr/bin/lact
/usr/lib/systemd/system/lactd.service
/usr/share/applications/io.github.ilya_zlobintsev.LACT.desktop
/usr/share/icons/hicolor/512x512/apps/io.github.ilya_zlobintsev.LACT.png
/usr/share/icons/hicolor/scalable/apps/io.github.ilya_zlobintsev.LACT.svg
/usr/share/metainfo/io.github.ilya_zlobintsev.LACT.metainfo.xml

%changelog
* 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.
