Files
go-github-blakesmith-ar/go-github-blakesmith-ar.spec
2026-07-13 11:20:41 +08:00

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 ar
%define go_import_path github.com/blakesmith/ar
# Upstream is an older GOPATH-style library without go.mod or version tags.
# Pin the 2019-05-02 snapshot commit to match the pseudo-version reproducibly.
%define commit_id 809d4375e1fb5bb262c159fc3ec2e7a86a8bfd28
Name: go-github-blakesmith-ar
Version: 0+git20190502.809d437
Release: %autorelease
Summary: Go library for reading and writing ar archives
License: MIT
URL: https://github.com/blakesmith/ar
#!RemoteAsset: sha256:4e16785340ed0d9987c8793198e70b1a544515be7a1f916a746fde9af49e5c94
Source0: %{url}/archive/%{commit_id}.tar.gz#/%{_name}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: golangmodules
BuildOption(prep): -n %{_name}-%{commit_id}
# Upstream tests use old t.Errorf(err.Error()) calls that fail newer Go vet.
BuildOption(check): -vet=off
BuildRequires: go
BuildRequires: go-rpm-macros
Provides: go(github.com/blakesmith/ar) = %{version}
%description
This is a simple library for reading and writing ar files in common format.
%files
%license COPYING
%doc README*
%{go_sys_gopath}/%{go_import_path}
%changelog
%autochangelog