# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/vektra/mockery %global goipath github.com/vektra/mockery/v3 %global forgeurl https://github.com/vektra/mockery Version: 3.7.4 %gometa -L -f Name: mockery Release: %autorelease Summary: A mock code autogenerator for Go # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-3.0 AND GPL-3.0-only AND ISC AND MIT AND MPL-2.0 AND OFL-1.1 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 A mock code autogenerator for Go. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/mockery %{goipath} %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} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs CODE_OF_CONDUCT.md CONTRIBUTING.md README.md %{_bindir}/mockery %changelog %autochangelog