Initial commit for rpm package golang-uber-mockgen

This commit is contained in:
Jan Zerebecki
2025-07-08 15:13:51 +02:00
commit f62946ccf6
8 changed files with 126 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*.changes merge=merge-changes

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.obscpio
*.osc

26
_service Normal file
View File

@@ -0,0 +1,26 @@
<services>
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/uber-go/mock</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="filename">mock</param>
<!-- <param name="subdir">mockgen</param> -->
<param name="match-tag">v*</param>
<param name="revision">v0.5.2</param>
<param name="versionformat">@PARENT_TAG@</param>
<!--
<param name="versionformat">@PARENT_TAG@.git@TAG_OFFSET@.%h</param>
-->
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual"/>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="go_modules" mode="manual">
<param name="archive">mock-*.tar.xz</param>
<param name="compression">zst</param>
</service>
</services>

4
_servicedata Normal file
View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/uber-go/mock</param>
<param name="changesrevision">0b8095f698fe3b6414a8d1321e990100ba8ce5bc</param></service></servicedata>

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Jul 9 17:51:25 UTC 2025 - Jan Zerebecki <jan.suse@zerebecki.de>
- Initial package golang-uber-mockgen with version 0.5.2

61
golang-uber-mockgen.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# 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

BIN
mock-0.5.2.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
vendor.tar.zst (Stored with Git LFS) Normal file

Binary file not shown.