chore: use go packaging

Signed-off-by: Owen-sz <owen@fyralabs.com>
This commit is contained in:
Owen-sz
2026-06-14 11:31:02 -05:00
parent ed16432e41
commit dd7be38194
+17 -5
View File
@@ -1,26 +1,35 @@
%define debug_package %{nil}
Name: neohtop-cli
%global goipath github.com/abdenasser/neohtop-cli
Version: 0.1.12
Release: 1%?dist
%gometa -f
Name: neohtop-cli
Release: 1%{?dist}
Summary: A cross-platform terminal process monitor with btop-style visualizations
License: MIT
URL: https://github.com/Abdenasser/neohtop-cli
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Packager: Owen Zimmerman <owen@fyralabs.com>
BuildRequires: golang
BuildRequires: go-rpm-macros
%description
%summary.
%gopkg
%prep
%autosetup
%build
%make_build
%define gomodulesmode GO111MODULE=on
pushd cli
%gobuild -o %{gobuilddir}/../neohtop-cli %{goipath}/
popd
%install
install -Dm755 neohtop-cli %{buildroot}%{_bindir}/neohtop-cli
install -Dm 0755 cli/neohtop-cli %{buildroot}%{_bindir}/neohtop-cli
%files
%doc README.md CONTRIBUTING.md
@@ -28,5 +37,8 @@ install -Dm755 neohtop-cli %{buildroot}%{_bindir}/neohtop-cli
%{_bindir}/neohtop-cli
%changelog
* Sun Jun 14 2026 Owen Zimmerman <owen@fyralabs.com>
- Use go packaging
* Sun Mar 29 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit