SPECS: Add go-github-github-go-spdx-v2
Signed-off-by: Jvle <keke.oerv@isrc.iscas.ac.cn>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Jvle <keke.oerv@isrc.iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%define _name go-spdx
|
||||
%define go_import_path github.com/github/go-spdx/v2
|
||||
|
||||
Name: go-github-github-go-spdx-v2
|
||||
Version: 2.7.0
|
||||
Release: %autorelease
|
||||
Summary: Go library packaged for syft dependency resolution
|
||||
License: MIT
|
||||
URL: https://github.com/github/go-spdx
|
||||
#!RemoteAsset: sha256:a6954d98e4c6e6f6e416c771037caac7a61affdc3f4203c32870700816db793f
|
||||
Source0: %{url}/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/davecgh/go-spew)
|
||||
BuildRequires: go(github.com/inconshreveable/mousetrap)
|
||||
BuildRequires: go(github.com/pmezard/go-difflib)
|
||||
BuildRequires: go(github.com/spf13/cobra)
|
||||
BuildRequires: go(github.com/spf13/pflag)
|
||||
BuildRequires: go(github.com/stretchr/testify)
|
||||
BuildRequires: go(gopkg.in/yaml.v3)
|
||||
|
||||
Provides: go(github.com/github/go-spdx/v2) = %{version}
|
||||
|
||||
Requires: go(github.com/davecgh/go-spew)
|
||||
Requires: go(github.com/inconshreveable/mousetrap)
|
||||
Requires: go(github.com/pmezard/go-difflib)
|
||||
Requires: go(github.com/spf13/cobra)
|
||||
Requires: go(github.com/spf13/pflag)
|
||||
Requires: go(github.com/stretchr/testify)
|
||||
Requires: go(gopkg.in/yaml.v3)
|
||||
|
||||
%description
|
||||
Go library packaged for syft dependency resolution.
|
||||
|
||||
%files
|
||||
%license LICENSE*
|
||||
%{go_sys_gopath}/%{go_import_path}
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user