82 lines
3.0 KiB
RPMSpec
82 lines
3.0 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 go-diskfs
|
|
%define go_import_path github.com/diskfs/go-diskfs
|
|
# TODO: Package missing source dependencies later: github.com/anchore/go-lzo,
|
|
# github.com/djherbis/times, and github.com/elliotwutingfeng/asciiset.
|
|
# Exclude affected filesystem subpackages for now so the source package can build.
|
|
%define go_test_exclude %{shrink:
|
|
%{go_import_path}
|
|
%{go_import_path}/disk
|
|
%{go_import_path}/examples
|
|
%{go_import_path}/examples/create-iso-from-folder
|
|
%{go_import_path}/examples/serve-image
|
|
%{go_import_path}/filesystem/fat12
|
|
%{go_import_path}/filesystem/fat16
|
|
%{go_import_path}/filesystem/fat32
|
|
%{go_import_path}/filesystem/ext4
|
|
%{go_import_path}/filesystem/iso9660
|
|
%{go_import_path}/filesystem/squashfs
|
|
%{go_import_path}/sync
|
|
}
|
|
|
|
Name: go-github-diskfs-go-diskfs
|
|
Version: 1.9.3
|
|
Release: %autorelease
|
|
Summary: Go library packaged for syft dependency resolution
|
|
License: MIT
|
|
URL: https://github.com/diskfs/go-diskfs
|
|
#!RemoteAsset: sha256:5969796a0cb4629b4ada5e98c7b1c424717b886e3fed42deae093a912881b714
|
|
Source0: %{url}/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildSystem: golangmodules
|
|
|
|
BuildOption(prep): -n %{_name}-%{version}
|
|
|
|
BuildRequires: go
|
|
BuildRequires: go-rpm-macros
|
|
BuildRequires: go(github.com/anchore/go-lzo)
|
|
BuildRequires: go(github.com/djherbis/times)
|
|
BuildRequires: go(github.com/elliotwutingfeng/asciiset)
|
|
BuildRequires: go(github.com/go-test/deep)
|
|
BuildRequires: go(github.com/google/go-cmp)
|
|
BuildRequires: go(github.com/google/uuid)
|
|
BuildRequires: go(github.com/klauspost/compress)
|
|
BuildRequires: go(github.com/pierrec/lz4/v4)
|
|
BuildRequires: go(github.com/pkg/xattr)
|
|
BuildRequires: go(github.com/sirupsen/logrus)
|
|
BuildRequires: go(github.com/ulikunitz/xz)
|
|
BuildRequires: go(golang.org/x/sys)
|
|
|
|
Provides: go(github.com/diskfs/go-diskfs) = %{version}
|
|
|
|
Requires: go(github.com/anchore/go-lzo)
|
|
Requires: go(github.com/djherbis/times)
|
|
Requires: go(github.com/elliotwutingfeng/asciiset)
|
|
Requires: go(github.com/google/uuid)
|
|
Requires: go(github.com/klauspost/compress)
|
|
Requires: go(github.com/pierrec/lz4/v4)
|
|
Requires: go(github.com/pkg/xattr)
|
|
Requires: go(github.com/sirupsen/logrus)
|
|
Requires: go(github.com/ulikunitz/xz)
|
|
Requires: go(golang.org/x/sys)
|
|
|
|
%description
|
|
Go library packaged for syft dependency resolution.
|
|
|
|
# Remove bundled x86_64 squashfs test tools from the noarch Go source package.
|
|
%install -a
|
|
tools_dir=%{buildroot}%{go_sys_gopath}/%{go_import_path}/filesystem/squashfs/testdata/tools
|
|
rm -f "${tools_dir}/mksquashfs" "${tools_dir}/unsquashfs"
|
|
|
|
%files
|
|
%license LICENSE*
|
|
%{go_sys_gopath}/%{go_import_path}
|
|
|
|
%changelog
|
|
%autochangelog
|