mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-05-13 10:23:41 +00:00
SPECS: Add go-uber-atomic
Signed-off-by: Julian Zhu <julian.oerv@isrc.iscas.ac.cn>
This commit is contained in:
38
SPECS/go-uber-atomic/go-uber-atomic.spec
Normal file
38
SPECS/go-uber-atomic/go-uber-atomic.spec
Normal file
@@ -0,0 +1,38 @@
|
||||
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Julian Zhu <julian.oerv@isrc.iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%define _name atomic
|
||||
%define go_import_path go.uber.org/atomic
|
||||
|
||||
Name: go-uber-atomic
|
||||
Version: 1.11.0
|
||||
Release: %autorelease
|
||||
Summary: Wrapper types for sync/atomic which enforce atomic access
|
||||
License: MIT
|
||||
URL: https://github.com/uber-go/atomic
|
||||
#!RemoteAsset
|
||||
Source0: https://github.com/uber-go/atomic/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildSystem: golangmodules
|
||||
|
||||
BuildOption(prep): -n %{_name}-%{version}
|
||||
|
||||
BuildRequires: go
|
||||
BuildRequires: go-rpm-macros
|
||||
BuildRequires: go(github.com/stretchr/testify)
|
||||
|
||||
Provides: go(go.uber.org/atomic) = %{version}
|
||||
|
||||
%description
|
||||
Simple wrappers for primitive types to enforce atomic access.
|
||||
|
||||
%files
|
||||
%license LICENSE*
|
||||
%doc README*
|
||||
%{go_sys_gopath}/%{go_import_path}
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
Reference in New Issue
Block a user