# Generated by go2rpm 1.19.0 # https://github.com/reviewdog/reviewdog %global goipath github.com/reviewdog/reviewdog Version: 0.21.0 %gometa -L -f Name: reviewdog Release: 1%{?dist} Summary: Automated code review tool integrated with any code analysis tools # Cumulative SPDX over reviewdog + all vendored deps, not just upstream's MIT. # Recomputed after stripping the Bitbucket reporter (drops the ISC-only dep). License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml # Strips reviewdog's Bitbucket Code Insights reporter, whose # github.com/reviewdog/go-bitbucket dependency ships no LICENSE and so cannot be # vendored for the offline build. Applied here and at vendor time (see the toml). Patch0: reviewdog-strip-bitbucket.patch BuildRequires: go-vendor-tools %description %{summary}. reviewdog reads compiler and linter results from stdin and posts them as review comments or check annotations, filtered to lines touched by a diff. %prep %goprep -p1 tar -xf %{S:1} # Patch0 drops the reporter's imports and deps; remove its package too so the # offline build/test never compiles the now-absent go-bitbucket dependency. rm -rf service/bitbucket %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X %{goipath}/commands.Version=%{version}" %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check # Go unit tests need git, a .git checkout (absent from the tarball), and network # CI-env probes, so they can't run offline; the license check is the smoke here. %go_vendor_license_check -c %{S:2} %files -f %{go_vendor_license_filelist} %doc README.md CHANGELOG.md %{_bindir}/reviewdog %changelog * Thu Jun 25 2026 Bahtiar `kalkin-` Gadimov - 0.21.0-1 - Initial package