From 68307d99153d75b4be327d6c9705b8751491196c Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Tue, 22 Aug 2023 00:52:41 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ s5cmd.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .abf.yml create mode 100644 s5cmd.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..57a2a0f --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + s5cmd-2.2.0.tar.gz: 5ad5f3fb32183c9e8cfe2cdb575981ba5fd019e1 diff --git a/s5cmd.spec b/s5cmd.spec new file mode 100644 index 0000000..04883f0 --- /dev/null +++ b/s5cmd.spec @@ -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} +