%global reponame framework-ec# renovate: datasource=github-releases depName=DHowett/framework-ec%global commit 54c140399bbc3e6a3dce6c9f842727c4128367be%global shortcommit %(c=%{commit}; echo ${c:0:7})%global commit_date 20221204%global gitrel .%{commit_date}.git%{shortcommit}Name: fw-ectoolVersion: v0.3.3Release: 3%{gitrel}%{?dist}Summary: A tool for interacting with the embedded controller on a Framework laptop.License: BSDURL: https://github.com/DHowett/framework-ecSource0: https://github.com/DHowett/framework-ec/archive/%{commit}/%{reponame}-%{shortcommit}.tar.gzSource1: fw-ectool.shSource2: framework-ectool.serviceSource3: framework-ectool.shBuildRequires: gccBuildRequires: makeBuildRequires: arm-none-eabi-gcc-csBuildRequires: libftdi-develRequires: libftdi%descriptionRead and write values to the embedded controller on a Framework laptop.%prep%autosetup -n %{reponame}-%{commit}%buildmake utils%installinstall -Dm755 build/bds/util/ectool %{buildroot}%{_bindir}/ectoolinstall -m755 %SOURCE1 %{buildroot}%{_bindir}/fw-ectoolinstall -Dm644 %SOURCE2 %{buildroot}%{_unitdir}/framework-ectool.serviceinstall -Dm755 %SOURCE3 %{buildroot}%{_libexecdir}/framework-ectool%files%license LICENSE%{_bindir}/ectool%{_bindir}/fw-ectool%{_unitdir}/framework-ectool.service%{_libexecdir}/framework-ectool%changelog* Thu Jun 01 2023 Brendan Van Hook <brendan@vastactive.com>- Add script to check for any framework ectool scripts and run them.- Change systemd unit to use framework-ectool script.* Tue Dec 13 2022 Brendan Van Hook <brendan@vastactive.com>- Add systemd unit file for swapping caps lock with escape* Wed Oct 05 2022 Brendan Van Hook <brendan@vastactive.com>- Initial spec file- Add alias fw-ectool to ectool --interface=fwk