Files
go-github-tailscale-hujson/go-github-tailscale-hujson.spec
2026-07-15 14:55:00 +08:00

46 lines
1.6 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 hujson
%define go_import_path github.com/tailscale/hujson
# Upstream does not publish version tags for this module; use the commit
# selected by the Go pseudo-version needed by dependents.
%define commit_id ecc657c15afd
Name: go-github-tailscale-hujson
Version: 0.0.0+git20260302.ecc657c
Release: %autorelease
Summary: Go library packaged for syft dependency resolution
License: BSD-3-Clause
URL: https://github.com/tailscale/hujson
#!RemoteAsset: sha256:01816ec78930c869382f706d55a6375febdeb5c5108e9671bd3dd28ddb5964f8
Source0: %{url}/archive/ecc657c15afd.tar.gz#/%{_name}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: golangmodules
BuildOption(prep): -n %{_name}-ecc657c15afd
BuildRequires: go
BuildRequires: go-rpm-macros
BuildRequires: go(github.com/google/go-cmp)
BuildRequires: go(github.com/hexops/gotextdiff)
# cmd/hujsonfmt is checked in GOPATH mode and imports gotextdiff.
BuildRequires: go(github.com/hexops/gotextdiff)
Provides: go(github.com/tailscale/hujson) = %{version}
Requires: go(github.com/hexops/gotextdiff)
%description
Go library packaged for syft dependency resolution.
%files
%license LICENSE*
%doc README*
%{go_sys_gopath}/%{go_import_path}
%changelog
%{?autochangelog}