## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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} find -name '*_integration_test.go' -print -delete # Some of the failures are due to our replace added in go-vendor-tools.toml. # Re-evaluate them after https://github.com/ldez/grignotin/pull/2 is merged. %gotest ./... -v -skip 'TestCgoOk|Test_evaluateBuildTags|TestEnableAllFastAndEnableCanCoexist|TestUnsafeOk' %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs CHANGELOG.md README.md scripts/bench/readme.md %doc scripts/website/expand_templates/changelog.go %{_bindir}/golangci-lint %changelog ## START: Generated by rpmautospec * Wed Sep 17 2025 John Doe - 2.4.0-1 - Uncommitted changes ## END: Generated by rpmautospec