commit bbc80942e725de84294a0bb650d3f12672735ace Author: Elan Ruusamäe <g...@delfi.ee> Date: Thu Sep 22 15:35:07 2016 +0300
up to RELEASE.2016-09-11T17-42-18Z, builds now minio.spec | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) --- diff --git a/minio.spec b/minio.spec index 32632b3..7fc3f63 100644 --- a/minio.spec +++ b/minio.spec @@ -1,4 +1,4 @@ -%define tag RELEASE.2016-03-21T21-08-51Z +%define tag RELEASE.2016-09-11T17-42-18Z %define subver %(echo %{tag} | sed -e 's/[^0-9]//g') %define rel 0.1 Summary: Cloud Storage Server @@ -7,8 +7,8 @@ Version: 1.1.0 Release: 0.%{subver}.%{rel} License: Apache v2.0 Group: Development/Building -Source0: https://github.com/minio/minio/archive/RELEASE.2016-03-21T21-08-51Z.tar.gz -# Source0-md5: - +Source0: https://github.com/minio/minio/archive/%{tag}.tar.gz +# Source0-md5: 30cd2627a897a1ef52439fcd399f068b URL: https://www.minio.io/ BuildRequires: golang >= 1.6 ExclusiveArch: %{ix86} %{x8664} %{arm} @@ -17,6 +17,8 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # go stuff %define _enable_debug_packages 0 %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; +%define gopath %{_libdir}/golang +%define import_path github.com/minio/minio %description Minio is an object storage server written in Golang. Minio server, @@ -26,20 +28,20 @@ service. %prep %setup -qc -# https://github.com/minio/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository -GOPATH=$(pwd)/go -mkdir -p $GOPATH/src/github.com/minio -mv minio-* $GOPATH/src/github.com/minio/minio +mv %{name}-*/* . + +install -d src/$(dirname %{import_path}) +ln -s ../../.. src/%{import_path} %build -export GOPATH=$(pwd)/go +export GOPATH=$(pwd) export GOROOT=%{_libdir}/golang -cd go/src/github.com/minio/minio -> buildscripts/checkgopath.sh -%{__make} +%gobuild -o %{name} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sbindir} +install -p %{name} $RPM_BUILD_ROOT%{_sbindir} %clean rm -rf $RPM_BUILD_ROOT @@ -47,3 +49,4 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.md +%attr(755,root,root) %{_sbindir}/minio ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/minio.git/commitdiff/bbc80942e725de84294a0bb650d3f12672735ace _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit