From d0522843e0488920ce359d6ef55da5091b367aee Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 23 Dec 2025 22:42:02 -0800 Subject: [PATCH] add: framework-system (#8554) (#8560) (cherry picked from commit 285c999b4af9b190f22ee1b2f3e299f2577ce555) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/framework-system/anda.hcl | 6 +++ .../framework-system/framework-system.spec | 47 +++++++++++++++++++ anda/tools/framework-system/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/tools/framework-system/anda.hcl create mode 100644 anda/tools/framework-system/framework-system.spec create mode 100644 anda/tools/framework-system/update.rhai diff --git a/anda/tools/framework-system/anda.hcl b/anda/tools/framework-system/anda.hcl new file mode 100644 index 0000000000..be765aca17 --- /dev/null +++ b/anda/tools/framework-system/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "framework-system.spec" + } +} diff --git a/anda/tools/framework-system/framework-system.spec b/anda/tools/framework-system/framework-system.spec new file mode 100644 index 0000000000..4f0968cd16 --- /dev/null +++ b/anda/tools/framework-system/framework-system.spec @@ -0,0 +1,47 @@ +Name: framework-system +Version: 0.4.5 +Release: 1%?dist +Summary: Rust libraries and tools to interact with the Framework Computer systems +URL: https://github.com/FrameworkComputer/framework-system +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +License: BSD-3-Clause +BuildRequires: anda-srpm-macros +BuildRequires: cargo-rpm-macros +BuildRequires: mold +BuildRequires: rust-udev-devel +BuildRequires: rust +BuildRequires: systemd-devel +BuildRequires: hidapi-devel +Requires: rustup +Provides: framework_tool +ExclusiveArch: x86_64 + +Packager: Owen Zimmerman + +%description +%{summary}. + +%pkg_completion -bz framework_tool + +%prep +%autosetup -n framework-system-%{version} +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/framework_tool %{buildroot}%{_bindir}/framework_tool +install -Dm 644 completions/bash/framework_tool %{buildroot}%{bash_completions_dir}/framework_tool.bash +install -Dm 644 completions/zsh/_framework_tool %{buildroot}%{zsh_completions_dir}/_framework_tool +%{cargo_license_online} > LICENSE.dependencies + +%files +%doc EXAMPLES.md EXAMPLES_ADVANCED.md README.md support-matrices.md +%license LICENSE.md +%license LICENSE.dependencies +%{_bindir}/framework_tool + +%changelog +* Tue Dec 23 2025 Owen Zimmerman +- Initial commit diff --git a/anda/tools/framework-system/update.rhai b/anda/tools/framework-system/update.rhai new file mode 100644 index 0000000000..8cee817f46 --- /dev/null +++ b/anda/tools/framework-system/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("FrameworkComputer/framework-system"));