public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tmux-top] epel10: Adopt Go Vendor Tools
@ 2026-09-29 12:29 Mikel Olasagasti Uranga
0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-09-29 12:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/tmux-top
Branch : epel10
Commit : b0d431edf034d6d9af9da6b5aea1223425814bc8
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date : 2026-02-04T14:23:41+01:00
Stats : +71/-53 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/tmux-top/c/b0d431edf034d6d9af9da6b5aea1223425814bc8?branch=epel10
Log:
Adopt Go Vendor Tools
---
diff --git a/.gitignore b/.gitignore
index 7ab0035..f0ffb95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@
/tmux-top-0035f70.tar.gz
/tmux-top-910ef1f.tar.gz
/tmux-top-0.1.1.tar.gz
+/tmux-top-1.0.0.tar.gz
+/tmux-top-1.0.0-vendor.tar.bz2
diff --git a/.packit.yaml b/.packit.yaml
index 9d8e188..deab936 100644
--- a/.packit.yaml
+++ b/.packit.yaml
@@ -1,16 +1,33 @@
+specfile_path: tmux-top.spec
+
upstream_package_name: tmux-top
+upstream_project_url: https://github.com/TomasTomecek/tmux-top
downstream_package_name: tmux-top
-specfile_path: tmux-top.spec
+
jobs:
-- job: copr_build
- targets:
- - fedora-all
- trigger: pull_request
-- job: tests
- targets:
- - fedora-all
- trigger: pull_request
-- job: propose_downstream
+
+- job: pull_from_upstream
trigger: release
dist_git_branches:
- - fedora-all
+ - fedora-all
+
+- job: koji_build
+ trigger: commit
+ dist_git_branches:
+ - fedora-all
+
+actions:
+ post-modifications:
+ # https://fedora.gitlab.io/sigs/go/go-vendor-tools/scenarios/#manual-update
+ - |
+ sh -xeuc "
+ cd $PACKIT_DOWNSTREAM_REPO
+ export GOTOOLCHAIN=auto
+ go_vendor_archive create --config go-vendor-tools.toml tmux-top.spec
+ go_vendor_license \
+ --config go-vendor-tools.toml \
+ --path tmux-top.spec \
+ report \
+ --verify-spec
+ "
+create_sync_note: false
diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
new file mode 100644
index 0000000..6ab4062
--- /dev/null
+++ b/go-vendor-tools.toml
@@ -0,0 +1,4 @@
+[archive]
+
+[licensing]
+detector = "askalono"
diff --git a/sources b/sources
index 6760226..9a58ddb 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (tmux-top-0.1.1.tar.gz) = fc464aa80a14422ae20cd3c7c299228d1e703cb132f577f0341a27e7cd7ca9e85aa319bc697b6193c41f0bccd04b591c9e88c473af905ce363006e38634b5b70
+SHA512 (tmux-top-1.0.0.tar.gz) = 97b034ce6ed9d9b7d46e35d19ea749ea0a9766d5efb58b94ea70cb379a3f58e41119dfb9bd26be9809026fc589a1eee52d6127bdde610b1ecee770456113795e
+SHA512 (tmux-top-1.0.0-vendor.tar.bz2) = e9eee43dbe8d56eb9c7dfad25ca3976b3702089485f00b88f554a6618386c95d327db4c6524beb78eb3fe8bdde9c4bb4c6d5de6e93324db61ab4bded1982550f
diff --git a/tmux-top.spec b/tmux-top.spec
index 90ff59a..6f2634a 100644
--- a/tmux-top.spec
+++ b/tmux-top.spec
@@ -1,33 +1,27 @@
-%global debug_package %{nil}
-%global provider github
-%global provider_tld com
-%global project TomasTomecek
-%global repo tmux-top
+# Generated by go2rpm 1.19.0
+%bcond check 1
+
# https://github.com/TomasTomecek/tmux-top
-%global goipath %{provider}.%{provider_tld}/%{project}/%{repo}
-%global forgeurl https://%{goipath}
-# %%global commit 910ef1f72549a703c3c39abaefefe9a80d0b22fd
-%global golicenses LICENSE
-%global godocs README.md
-# since tmux-top release archives are structured as NAME-VERSION
-# 1. We need to set version
-# 2. And cannot set commit macro
-# 3. Place version before gometa
-Version: 0.1.1
-%gometa
+%global goipath github.com/TomasTomecek/tmux-top
+Version: 1.0.0
+%global tag 1.0.0
+
+%gometa -L -f
+
Name: tmux-top
Release: %autorelease
-Summary: Monitoring information for your tmux status line.
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
-License: GPL-2.0-or-later
-URL: %{gourl}
-# gosource macro doesn't work as it expects vTAG tagging scheme
-Source0: https://%{goipath}/archive/%{version}/%{name}-%{version}.tar.gz
+Summary: Monitoring information for your tmux status line
-BuildRequires: make
-BuildRequires: golang(github.com/urfave/cli)
+# Generated by go-vendor-tools
+License: BSD-2-Clause AND GPL-2.0-only AND MIT
+URL: %{gourl}
+Source0: %{gosource}
+# Generated by go-vendor-tools
+Source1: %{archivename}-vendor.tar.bz2
+Source2: go-vendor-tools.toml
+BuildRequires: go-vendor-tools
%description
Monitoring information for your tmux status line.
@@ -39,32 +33,32 @@ tmux-top allows you to see your:
* network information
* I/O
-%gopkg
%prep
-%goprep
+%goprep -p1
+tar -xf %{S:1}
+
+%generate_buildrequires
+%go_vendor_license_buildrequires -c %{S:2}
%build
+%global gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/tmux-top
-
%install
-%gopkginstall
-install -m 0755 -vd %{buildroot}%{_bindir}
-install -m 0755 -vp %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}/
-
+%go_vendor_license_install -c %{S:2}
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%check
-export GOPATH=$(pwd):%{gopath}
-make test
-
-
-%files
-%license %{golicenses}
-%doc %{godocs}
-%{_bindir}/%{name}
-
-%gopkgfiles
+%go_vendor_license_check -c %{S:2}
+%if %{with check}
+%gotest ./...
+%endif
+
+%files -f %{go_vendor_license_filelist}
+%doc docs README.md
+%{_bindir}/tmux-top
%changelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-29 12:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 12:29 [rpms/tmux-top] epel10: Adopt Go Vendor Tools Mikel Olasagasti Uranga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox