add: ls-iommu (#8536) (#8543)

* Fix: rpi-utils

* add: ls-iommu



* ?



---------


(cherry picked from commit 288aac9516)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-12-22 09:07:50 -08:00
committed by GitHub
parent 1502188905
commit 2fe2c60fe5
3 changed files with 46 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "ls-iommu.spec"
}
}
+40
View File
@@ -0,0 +1,40 @@
%global goipath github.com/HikariKnight/ls-iommu
Version: 2.3.0
%gometa -f
Name: ls-iommu
Release: 1%?dist
Summary: A tool to list devices in iommu groups, useful for setting up VFIO
License: MIT
URL: https://github.com/HikariKnight/ls-iommu
Source0: %url/archive/refs/tags/%version.tar.gz
Packager: Owen Zimmerman <owen@fyralabs.com>
BuildRequires: golang gcc go-rpm-macros
%description
%{summary}.
%gopkg
%prep
%goprep
%build
%define gomodulesmode GO111MODULE=on
%gobuild -ldflags="-X github.com/HikariKnight/ls-iommu/internal/version.Version=%version" -o ls-iommu ./cmd
%install
install -Dm 0755 ls-iommu %{buildroot}%{_bindir}/ls-iommu
%files
%license LICENSE
%doc README.md
%{_bindir}/ls-iommu
%changelog
* Sun Dec 21 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("HikariKnight/ls-iommu"));