Blame packages/m/minio-client/minio-client.spec

109ebe
#
18be72
# spec file for package minio-client
109ebe
#
9ce041
# Copyright (c) 2023 SUSE LLC
109ebe
#
109ebe
# All modifications and additions to the file contributed by third parties
109ebe
# remain the property of their copyright owners, unless otherwise agreed
109ebe
# upon. The license for this file, and modifications and additions to the
109ebe
# file, is the same license as for the pristine package itself (unless the
109ebe
# license for the pristine package is not an Open Source License, in which
109ebe
# case the license is the MIT License). An "Open Source License" is a
109ebe
# license that conforms to the Open Source Definition (Version 1.9)
109ebe
# published by the Open Source Initiative.
109ebe
109ebe
# Please submit bugfixes or comments via https://bugs.opensuse.org/
109ebe
#
109ebe
109ebe
109ebe
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
109ebe
109ebe
%define archive_name mc
109ebe
%define binary_name minio-client
109ebe
109ebe
Name:           minio-client
Bernhard M. Wiedemann 514c2a
Version:        20230128T202938Z
109ebe
Release:        0
109ebe
Summary:        Client for MinIO
18be72
License:        AGPL-3.0-only
109ebe
URL:            https://github.com/minio/mc
109ebe
Source:         %{archive_name}-%{version}.tar.gz
109ebe
Source1:        vendor.tar.gz
541f49
BuildRequires:  go >= 1.18
109ebe
109ebe
%description
18be72
MinIO Client is a replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage.
109ebe
109ebe
Please note: In contrast to upstream this package provides the executable as `minio-client`.
109ebe
109ebe
%prep
109ebe
%setup -q -n %{archive_name}-%{version}
109ebe
%setup -q -n %{archive_name}-%{version} -T -D -a 1
109ebe
109ebe
%build
109ebe
go build \
109ebe
   -mod=vendor \
109ebe
   -buildmode=pie \
109ebe
   -trimpath -tags kqueue \
109ebe
   -ldflags="-s -w -X github.com/minio/mc/cmd.Version=%{version} \
109ebe
	-X github.com/minio/mc/cmd.ReleaseTag=%{version}" \
109ebe
   -o bin/%{binary_name}
109ebe
109ebe
%install
109ebe
# Install the binary.
109ebe
install -D -m 0755 bin/%{binary_name} "%{buildroot}/%{_bindir}/%{binary_name}"
109ebe
109ebe
%files
109ebe
%doc README.md
109ebe
%license LICENSE
109ebe
%{_bindir}/%{binary_name}
109ebe
109ebe
%changelog