From f5328c116688c8155f865109c19dc2e528886601 Mon Sep 17 00:00:00 2001 From: Jvle Date: Fri, 10 Jul 2026 11:14:36 +0800 Subject: [PATCH] SPECS: Add go-github-rust-secure-code-go-rustaudit Signed-off-by: Jvle --- go-github-rust-secure-code-go-rustaudit.spec | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 go-github-rust-secure-code-go-rustaudit.spec diff --git a/go-github-rust-secure-code-go-rustaudit.spec b/go-github-rust-secure-code-go-rustaudit.spec new file mode 100644 index 0000000..d7dc0f4 --- /dev/null +++ b/go-github-rust-secure-code-go-rustaudit.spec @@ -0,0 +1,42 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: Jvle +# +# 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}