Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2023-08-22 00:52:41 +03:00
commit 68307d9915
2 changed files with 46 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
s5cmd-2.2.0.tar.gz: 5ad5f3fb32183c9e8cfe2cdb575981ba5fd019e1

44
s5cmd.spec Normal file
View file

@ -0,0 +1,44 @@
%define debug %nil
%define debug_package %nil
Name: s5cmd
Version: 2.2.0
Release: 1
Summary: Parallel S3 and local filesystem execution tool
URL: https://github.com/peak/s5cmd
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: MIT
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%description
s5cmd is a very fast S3 and local filesystem execution tool.
It comes with support for a multitude of operations
including tab completion and wildcard support for files,
which can be very handy for your object storage workflow
while working with large number of files.
%prep
%setup -q
sed -i 's/v0.0.0/%{version}/' version/version.go
sed -i 's/dev/ROSA/' version/version.go
%build
#make build
CGO_ENABLED=0 go build ${GCFLAGS} \
-ldflags "-s -w -X github.com/peak/s5cmd/version.Version=%{version} -X github.com/peak/s5cmd/version.GitCommit=%{vendor}" \
-mod=vendor .
upx %{name}
%install
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}