Summary: Docker: the Linux container engine
Name: lxc-docker
Version: 0.6.3
-Release: 1
+Release: 2
License: Apache v2.0
Group: Applications/System
Source0: https://github.com/dotcloud/docker/archive/v%{version}/docker-%{version}.tar.gz
export GOPATH=$(pwd)/vendor
install -d build
cd build
-go build -v -a github.com/dotcloud/docker/docker
+VERSION=%{version}
+GITCOMMIT=%{release} # use RPM_PACKAGE_RELEASE for this
+# Use these flags when compiling the tests and final binary
+# without '-d', as that fails now
+LDFLAGS="-X main.GITCOMMIT $GITCOMMIT -X main.VERSION $VERSION -w"
+go build -v -ldflags "$LDFLAGS" -a github.com/dotcloud/docker/docker
%install
rm -rf $RPM_BUILD_ROOT