From 780871dfbf9c4efeff582aa091258c8093d64ddc Mon Sep 17 00:00:00 2001 From: Jvle Date: Fri, 10 Jul 2026 11:14:36 +0800 Subject: [PATCH] SPECS: Add go-github-deitch-magic Signed-off-by: Jvle --- go-github-deitch-magic.spec | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 go-github-deitch-magic.spec diff --git a/go-github-deitch-magic.spec b/go-github-deitch-magic.spec new file mode 100644 index 0000000..84ad828 --- /dev/null +++ b/go-github-deitch-magic.spec @@ -0,0 +1,40 @@ +# 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 magic +%define go_import_path github.com/deitch/magic +# Upstream has no release tags. Pin the 2023-04-04 snapshot used for the +# pseudo-version; newer upstream commits only update README usage text. +%define commit_id 1ff89d7342da + +Name: go-github-deitch-magic +Version: 0.0.0+git20230404.1ff89d7 +Release: %autorelease +Summary: Go library packaged for syft dependency resolution +License: Apache-2.0 +URL: https://github.com/deitch/magic +#!RemoteAsset: sha256:366489f9d3660af7cdf42caba6c11eb305e18d209c97bdda3fc5add78cf58cca +Source0: %{url}/archive/%{commit_id}.tar.gz#/%{_name}-%{version}.tar.gz +BuildArch: noarch +BuildSystem: golangmodules + +BuildOption(prep): -n %{_name}-%{commit_id} + +BuildRequires: go +BuildRequires: go-rpm-macros +BuildRequires: go(github.com/google/uuid) + +Provides: go(github.com/deitch/magic) = %{version} + +%description +Go library packaged for syft dependency resolution. + +%files +%license LICENSE* +%{go_sys_gopath}/%{go_import_path} + +%changelog +%autochangelog