# Generated by go2rpm 1.15.0 %bcond check 1 %bcond bootstrap 1 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/jacobsa/oglemock %global goipath github.com/jacobsa/oglemock %global commit e94d794d06ffc6de42cb19d0dab3c219efdd6dcf %gometa -L -f %global common_description %{expand: A mocking framework for Go inspired by Google Mock for C++ and Google JS Test.} %global golicenses LICENSE %global godocs README.md Name: golang-github-jacobsa-oglemock Version: 0 Release: %autorelease -p Summary: A mocking framework for Go inspired by Google Mock for C++ and Google JS Test License: Apache-2.0 URL: %{gourl} Source: %{gosource} # Patch test output # Author: Brian (bex) Exelbierd Patch1: https://releases.pagure.org/p4p4j0hn/rpmspecs/0001-Patch-test-output.patch # Turn off the unknownInterface test # Author: Brian (bex) Exelbierd Patch2: https://releases.pagure.org/p4p4j0hn/rpmspecs/0002-Turn-off-the-unknownInterface-test.patch %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in createmock; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{gopath}/%{goipath}/sample install -m 0755 -vp %{gobuilddir}/src/%{goipath}/sample/README.markdown %{buildroot}%{gopath}/%{goipath}/sample/ install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc README.md %{_bindir}/* %{gopath}/%{goipath}/sample/README.markdown %endif %gopkgfiles %changelog %autochangelog