# # spec file for package golang-uber-mockgen # # Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: golang-uber-mockgen Version: 0.5.2 Release: 0 Summary: Generator mockgen from the Uber fork of the gomock mocking framework for Golang License: Apache-2.0 URL: https://github.com/uber-go/mock Source: mock-%{version}.tar.xz Source1: vendor.tar.zst BuildRequires: golang-packaging BuildRequires: zstd %description Generator mockgen from the gomock Uber fork. gomock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other contexts too. This project originates from Google's golang/mock repo. Unfortunately, Google no longer maintains this project, and given the heavy usage of gomock project within Uber, we've decided to fork and maintain this going forward at Uber. %prep %autosetup -p1 -C -a1 %build cd mockgen go build -mod=vendor -buildmode=pie find %install install -D -m0755 mockgen/mockgen %{buildroot}%{_bindir}/mockgen %check cd mockgen go test %files %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/mockgen