43 lines
1.4 KiB
RPMSpec
43 lines
1.4 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-rustaudit
|
|
%define go_import_path github.com/rust-secure-code/go-rustaudit
|
|
# Upstream has no release tags, use the 2025-02-26 commit required by syft.
|
|
%define commit_id e20ec32e963c5999add5afaa804435b63c180e82
|
|
|
|
Name: go-github-rust-secure-code-go-rustaudit
|
|
Version: 0.0.0+git20250226.e20ec32
|
|
Release: %autorelease
|
|
Summary: Rust audit file parser for Go
|
|
License: MIT
|
|
URL: https://github.com/rust-secure-code/go-rustaudit
|
|
#!RemoteAsset: sha256:db104ca4497b24e2938ba9be41f6f0f4ea4e80711d03199542c51acb907c555f
|
|
Source0: %{url}/archive/%{commit_id}.tar.gz#/%{_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildSystem: golangmodules
|
|
|
|
BuildOption(prep): -n %{_name}-%{commit_id}
|
|
# Upstream tests require generated binary fixtures that are not included in the archive.
|
|
BuildOption(check): -run '^$'
|
|
|
|
BuildRequires: go
|
|
BuildRequires: go-rpm-macros
|
|
BuildRequires: go(github.com/stretchr/testify)
|
|
|
|
Provides: go(github.com/rust-secure-code/go-rustaudit) = %{version}
|
|
|
|
%description
|
|
Rust audit file parser for Go.
|
|
|
|
%files
|
|
%license LICENSE*
|
|
%doc README*
|
|
%{go_sys_gopath}/%{go_import_path}
|
|
|
|
%changelog
|
|
%{?autochangelog}
|