mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
4643523b9e
* chore(sync): frawhide -> f44 * bump(gurk): release 3 → 4 * bump(discord-ptb): release 1 → 2 * bump(chdig): release 1 → 2 * bump(discord-canary): release 1 → 2 * bump(feishin): release 1 → 2 * bump(bazzite-portal): release 3 → 4 * bump(discord): release 1 → 2 * bump(coolercontrol): release 1 → 2 * bump(discord-ptb-openasar): release 1 → 2 * bump(bitwarden-cli.bin): release 2 → 3 * bump(discord-openasar): release 1 → 2 * bump(discord-canary-openasar): release 1 → 2 --------- Co-authored-by: hamachitan[bot] <252235638+hamachitan[bot]@users.noreply.github.com>
47 lines
1.2 KiB
RPMSpec
47 lines
1.2 KiB
RPMSpec
# https://github.com/nats-io/natscli
|
|
%global goipath github.com/nats-io/natscli
|
|
%global commit f312d18efbeab9f8e3455895cab064970e537c71
|
|
%global commit_date 20260228
|
|
%global shortcommit %{sub %{commit} 1 7}
|
|
|
|
%gometa -f
|
|
|
|
Name: natscli
|
|
Version: 0~%{commit_date}git.%shortcommit
|
|
Release: 1%?dist
|
|
Summary: The NATS Command Line Interface
|
|
|
|
License: Apache-2.0
|
|
URL: %{gourl}
|
|
Source0: %{gosource}
|
|
|
|
Packager: Ruka <pkgs@ruka.red>
|
|
|
|
BuildRequires: go
|
|
BuildRequires: git
|
|
BuildRequires: anda-srpm-macros
|
|
|
|
%description
|
|
A command line utility to interact with and manage NATS.
|
|
|
|
%prep
|
|
%goprep -A
|
|
|
|
%build
|
|
%define currentgoldflags -X main.version=%{version} -X main.commit=%{commit} -X main.date=%{commit_date}
|
|
%define gomodulesmode GO111MODULE=on
|
|
%gobuild -o %{gobuilddir}/bin/nats %{goipath}/nats
|
|
|
|
%install
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md AUTH.md LOCAL_DEVELOPMENT.md cli/cheats/*
|
|
%{_bindir}/nats
|
|
|
|
%changelog
|
|
* Fri Sep 19 2025 Ruka <pkgs@ruka.red> - 0~20250919git.607ceaa-1
|
|
- Initial packaging for Terra PKG
|