42 lines
1.2 KiB
RPMSpec
42 lines
1.2 KiB
RPMSpec
# 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-sync
|
|
%define go_import_path github.com/anchore/go-sync
|
|
|
|
Name: go-github-anchore-go-sync
|
|
Version: 0.1.1
|
|
Release: %autorelease
|
|
Summary: Go library packaged for syft dependency resolution
|
|
License: Apache-2.0
|
|
URL: https://github.com/anchore/go-sync
|
|
#!RemoteAsset: sha256:26a6ad73a40bbfba351d83e1a1e46551a7138b51f45545e8c4f827b38c2be1cb
|
|
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/stretchr/testify)
|
|
BuildRequires: go(golang.org/x/sync)
|
|
|
|
Provides: go(github.com/anchore/go-sync) = %{version}
|
|
|
|
Requires: go(golang.org/x/sync)
|
|
|
|
%description
|
|
Go library packaged for syft dependency resolution.
|
|
|
|
%files
|
|
%license LICENSE*
|
|
%doc README*
|
|
%{go_sys_gopath}/%{go_import_path}
|
|
|
|
%changelog
|
|
%autochangelog
|