The package rpms/tmux-top.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/tmux-top.git/commit/?id=6ab746b6b....
Change:
-ExclusiveArch: %{go_arches}
Thanks.
Full change:
============
commit 6ab746b6b3abcbc408248cd2f40062b3ed93d522
Author: Tomas Tomecek <ttomecek(a)redhat.com>
Date: Wed Jun 8 15:45:18 2022 +0200
[packit] 0.1.1 upstream release
Upstream tag: 0.1.1
Upstream commit: eac16e39
Signed-off-by: Tomas Tomecek <ttomecek(a)redhat.com>
diff --git a/.gitignore b/.gitignore
index b062cc9..7ab0035 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/tmux-top-a9b9fb3.tar.gz
/tmux-top-0035f70.tar.gz
/tmux-top-910ef1f.tar.gz
+/tmux-top-0.1.1.tar.gz
diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..9d8e188
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,16 @@
+upstream_package_name: 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
+ trigger: release
+ dist_git_branches:
+ - fedora-all
diff --git a/README.packit b/README.packit
new file mode 100644
index 0000000..4a9905b
--- /dev/null
+++ b/README.packit
@@ -0,0 +1,3 @@
+This repository is maintained by packit.
+https://packit.dev/
+The file was generated using packit 0.50.1.dev10+g63f9208.
diff --git a/sources b/sources
index af1cca3..6760226 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tmux-top-910ef1f.tar.gz) =
8ea804a55cb70e897783d00744fcac036d7ea5b82ceed3de26ee956dacd822154e6afacb33f8cbdb6401607532b95b2e7f73b41a9a8b65f53b4cea809a804878
+SHA512 (tmux-top-0.1.1.tar.gz) =
fc464aa80a14422ae20cd3c7c299228d1e703cb132f577f0341a27e7cd7ca9e85aa319bc697b6193c41f0bccd04b591c9e88c473af905ce363006e38634b5b70
diff --git a/tmux-top.spec b/tmux-top.spec
index 52ea502..1b1d553 100644
--- a/tmux-top.spec
+++ b/tmux-top.spec
@@ -4,24 +4,29 @@
%global project TomasTomecek
%global repo tmux-top
#
https://github.com/TomasTomecek/tmux-top
-%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
-%global commit 910ef1f72549a703c3c39abaefefe9a80d0b22fd
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%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
Name: tmux-top
-Version: 0.0.4
-Release: 9%{?dist}
+Release: 1%{?dist}
Summary: Monitoring information for your tmux status line.
License: GPLv2+
-URL: https://%{import_path}
-Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+URL: %{gourl}
+# gosource macro doesn't work as it expects vTAG tagging scheme
+Source0: https://%{goipath}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: make
-BuildRequires: compiler(golang)
BuildRequires:
golang(github.com/urfave/cli)
-ExclusiveArch: %{go_arches}
-
%description
Monitoring information for your tmux status line.
@@ -33,20 +38,19 @@ tmux-top allows you to see your:
* network information
* I/O
+%gopkg
%prep
-%setup -q -n %{repo}-%{commit}
+%goprep
%build
-# Make link for tmux-top itself
-mkdir -p
src/github.com/%{project}
-ln -s ../../../
src/github.com/%{project}/%{repo}
-export GOPATH=$(pwd):%{gopath}
-make
+%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/tmux-top
%install
-make install DESTDIR=%{buildroot}
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}/
%check
@@ -55,11 +59,28 @@ make test
%files
-%doc README.md LICENSE
+%license %{golicenses}
+%doc %{godocs}
%{_bindir}/%{name}
+%gopkgfiles
+
%changelog
+* Wed Jun 08 2022 Tomas Tomecek <ttomecek(a)redhat.com> - 0.1.1-1
+- 0.1.1 release (Tomas Tomecek)
+- packit: use propose downstream (Tomas Tomecek)
+- packit.yaml (Tomas Tomecek)
+- modernize spec file (Tomas Tomecek)
+- update dependencies (Tomas Tomecek)
+- Use Go modules (Philipp Schmitt)
+- Enable copr builds for packit config (Dominika Hodovska)
+- Add upstream_package_name to packit conf (Dominika Hodovska)
+- [packit] master downstream sync (Tomas Tomecek)
+- better readme ordering (Tomas Tomecek)
+- don't set coloring to default after displaying a val (Tomas Tomecek)
+- readme: typos, grammar (Tomas Tomecek)
+
* Fri Jul 23 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.0.4-9
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild