commit 4b59bf4cf8e825decb738ba3ca5bd4e6710ccdd1 Author: Jvle Date: Fri Jul 10 11:14:36 2026 +0800 SPECS: Add go-github-moby-sys-mountinfo Signed-off-by: Jvle diff --git a/go-github-moby-sys-mountinfo.spec b/go-github-moby-sys-mountinfo.spec new file mode 100644 index 0000000..389651c --- /dev/null +++ b/go-github-moby-sys-mountinfo.spec @@ -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 +# +# 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