1 %define tag RELEASE.2016-08-21T03-02-49Z
2 %define subver %(echo %{tag} | sed -e 's/[^0-9]//g')
3 Summary: Minio Client: commands for filesystems and object storage
9 Source0: https://github.com/minio/mc/archive/%{tag}.tar.gz
10 # Source0-md5: 5d8c632198d83735966c62c38094544c
11 URL: https://github.com/minio/mc
12 BuildRequires: golang >= 1.3.1
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _enable_debug_packages 0
16 %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
17 %define import_path github.com/minio/mc
20 Minio Client (mc) provides a modern alternative to UNIX commands like
21 ls, cat, cp, mirror, diff etc. It supports filesystems and Amazon S3
22 compatible cloud storage service (AWS Signature v2 and v4).
28 install -d src/$(dirname %{import_path})
29 ln -s ../../.. src/%{import_path}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_bindir}
39 install -p mc $RPM_BUILD_ROOT%{_bindir}
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/mc