mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-16 16:40:38 +00:00
588925d482
* 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>
41 lines
855 B
RPMSpec
41 lines
855 B
RPMSpec
%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
|