# Generated by go2rpm 1.8.1 %bcond_without check # https://github.com/moby/swarmkit %global goipath github.com/moby/swarmkit/v2 %global forgeurl https://github.com/moby/swarmkit Version: 2.0.0 %global commit 139c54b5dae310e6cb74d18c85dc06393aa1bac1 %gometa -f %global common_description %{expand: A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.} %global golicenses LICENSE %global godocs BUILDING.md CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease -p -e pre1 Summary: Toolkit for orchestrating distributed systems at any scale License: Apache-2.0 URL: %{gourl} Source: %{gosource} Patch0: 0001-Convert-BasicKeyRequest-to-KeyRequest-to-use-cloudfl.patch BuildRequires: golang(github.com/docker/libkv) BuildRequires: golang(github.com/docker/libkv/store) BuildRequires: golang(github.com/ishidawataru/sctp) BuildRequires: golang(github.com/phayes/permbits) %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check for test in "TestValidateCAConfigValidValues" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d ca -d manager/csi -d manager/orchestrator/jobs/replicated -d manager/scheduler %endif %files %license LICENSE %doc BUILDING.md CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog