Blob Blame Raw
# Generated by go2rpm
%bcond_without check
%bcond_with bootstrap

# https://github.com/docker/compose-on-kubernetes
%global goipath         github.com/docker/compose-on-kubernetes
Version:                0.4.23

%gometa

%global goipaths0       github.com/docker/compose-on-kubernetes
%global goipathsex0     github.com/docker/compose-on-kubernetes/cmd/compose-controller github.com/docker/compose-on-kubernetes/internal/parsing github.com/docker/compose-on-kubernetes/internal/conversions

%if %{without bootstrap}
%global goipaths1       github.com/docker/compose-on-kubernetes/cmd/compose-controller github.com/docker/compose-on-kubernetes/internal/parsing github.com/docker/compose-on-kubernetes/internal/conversions
%endif

%global common_description %{expand:
Deploy applications described in Compose onto Kubernetes clusters.}

%global golicenses      LICENSE
%global godocs          docs CONTRIBUTING.md README.md

Name:           %{goname}
Release:        2%{?dist}
Summary:        Deploy applications described in Compose onto Kubernetes clusters

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
# Use healthz.InstallHandler instead of DefaultHealthz
Patch0:         0001-Use-healthz.InstallHandler-instead-of-DefaultHealthz.patch

BuildRequires:  golang(github.com/containerd/console)
%if %{without bootstrap}
BuildRequires:  golang(github.com/docker/cli/cli/compose/loader)
BuildRequires:  golang(github.com/docker/cli/cli/compose/types)
BuildRequires:  golang(github.com/docker/cli/opts)
%endif
BuildRequires:  golang(github.com/docker/docker/api/types/swarm)
BuildRequires:  golang(github.com/docker/docker/pkg/homedir)
BuildRequires:  golang(github.com/go-openapi/spec)
BuildRequires:  golang(github.com/golang/glog)
BuildRequires:  golang(github.com/Masterminds/semver)
BuildRequires:  golang(github.com/mitchellh/go-homedir)
BuildRequires:  golang(github.com/morikuni/aec)
BuildRequires:  golang(github.com/onsi/ginkgo)
BuildRequires:  golang(github.com/pkg/errors)
BuildRequires:  golang(github.com/simonferquel/yaml)
BuildRequires:  golang(github.com/sirupsen/logrus)
BuildRequires:  golang(github.com/spf13/cobra)
BuildRequires:  golang(github.com/spf13/pflag)
BuildRequires:  golang(golang.org/x/sync/errgroup)
BuildRequires:  golang(k8s.io/api/apps/v1beta2)
BuildRequires:  golang(k8s.io/api/core/v1)
BuildRequires:  golang(k8s.io/api/rbac/v1)
BuildRequires:  golang(k8s.io/api/storage/v1)
BuildRequires:  golang(k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1)
BuildRequires:  golang(k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset)
BuildRequires:  golang(k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1)
BuildRequires:  golang(k8s.io/apimachinery/pkg/api/equality)
BuildRequires:  golang(k8s.io/apimachinery/pkg/api/errors)
BuildRequires:  golang(k8s.io/apimachinery/pkg/api/meta)
BuildRequires:  golang(k8s.io/apimachinery/pkg/api/resource)
BuildRequires:  golang(k8s.io/apimachinery/pkg/apis/meta/v1)
BuildRequires:  golang(k8s.io/apimachinery/pkg/apis/meta/v1beta1)
BuildRequires:  golang(k8s.io/apimachinery/pkg/conversion)
BuildRequires:  golang(k8s.io/apimachinery/pkg/fields)
BuildRequires:  golang(k8s.io/apimachinery/pkg/labels)
BuildRequires:  golang(k8s.io/apimachinery/pkg/runtime)
BuildRequires:  golang(k8s.io/apimachinery/pkg/runtime/schema)
BuildRequires:  golang(k8s.io/apimachinery/pkg/runtime/serializer)
BuildRequires:  golang(k8s.io/apimachinery/pkg/types)
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/errors)
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/intstr)
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/sets)
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/validation)
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/validation/field)
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/wait)
BuildRequires:  golang(k8s.io/apimachinery/pkg/version)
BuildRequires:  golang(k8s.io/apimachinery/pkg/watch)
BuildRequires:  golang(k8s.io/apiserver/pkg/endpoints/openapi)
BuildRequires:  golang(k8s.io/apiserver/pkg/endpoints/request)
BuildRequires:  golang(k8s.io/apiserver/pkg/registry/generic)
BuildRequires:  golang(k8s.io/apiserver/pkg/registry/generic/registry)
BuildRequires:  golang(k8s.io/apiserver/pkg/registry/rest)
BuildRequires:  golang(k8s.io/apiserver/pkg/server)
BuildRequires:  golang(k8s.io/apiserver/pkg/server/filters)
BuildRequires:  golang(k8s.io/apiserver/pkg/server/healthz)
BuildRequires:  golang(k8s.io/apiserver/pkg/server/options)
BuildRequires:  golang(k8s.io/apiserver/pkg/storage)
BuildRequires:  golang(k8s.io/apiserver/pkg/storage/names)
BuildRequires:  golang(k8s.io/client-go/discovery)
BuildRequires:  golang(k8s.io/client-go/informers/apps/v1beta2)
BuildRequires:  golang(k8s.io/client-go/informers/core/v1)
BuildRequires:  golang(k8s.io/client-go/kubernetes)
BuildRequires:  golang(k8s.io/client-go/kubernetes/typed/apps/v1beta2)
BuildRequires:  golang(k8s.io/client-go/kubernetes/typed/core/v1)
BuildRequires:  golang(k8s.io/client-go/kubernetes/typed/rbac/v1)
BuildRequires:  golang(k8s.io/client-go/kubernetes/typed/storage/v1)
BuildRequires:  golang(k8s.io/client-go/plugin/pkg/client/auth/gcp)
BuildRequires:  golang(k8s.io/client-go/rest)
BuildRequires:  golang(k8s.io/client-go/tools/cache)
BuildRequires:  golang(k8s.io/client-go/tools/clientcmd)
BuildRequires:  golang(k8s.io/client-go/util/cert)
BuildRequires:  golang(k8s.io/client-go/util/flowcontrol)
BuildRequires:  golang(k8s.io/client-go/util/keyutil)
BuildRequires:  golang(k8s.io/component-base/logs)
BuildRequires:  golang(k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1)
BuildRequires:  golang(k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/typed/apiregistration/v1beta1)
BuildRequires:  golang(k8s.io/kube-openapi/pkg/common)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
BuildRequires:  golang(k8s.io/apiserver/pkg/authentication/user)
BuildRequires:  golang(k8s.io/client-go/kubernetes/fake)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep
%patch0 -p1
find . -name "*.go" -exec sed -i "s|gopkg.in/yaml.v2|github.com/simonferquel/yaml|" "{}" +;

%if %{without bootstrap}
%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif

%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif

%if %{with check}
%check
%if %{with bootstrap}
%gocheck -t cmd \
         -d internal/parsing \
         -d internal/conversions \
         -d install \
         -d internal/apiserver \
         -d internal/registry
%else
%gocheck -d internal/registry
%endif
%endif

%if %{without bootstrap}
%files
%license LICENSE
%doc docs CONTRIBUTING.md README.md
%{_bindir}/*
%endif

%gopkgfiles

%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Tue Jul 09 23:04:19 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.4.23-1
- Release 0.4.23

* Sat May 04 19:11:24 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.4.22-1
- Initial package