The package rpms/golang-honnef-tools.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/golang-honnef-tools.git/commit/?i....
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit 7f5efc063976929edf95bf59f32cec621151a2d3
Author: Mikel Olasagasti Uranga <mikel(a)olasagasti.info>
Date: Wed Aug 2 19:23:55 2023 +0200
Update to 2023.1.3 - Closes rhbz#2070258 rhbz#2114542 rhbz#2163232
diff --git a/.gitignore b/.gitignore
index 66dbe1d..0051beb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/go-tools-2021.1.tar.gz
/go-tools-2021.1.2.tar.gz
/go-tools-852a31a10f5fc943bff9b7857d352b317e1bcc3e.tar.gz
+/go-tools-0e3cc2963b37ac5d3fb66a4d9cb9dcfadbd4e21d.tar.gz
diff --git a/golang-honnef-tools.spec b/golang-honnef-tools.spec
index 38913b3..cf01bb0 100644
--- a/golang-honnef-tools.spec
+++ b/golang-honnef-tools.spec
@@ -1,58 +1,44 @@
-# Generated by go2rpm 1.6.0
+# Generated by go2rpm 1.9.0
%bcond_without check
#
https://github.com/dominikh/go-tools
%global goipath honnef.co/go/tools
%global forgeurl
https://github.com/dominikh/go-tools
-Version: 2021.1.2
-%global commit 852a31a10f5fc943bff9b7857d352b317e1bcc3e
+Version: 2023.1.3
+%global commit 0e3cc2963b37ac5d3fb66a4d9cb9dcfadbd4e21d
%gometa
%global common_description %{expand:
-honnef.co/go/tools/... is a collection of tools and libraries for working with
-Go code, including linters and static analysis, most prominently staticcheck.}
+Staticcheck - The advanced Go linter.}
-%global golicenses LICENSE
-%global godocs README.md
+%global golicenses LICENSE-THIRD-PARTY LICENSE LICENSE-gcsizes\\\
+ LICENSE-ir
+%global godocs doc README.md
Name: %{goname}
Release: %autorelease
-Summary: Collection of static analysis tools for working with Go code
+Summary: Staticcheck - The advanced Go linter
-# Upstream license specification: BSD-3-Clause and MIT
-License: BSD and MIT
+License: BSD-3-Clause AND MIT
URL: %{gourl}
-Source0: %{gosource}
-
-BuildRequires:
golang(github.com/BurntSushi/toml)
-BuildRequires:
golang(golang.org/x/tools/go/analysis)
-BuildRequires:
golang(golang.org/x/tools/go/analysis/passes/inspect)
-BuildRequires:
golang(golang.org/x/tools/go/ast/astutil)
-BuildRequires:
golang(golang.org/x/tools/go/ast/inspector)
-BuildRequires:
golang(golang.org/x/tools/go/buildutil)
-BuildRequires:
golang(golang.org/x/tools/go/gcexportdata)
-BuildRequires:
golang(golang.org/x/tools/go/loader)
-BuildRequires:
golang(golang.org/x/tools/go/packages)
-BuildRequires:
golang(golang.org/x/tools/go/types/objectpath)
-BuildRequires:
golang(golang.org/x/tools/go/types/typeutil)
-BuildRequires:
golang(golang.org/x/tools/txtar)
+Source: %{gosource}
-%if %{with check}
-# Tests
-BuildRequires:
golang(golang.org/x/tools/go/analysis/analysistest)
-%endif
-
-%description
-%{common_description}
+%description %{common_description}
%gopkg
%prep
%goprep
+%autopatch -p1
+mv go/gcsizes/LICENSE LICENSE-gcsizes
+mv go/ir/LICENSE LICENSE-ir
+
+%generate_buildrequires
+%go_generate_buildrequires
%build
-for cmd in cmd/*; do
+for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
@@ -63,12 +49,18 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
-%gocheck -d staticcheck -d go/ir -d lintcmd
+%ifarch s390x
+for test in "TestAll" \
+; do
+awk -i inplace '/^func.*'"$test"'\(/ { print; print
"\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
+done
+%endif
+%gocheck
%endif
%files
-%license LICENSE
-%doc README.md
+%license LICENSE-THIRD-PARTY LICENSE LICENSE-gcsizes LICENSE-ir
+%doc doc README.md
%{_bindir}/*
%gopkgfiles
diff --git a/sources b/sources
index fb778c9..56dbe18 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (go-tools-852a31a10f5fc943bff9b7857d352b317e1bcc3e.tar.gz) =
68e3405d03a124a4e568ccc97cd3df088fa7d78e8355862bb0f95ce68f5e21bf34bfe0f2737eb0c385a2dbd4462726b1846504847e7e6bfbeab5d9563dc81577
+SHA512 (go-tools-0e3cc2963b37ac5d3fb66a4d9cb9dcfadbd4e21d.tar.gz) =
985a6e8601f7fa33bdca9ec4da02383e02b6de43289376a81d9c8742b90292658a7b72d0fdb7affe63eab1111e2be69ceceb34587df705b7f1eac66ce8c6414a
commit 61276afdb190277fd5385d5d9e538b3a798404f1
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Jul 20 04:52:28 2023 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
commit 1f4bbd6f10d97359b3ca518a933c50d8fc5bb8e7
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Jan 19 10:52:06 2023 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>