Skip to content

Commit bf3e97f

Browse files
rabonekoOwen-sz
andauthored
add: framework-system (#8554) (#8561)
(cherry picked from commit 285c999) Signed-off-by: Owen-sz <owen@fyralabs.com> Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
1 parent 586c731 commit bf3e97f

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
project pkg {
2+
arches = ["x86_64"]
3+
rpm {
4+
spec = "framework-system.spec"
5+
}
6+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Name: framework-system
2+
Version: 0.4.5
3+
Release: 1%?dist
4+
Summary: Rust libraries and tools to interact with the Framework Computer systems
5+
URL: https://github.com/FrameworkComputer/framework-system
6+
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
7+
License: BSD-3-Clause
8+
BuildRequires: anda-srpm-macros
9+
BuildRequires: cargo-rpm-macros
10+
BuildRequires: mold
11+
BuildRequires: rust-udev-devel
12+
BuildRequires: rust
13+
BuildRequires: systemd-devel
14+
BuildRequires: hidapi-devel
15+
Requires: rustup
16+
Provides: framework_tool
17+
ExclusiveArch: x86_64
18+
19+
Packager: Owen Zimmerman <owen@fyralabs.com>
20+
21+
%description
22+
%{summary}.
23+
24+
%pkg_completion -bz framework_tool
25+
26+
%prep
27+
%autosetup -n framework-system-%{version}
28+
%cargo_prep_online
29+
30+
%build
31+
%cargo_build
32+
33+
%install
34+
install -Dm755 target/rpm/framework_tool %{buildroot}%{_bindir}/framework_tool
35+
install -Dm 644 completions/bash/framework_tool %{buildroot}%{bash_completions_dir}/framework_tool.bash
36+
install -Dm 644 completions/zsh/_framework_tool %{buildroot}%{zsh_completions_dir}/_framework_tool
37+
%{cargo_license_online} > LICENSE.dependencies
38+
39+
%files
40+
%doc EXAMPLES.md EXAMPLES_ADVANCED.md README.md support-matrices.md
41+
%license LICENSE.md
42+
%license LICENSE.dependencies
43+
%{_bindir}/framework_tool
44+
45+
%changelog
46+
* Tue Dec 23 2025 Owen Zimmerman <owen@fyralabs.com>
47+
- Initial commit
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rpm.version(gh("FrameworkComputer/framework-system"));

0 commit comments

Comments
 (0)