## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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.14.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/uber/mock %global goipath go.uber.org/mock %global forgeurl https://github.com/uber/mock Version: 0.5.0 %gometa -L -f %global common_description %{expand: GoMock is a mocking framework for the Go programming language.} %global golicenses LICENSE %global godocs AUTHORS CHANGELOG.md README.md Name: golang-uber-mock Release: %autorelease Summary: Mocking framework for the Go programming language License: Apache-2.0 URL: %{gourl} Source: %{gosource} %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 mockgen; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check for test in "Test_packageModeParser_parsePackage" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc AUTHORS CHANGELOG.md README.md %{_bindir}/mockgen %endif %gopkgfiles %changelog ## START: Generated by rpmautospec * Fri Aug 15 2025 Maxwell G - 0.5.0-5 - Rebuild for golang-1.25.0 * Thu Jul 24 2025 Fedora Release Engineering - 0.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jan 17 2025 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Oct 19 2024 Mikel Olasagasti Uranga - 0.5.0-2 - Update to 0.5.0 - Closes rhbz#2319573 * Sat Oct 19 2024 Mikel Olasagasti Uranga - 0.5.0-1 - Update to 0.5.0 - Closes rhbz#2319573 * Thu Jul 18 2024 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Mar 23 2024 Mikel Olasagasti Uranga - 0.4.0-1 - Update to 0.4.0 - Closes rhbz#2271191 rhbz#2248367 * Sun Feb 11 2024 Maxwell G - 0.2.0-4 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 26 2023 Mikel Olasagasti Uranga - 0.2.0-1 - Initial package - Closes rhbz#2223773 ## END: Generated by rpmautospec