# Generated by go2rpm 1.8.0 %bcond_without check %global debug_package %{nil} # https://github.com/peak/s5cmd %global goipath github.com/peak/s5cmd %global commit d21a491f957016b4850fa88d8648e872ca7b8ee0 Version: 0 %gometa %global goname s5cmd %global common_description %{expand: Parallel S3 and local filesystem execution tool.} %global golicenses LICENSE %global godocs doc CONTRIBUTING.md CHANGELOG.md README.md Name: %{goname} Release: %autorelease -p Summary: Parallel S3 and local filesystem execution tool License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep # Remove vendored go within upstream's SCM rm -rf vendor/ %generate_buildrequires %go_generate_buildrequires %build export LDFLAGS="-s -w -X github.com/peak/s5cmd/version.Version=%{version} -X github.com/peak/s5cmd/version.GitCommit= " %gobuild -o %{gobuilddir}/bin/s5cmd %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check sed -i 's/"-mod=vendor", //' e2e/util_test.go %ifarch ppc64le for test in "TestRemoveS3ObjectsWithEmptyExcludeFilter" "TestListS3ObjectsWithEmptyExcludeFilter" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %endif %ifarch s390x for test in "TestSyncSingleS3ObjectToLocalTwice" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %endif %gocheck %endif %files %license LICENSE %doc doc CONTRIBUTING.md CHANGELOG.md README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog