1 %define tag RELEASE.2016-03-21T21-08-51Z
2 %define subver %(echo %{tag} | sed -e 's/[^0-9]//g')
4 Summary: Cloud Storage Server
7 Release: 0.%{subver}.%{rel}
9 Group: Development/Building
10 Source0: https://github.com/minio/minio/archive/RELEASE.2016-03-21T21-08-51Z.tar.gz
12 URL: https://www.minio.io/
13 BuildRequires: golang >= 1.6
14 ExclusiveArch: %{ix86} %{x8664} %{arm}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _enable_debug_packages 0
19 %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
22 Minio is an object storage server written in Golang. Minio server,
23 client and SDK are API compatible with Amazon S3 cloud storage
29 # https://github.com/minio/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository
31 mkdir -p $GOPATH/src/github.com/minio
32 mv minio-* $GOPATH/src/github.com/minio/minio
35 export GOPATH=$(pwd)/go
36 export GOROOT=%{_libdir}/golang
37 cd go/src/github.com/minio/minio
38 > buildscripts/checkgopath.sh
42 rm -rf $RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)