forked from pool/framework_tool
* Update blocklist of unsafe commands by @JohnAZoidberg in #187 - Update to 0.4.4 * ccgx: derive Ord for AppVersion and BaseVersion by @JohnAZoidberg in #175 * Add support for EC_CMD_REBOOT_AP_ON_G3 by @JohnAZoidberg in #181 * --inputdeck: On FW16 also print sleep_l gpio state by @JohnAZoidberg in #179 * Update docs by @JohnAZoidberg in #176 * Current and charge rate limit cannot be read by @JohnAZoidberg in #182 * uefi: Fix shell args when run from a script by @JohnAZoidberg in #185 * Add --feature readonly, to build a bin without risky commands by @JohnAZoidberg in #141 * Bump to v0.4.4 by @JohnAZoidberg in #186 OBS-URL: https://build.opensuse.org/package/show/hardware/framework_tool?expand=0&rev=7
63 lines
2.1 KiB
RPMSpec
63 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package framework_tool
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define reponame framework-system
|
|
%define completion_dir_bash %{_datadir}/bash-completion/completions
|
|
%define completion_dir_zsh %{_datadir}/zsh/functions/Completion
|
|
Name: framework_tool
|
|
Version: 0.4.5
|
|
Release: 0
|
|
Summary: Rust tools to interact with the Framework Computer systems
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/FrameworkComputer/framework-system
|
|
Source0: https://github.com/FrameworkComputer/framework-system/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.zst
|
|
# PATCH-FIX-OPENSUSE make-reproducable.patch
|
|
Patch0: make-reproducable.patch
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: pkg-config
|
|
BuildRequires: systemd-devel
|
|
BuildRequires: zsh
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
Rust tools to interact with the Framework Computer systems, especially with the built-in embedded controller
|
|
|
|
%prep
|
|
%autosetup -p1 -a1 -n %{reponame}-%{version}
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
|
install -D -m 0644 completions/bash/framework_tool %{buildroot}%{completion_dir_bash}/framework_tool.bash
|
|
install -D -m 0644 completions/zsh/_framework_tool %{buildroot}%{completion_dir_zsh}/framework_tool.zsh
|
|
|
|
%check
|
|
%cargo_test
|
|
|
|
%files
|
|
%license LICENSE.md
|
|
%doc README.md support-matrices.md EXAMPLES.md
|
|
%{_bindir}/%{name}
|
|
%{completion_dir_bash}/framework_tool.bash
|
|
%{completion_dir_zsh}/framework_tool.zsh
|
|
|
|
%changelog
|