Files
go-github-deitch-magic/go-github-deitch-magic.spec
2026-07-15 14:54:58 +08:00

40 lines
1.3 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 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
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