33807ec
# Generated by go2rpm
33807ec
%bcond_without check
c372d4e
4ba2fe8
# https://github.com/google/cadvisor
33807ec
%global goipath         github.com/google/cadvisor
609fdfb
%global commit          2ccad4b42fe52b312f6d75a312c61a54fd123dc5
33807ec
Version:                0.33.1
4ba2fe8
33807ec
%gometa
e8aa896
ff5d89c
# Remove in F33
ff5d89c
%global godevelheader %{expand:
ff5d89c
Obsoletes:      cadvisor-devel < 0.22.2-10
ff5d89c
}
ff5d89c
33807ec
%global common_description %{expand:
e8aa896
cAdvisor (Container Advisor) provides container users an understanding of the
33807ec
resource usage and performance characteristics of their running containers. It
33807ec
is a running daemon that collects, aggregates, processes, and exports
e8aa896
information about running containers. Specifically, for each container it keeps
33807ec
resource isolation parameters, historical resource usage, histograms of complete
33807ec
historical resource usage and network statistics. This data is exported by
33807ec
container and machine-wide.
e8aa896
33807ec
cAdvisor has native support for Docker containers and should support just about
33807ec
any other container type out of the box. We strive for support across the board
33807ec
so feel free to open an issue if that is not the case. cAdvisor's container
33807ec
abstraction is based on lmctfy's so containers are inherently nested
33807ec
hierarchically.}
e8aa896
33807ec
%global golicenses      LICENSE
33807ec
%global godocs          docs AUTHORS CHANGELOG.md CONTRIBUTING.md README.md
956c85d
33807ec
Name:           cadvisor
8806c45
Release:        5%{?dist}
33807ec
Summary:        Analyzes resource usage and performance characteristics of running containers
4ba2fe8
33807ec
# Upstream license specification: Apache-2.0
33807ec
License:        ASL 2.0
33807ec
URL:            %{gourl}
33807ec
Source0:        %{gosource}
33807ec
Source1:        cadvisor
33807ec
Source2:        cadvisor.service
33807ec
# Use github.com/influxdata/influxdb1-client as influx client
33807ec
Patch0:         0001-Use-github.com-influxdata-influxdb1-client-as-influx.patch
33807ec
Patch1:         0001-Fix-for-using-with-newer-github.com-opencontainers-r.patch
33807ec
33807ec
BuildRequires:  git-core
33807ec
BuildRequires:  systemd
33807ec
BuildRequires:  glibc-static
33807ec
BuildRequires:  golang(cloud.google.com/go/compute/metadata)
33807ec
BuildRequires:  golang(github.com/abbot/go-http-auth)
33807ec
BuildRequires:  golang(github.com/aws/aws-sdk-go/aws)
33807ec
BuildRequires:  golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
33807ec
BuildRequires:  golang(github.com/aws/aws-sdk-go/aws/session)
33807ec
BuildRequires:  golang(github.com/blang/semver)
33807ec
BuildRequires:  golang(github.com/containerd/containerd/api/services/containers/v1)
33807ec
BuildRequires:  golang(github.com/containerd/containerd/api/services/tasks/v1)
33807ec
BuildRequires:  golang(github.com/containerd/containerd/api/services/version/v1)
33807ec
BuildRequires:  golang(github.com/containerd/containerd/containers)
609fdfb
BuildRequires:  golang(github.com/containerd/containerd/pkg/dialer)
33807ec
BuildRequires:  golang(github.com/containerd/containerd/errdefs)
33807ec
BuildRequires:  golang(github.com/containerd/containerd/namespaces)
33807ec
BuildRequires:  golang(github.com/coreos/rkt/api/v1alpha)
33807ec
BuildRequires:  golang(github.com/docker/docker/api/types)
33807ec
BuildRequires:  golang(github.com/docker/docker/api/types/container)
33807ec
BuildRequires:  golang(github.com/docker/docker/client)
33807ec
BuildRequires:  golang(github.com/docker/docker/pkg/mount)
33807ec
BuildRequires:  golang(github.com/docker/docker/pkg/parsers/operatingsystem)
33807ec
BuildRequires:  golang(github.com/docker/go-connections/tlsconfig)
33807ec
BuildRequires:  golang(github.com/docker/go-units)
33807ec
BuildRequires:  golang(github.com/euank/go-kmsg-parser/kmsgparser)
33807ec
BuildRequires:  golang(github.com/garyburd/redigo/redis)
33807ec
BuildRequires:  golang(github.com/gogo/protobuf/types)
9e79542
BuildRequires:  golang(github.com/influxdata/influxdb1-client)
33807ec
BuildRequires:  golang(github.com/karrick/godirwalk)
33807ec
BuildRequires:  golang(github.com/mesos/mesos-go/api/v1/lib)
33807ec
BuildRequires:  golang(github.com/mesos/mesos-go/api/v1/lib/agent)
33807ec
BuildRequires:  golang(github.com/mesos/mesos-go/api/v1/lib/agent/calls)
33807ec
BuildRequires:  golang(github.com/mesos/mesos-go/api/v1/lib/client)
33807ec
BuildRequires:  golang(github.com/mesos/mesos-go/api/v1/lib/encoding/codecs)
33807ec
BuildRequires:  golang(github.com/mesos/mesos-go/api/v1/lib/httpcli)
33807ec
BuildRequires:  golang(github.com/mindprince/gonvml)
33807ec
BuildRequires:  golang(github.com/mistifyio/go-zfs)
33807ec
BuildRequires:  golang(github.com/opencontainers/runc/libcontainer)
33807ec
BuildRequires:  golang(github.com/opencontainers/runc/libcontainer/cgroups)
33807ec
BuildRequires:  golang(github.com/opencontainers/runc/libcontainer/cgroups/fs)
33807ec
BuildRequires:  golang(github.com/opencontainers/runc/libcontainer/configs)
33807ec
BuildRequires:  golang(github.com/opencontainers/runtime-spec/specs-go)
33807ec
BuildRequires:  golang(github.com/pkg/errors)
33807ec
BuildRequires:  golang(github.com/prometheus/client_golang/prometheus)
33807ec
BuildRequires:  golang(github.com/prometheus/client_golang/prometheus/promhttp)
33807ec
BuildRequires:  golang(github.com/prometheus/client_model/go)
33807ec
BuildRequires:  golang(github.com/prometheus/common/expfmt)
33807ec
BuildRequires:  golang(github.com/prometheus/common/model)
33807ec
BuildRequires:  golang(github.com/Rican7/retry)
33807ec
BuildRequires:  golang(github.com/Rican7/retry/strategy)
33807ec
BuildRequires:  golang(github.com/SeanDolphin/bqschema)
33807ec
BuildRequires:  golang(github.com/Shopify/sarama)
33807ec
BuildRequires:  golang(github.com/sigma/go-inotify)
33807ec
BuildRequires:  golang(github.com/stretchr/testify/assert)
33807ec
BuildRequires:  golang(github.com/stretchr/testify/mock)
33807ec
BuildRequires:  golang(golang.org/x/net/context)
33807ec
BuildRequires:  golang(golang.org/x/oauth2)
33807ec
BuildRequires:  golang(golang.org/x/oauth2/jwt)
33807ec
BuildRequires:  golang(golang.org/x/sys/unix)
33807ec
BuildRequires:  golang(google.golang.org/api/bigquery/v2)
33807ec
BuildRequires:  golang(google.golang.org/grpc)
33807ec
BuildRequires:  golang(gopkg.in/olivere/elastic.v2)
33807ec
BuildRequires:  golang(k8s.io/klog)
33807ec
BuildRequires:  golang(k8s.io/utils/clock)
33807ec
33807ec
%if %{with check}
33807ec
# Tests
33807ec
BuildRequires:  golang(github.com/containerd/typeurl)
33807ec
BuildRequires:  golang(github.com/kr/pretty)
33807ec
BuildRequires:  golang(github.com/opencontainers/runc/libcontainer/system)
33807ec
BuildRequires:  golang(github.com/stretchr/testify/require)
33807ec
BuildRequires:  golang(k8s.io/utils/clock/testing)
4ba2fe8
%endif
4ba2fe8
33807ec
%description
33807ec
%{common_description}
4ba2fe8
33807ec
%gopkg
e8aa896
e8aa896
%prep
33807ec
%goprep
33807ec
%patch0 -p1
33807ec
%patch1 -p1
33807ec
find . -name "*.go" -exec sed -i "s|github.com/containerd/containerd/dialer|github.com/containerd/containerd/pkg/dialer|" "{}" +;
e8aa896
e8aa896
%build
33807ec
%gobuild -o %{gobuilddir}/bin/cadvisor %{goipath}
62ba1e6
e8aa896
%install
33807ec
%gopkginstall
33807ec
install -m 0755 -vd                     %{buildroot}%{_bindir}
33807ec
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
e8aa896
33807ec
# install systemd/sysconfig
4ba2fe8
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig/
4ba2fe8
install -p -m 0660 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
4ba2fe8
install -d -m 0755 %{buildroot}%{_unitdir}
4ba2fe8
install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
e8aa896
e8aa896
%post
e8aa896
%systemd_post cadvisor.service
e8aa896
e8aa896
%preun
e8aa896
%systemd_preun cadvisor.service
e8aa896
e8aa896
%postun
33807ec
%systemd_postun cadvisor.service
e8aa896
33807ec
%if %{with check}
33807ec
%check
33807ec
%gocheck -d integration/tests/api -d integration/tests/healthz -d machine
33807ec
%endif
3389466
e8aa896
%files
e43580c
%license LICENSE
33807ec
%doc docs AUTHORS CHANGELOG.md CONTRIBUTING.md README.md
33807ec
%{_bindir}/*
e8aa896
%{_unitdir}/%{name}.service
e8aa896
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
e8aa896
33807ec
%gopkgfiles
e8aa896
e8aa896
%changelog
8806c45
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.33.1-5
8806c45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8806c45
0405272
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.33.1-4
0405272
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0405272
ff5d89c
* Wed Jul 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.33.1-3
ff5d89c
- Add Obsoletes for old name
ff5d89c
609fdfb
* Mon Jul 08 20:21:04 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.33.1-2.20190708git2ccad4b
609fdfb
- Bump to commit 2ccad4b42fe52b312f6d75a312c61a54fd123dc5
609fdfb
33807ec
* Sun May 12 11:27:06 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.33.1-1
33807ec
- Release 0.33.1
33807ec
3e5accc
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-9
3e5accc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3e5accc
4bbc6c1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-8
4bbc6c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4bbc6c1
277e404
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-7
277e404
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
277e404
52b3af3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-6
52b3af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
52b3af3
77cd326
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-5
77cd326
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
77cd326
c372d4e
* Mon Jul 03 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.22.2-4
c372d4e
- Exclude aarch64, zfs is not available
c372d4e
  related: #1256978
c372d4e
8ed4f0f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-3
8ed4f0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8ed4f0f
881e4ea
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.2-2
881e4ea
- https://fedoraproject.org/wiki/Changes/golang1.7
881e4ea
3389466
* Mon Apr 11 2016 jchaloup <jchaloup@redhat.com> - 0.22.2-1
3389466
- Bump to upstream 546a3771589bdb356777c646c6eca24914fdd48b
3389466
  resolves: #1256978
3389466
e43580c
* Sat Apr  9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.16.0.2-4
e43580c
- Package spec cleanups
e43580c
0d03304
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0.2-3
0d03304
- https://fedoraproject.org/wiki/Changes/golang1.6
0d03304
3b0cd05
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0.2-2
3b0cd05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3b0cd05
5a4c15d
* Sun Sep 06 2015 jchaloup <jchaloup@redhat.com> - 0.16.0.2-1
5a4c15d
- Update to 0.16.0.2
5a4c15d
  related: #1256978
5a4c15d
4ba2fe8
* Thu Aug 27 2015 jchaloup <jchaloup@redhat.com> - 0.16.0.1-1
4ba2fe8
- Update to 0.16.0.1
4ba2fe8
- Update spec file to spec-2.0
4ba2fe8
  resolves: #1256978
4ba2fe8
0b5f20a
* Thu Jul 02 2015 jchaloup <jchaloup@redhat.com> - 0.16.0-1
0b5f20a
- Bump to upstream ec240b60c547caf76c4cd9d73154ebb421fb9da1
0b5f20a
  resolves: #1238481
0b5f20a
f10bbab
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
f10bbab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f10bbab
62ba1e6
* Thu Jun 11 2015 jchaloup <jchaloup@redhat.com> - 0.15.1-1
62ba1e6
- Update to 0.15.1
62ba1e6
  related: #1219972
62ba1e6
7f2ea45
* Fri Jun 05 2015 jchaloup <jchaloup@redhat.com> - 0.14.0-1
7f2ea45
- Update to 0.14.0
7f2ea45
  related: #1219972
7f2ea45
8236aa8
* Fri Jun 05 2015 jchaloup <jchaloup@redhat.com> - 0.13.0-2
8236aa8
- Build devel and debundled deps only for Fedora
8236aa8
  related: #1219972
8236aa8
956c85d
* Fri May 08 2015 jchaloup <jchaloup@redhat.com> - 0.13.0-1
956c85d
- Update to 0.13.0
956c85d
- Add missing [B]Rs for devel subpackage
956c85d
- Add Godeps.json to docs
956c85d
  resolves: #1219972
956c85d
5116dd8
* Thu Apr 09 2015 jchaloup <jchaloup@redhat.com> - 0.10.1-2
5116dd8
- Remove wrong option in cadvisor.service
5116dd8
  resolves: #1210336
5116dd8
f701d44
* Mon Mar 30 2015 jchaloup <jchaloup@redhat.com> - 0.10.1-0.1.gitef7dddf
f701d44
- Update to 0.10.1
f701d44
- Add debug info
f701d44
  related: #1141896
f701d44
c4c677e
* Thu Mar 26 2015 jchaloup <jchaloup@redhat.com> - 0.6.2-0.3.git89088df
c4c677e
- Fix broken dependencies
c4c677e
- Convert int64 to float64 when calling HumanSize
c4c677e
  related: #1141896
c4c677e
675911d
* Fri Dec 12 2014 jchaloup <jchaloup@redhat.com> - 0.6.2-0.1.git89088df
675911d
- remove -q option from autosetup, it is not supported
675911d
  related: #1141896
675911d
Eric Paris fc3b8db
* Fri Dec 05 2014 Eric Paris <eparis@redhat.com> - 0.6.2-0.0.git89088df
Eric Paris fc3b8db
- Bump to upstream 89088df70eca64cf9d6b9a23a3d2bc21a30916d6
Eric Paris fc3b8db
Eric Paris 33713b3
* Fri Nov 14 2014 Eric Paris <eparis@redhat.com> - 0.6.0-0.0.git1e98602
Eric Paris 33713b3
- update to 0.6.0
Eric Paris 33713b3
Eric Paris 33713b3
* Fri Nov 14 2014 Eric Paris <eparis@redhat.com> - 0.5.0-0.1.git8c4f650
Eric Paris 33713b3
- include fs/*.go
Eric Paris 33713b3
Eric Paris 2926b5a
* Thu Nov 13 2014 Eric Paris <eparis@redhat.com> - 0.5.0-0.0.git8c4f650
Eric Paris 2926b5a
- update to 0.5.0
Eric Paris 2926b5a
1998006
* Sat Oct 18 2014 jchaloup <jchaloup@redhat.com> - 0.4.1-0.1.git6906a8c
1998006
- update to 0.4.1
1998006
82afe79
* Thu Oct 09 2014 jchaloup <jchaloup@redhat.com> - 0.3.0-0.4.git9d158c3
82afe79
- Move cadvisor.service and cadvisor config file from patch into repo
82afe79
- Fix the build, thanks to Lokesh
82afe79
e8aa896
* Fri Sep 19 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.3.0-0.3.git9d158c3
e8aa896
- own parent directory of <gopath</src/<import_path>
e8aa896
- preserve timestamps of copied files in -devel
e8aa896
- use _unitdir macro for systemd install path
e8aa896
e8aa896
* Fri Sep 12 2014 Eric Paris 
e8aa896
- Log to stderr (and thus journal) by default
e8aa896
e8aa896
* Thu Sep 11 2014 Eric Paris 
e8aa896
- Bump to upstream 9d158c3d66e8e6d14cfeb1d73695ab18dbc744e8
e8aa896
e8aa896
* Wed Aug 20 2014 Eric Paris 
e8aa896
- Bump to upstream 17b0ec576bcbeb321c133e4378dee1e500c9850d
e8aa896
e8aa896
* Thu Aug 07 2014 Adam Miller <maxamillion@fedoraproject.org> - 0.2.0-1
e8aa896
- First package for Fedora