From dd7be3819447be391de931173d23dc02dc96d989 Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Sun, 14 Jun 2026 11:31:02 -0500 Subject: [PATCH] chore: use go packaging Signed-off-by: Owen-sz --- .../apps/neohtop/neohtop-cli/neohtop-cli.spec | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/anda/apps/neohtop/neohtop-cli/neohtop-cli.spec b/anda/apps/neohtop/neohtop-cli/neohtop-cli.spec index 2a70987370..0d461911b8 100644 --- a/anda/apps/neohtop/neohtop-cli/neohtop-cli.spec +++ b/anda/apps/neohtop/neohtop-cli/neohtop-cli.spec @@ -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 -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 +- Use go packaging + * Sun Mar 29 2026 Owen Zimmerman - Initial commit