# Generated by go2rpm 1.10.0 %bcond_with check %global gomodulesmode GO111MODULE=on # https://github.com/docker/buildx %global goipath github.com/docker/buildx Version: 0.17.1 %gometa -f %global goname docker-buildx %global common_description %{expand: Docker CLI plugin for extended build capabilities with BuildKit.} %global golicenses LICENSE %global godocs docs AUTHORS README.md Name: docker-buildx Release: %autorelease Summary: Docker CLI plugin for extended build capabilities with BuildKit License: Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: git-core %description %{common_description} %prep %goprep -k %autopatch -p1 %build export LDFLAGS="-X github.com/docker/buildx/version.Version=%{version}" for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install install -Dm0755 %{gobuilddir}/bin/buildx %{buildroot}%{_libexecdir}/docker/cli-plugins/docker-buildx %if %{with check} %check %gocheck %endif %files %license LICENSE vendor/modules.txt %doc docs AUTHORS README.md %{_libexecdir}/docker/ %changelog %autochangelog