%global debug_package %{nil} %global prjname ectool %global commit 0ac6155abbb7d4622d3bcf2cdf026dde2f80dad7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: fw-ectool Version: 20240623 Release: 1.git%{shortcommit}%{?dist} Summary: ectool for the Framework Laptop License: BSD-3-Clause URL: https://gitlab.howett.net/DHowett/%{prjname} Source: https://gitlab.howett.net/DHowett/%{prjname}/-/archive/%{commit}/%{prjname}-%{commit}.tar.gz BuildRequires: cmake BuildRequires: gcc-g++ BuildRequires: libftdi-devel Requires: libftdi %description Read and write values to the embedded controller on a Framework Laptop. %prep %autosetup -n %{prjname}-%{commit} %build %cmake \ -DCMAKE_BUILD_TYPE=Release %cmake_build %install %cmake_install install -Dpm 0755 redhat-linux-build/src/%{prjname} -t %{buildroot}%{_bindir}/ ln -s %{prjname} %{buildroot}%{_bindir}/%{name} %files %license LICENSE %doc README.md %{_bindir}/%{prjname} %{_bindir}/%{name} %changelog * Mon Jul 07 2025 Andrey Brusnik - 20240623-1.git0ac6155 - feat: Add fw-ectool package