# Generated by go2rpm 1.17.1 %bcond check 1 # https://github.com/checkmake/checkmake %global goipath github.com/checkmake/checkmake Version: 0.2.2 %global tag 0.2.2 %global commit 723c897a3cc9693f1db8ede3714ed63f926d280f %gometa -L -f Name: checkmake Release: %autorelease Summary: Linter/analyzer for Makefiles # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description Linter/analyzer for Makefiles. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on make %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp checkmake %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs CHANGELOG.md CODE_OF_CONDUCT.md README.md %doc man/man1/checkmake.1.md %{_bindir}/checkmake %changelog %autochangelog