SPECS: Add go-github-moby-sys-mountinfo

Signed-off-by: Jvle <keke.oerv@isrc.iscas.ac.cn>
This commit is contained in:
Jvle
2026-07-19 19:40:59 +08:00
commit 4b59bf4cf8
+51
View File
@@ -0,0 +1,51 @@
# 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 sys
%define go_import_path github.com/moby/sys/mountinfo
%define go_source_subdir mountinfo
Name: go-github-moby-sys-mountinfo
Version: 0.7.2
Release: %autorelease
Summary: Package mountinfo provides a set of functions to retrieve information about OS mounts.
License: Apache-2.0
URL: https://github.com/moby/sys
#!RemoteAsset: sha256:3505ad4d1b6233ec11b81d59e22042605b2c3156c9a81b4a37e8679d7b35bf79
Source0: https://github.com/moby/sys/archive/refs/tags/mountinfo/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: golangmodules
BuildRequires: go
BuildRequires: go-rpm-macros
BuildRequires: go(golang.org/x/sys)
Provides: go(github.com/moby/sys/mountinfo) = %{version}
Requires: go(golang.org/x/sys)
%description
Package mountinfo provides a set of functions to retrieve information about OS mounts.
%install
# This package owns a Go module below the repository root; install and test
# only the mountinfo subtree so it maps to %{go_import_path}. - Jvle
pushd %{go_source_subdir}
%buildsystem_golangmodules_install
popd
%check
pushd %{go_source_subdir}
%buildsystem_golangmodules_check -vet=off
popd
%files
%license LICENSE*
%{go_sys_gopath}/%{go_import_path}
%changelog
%autochangelog