# Generated by go2rpm 1.17.1.post0 %bcond check 1 # https://github.com/golangci/golangci-lint %global goipath github.com/golangci/golangci-lint/v2 Version: 2.4.0 %gometa -L -f Name: golangci-lint Release: %autorelease Summary: Fast linters runner for Go # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-3.0-only AND ISC AND MIT AND MPL-2.0 AND Unlicense AND (MIT OR Unlicense) URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description Fast linters runner for Go. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} # Don't run integration tests. find -name '*_integration_test.go' -print -delete # NOTE(gotmax23): These tests seem very flaky. # Previously, a bunch of them failed just because I added a replace directive # to golangci-lint's go.mod. %gotest ./... -v -skip 'Test_evaluateBuildTags' %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc CHANGELOG.md README.md %{_bindir}/golangci-lint %changelog %autochangelog