## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.8.2 %ifnarch %{ix86} %{arm} %bcond_without check %endif # https://github.com/google/cadvisor %global goipath github.com/google/cadvisor Version: 0.45.0 %gometa %global common_description %{expand: cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide. cAdvisor has native support for Docker containers and should support just about any other container type out of the box. We strive for support across the board so feel free to open an issue if that is not the case. cAdvisor's container abstraction is based on lmctfy's so containers are inherently nested hierarchically.} %global golicenses LICENSE %global godocs docs AUTHORS CHANGELOG.md CONTRIBUTING.md README.md Name: cadvisor Release: %autorelease Summary: Analyzes resource usage and performance characteristics of running containers License: Apache-2.0 URL: %{gourl} Source: %{gosource} Source1: cadvisor Source2: cadvisor.service # Use github.com/influxdata/influxdb1-client as influx client Patch0: 0001-Use-github.com-influxdata-influxdb1-client-as-influx.patch BuildRequires: git-core BuildRequires: systemd BuildRequires: glibc-static %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/cadvisor %{goipath}/cmd %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # install systemd/sysconfig install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig/ install -p -m 0660 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name} install -d -m 0755 %{buildroot}%{_unitdir} install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service %post %systemd_post cadvisor.service %preun %systemd_preun cadvisor.service %postun %systemd_postun cadvisor.service %if %{with check} %check %gocheck -d integration/tests/api -d integration/tests/healthz -d machine -d github.com/google/cadvisor/container/containerd %endif %files %license LICENSE %doc docs AUTHORS CHANGELOG.md CONTRIBUTING.md README.md %{_bindir}/cadvisor %{_unitdir}/%{name}.service %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %gopkgfiles %changelog * Wed Jul 19 2023 Fedora Release Engineering - 0.45.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jan 18 2023 Fedora Release Engineering - 0.45.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Nov 06 2022 Robert-André Mauchin - 0.45.0-1 - Update to 0.45.0 * Wed Aug 10 2022 Maxwell G - 0.44.1-6 - Rebuild to fix FTBFS * Wed Jul 20 2022 Fedora Release Engineering - 0.44.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0.44.1-4 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Thu Jun 23 2022 Maxwell G - 0.44.1-3 - Rebuild to mitigate CVE-2022-21698 (rhbz#2067400). * Sun Jun 19 2022 Robert-André Mauchin - 0.44.1-2 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Fri Jun 10 2022 Fabio Alessandro Locati - 0.44.1-1 - update to 0.44.1 rhbz#2007854 * Sun Apr 17 2022 Fabio Alessandro Locati - 0.40.0-4 - Rebuilt for CVE-2022-27191 * Wed Jan 19 2022 Fedora Release Engineering - 0.40.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 15 2021 Robert-André Mauchin - 0.40.0-2 - Disable tests for 32 bits arches * Wed Sep 15 2021 Robert-André Mauchin - 0.40.0-1 - Update to 0.40.0 Close: rhbz#1915882 Close: rhbz#1987396 * Wed Jul 21 2021 Fedora Release Engineering - 0.38.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.38.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 26 15:53:14 CET 2020 Robert-André Mauchin - 0.38.6-1 - Update to 0.38.6 - Close: rhbz#1346483 * Wed Sep 30 18:00:24 CEST 2020 Robert-André Mauchin - 0.37.0-1 - Release 0.37.0 * Sat Aug 01 2020 Fedora Release Engineering - 0.33.1-7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.33.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 0.33.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 0.33.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jul 10 2019 Elliott Sales de Andrade - 0.33.1-3 - Add Obsoletes for old name * Mon Jul 08 20:21:04 CEST 2019 Robert-André Mauchin - 0.33.1-2.20190708git2ccad4b - Bump to commit 2ccad4b42fe52b312f6d75a312c61a54fd123dc5 * Sun May 12 11:27:06 CEST 2019 Robert-André Mauchin - 0.33.1-1 - Release 0.33.1 * Thu Jan 31 2019 Fedora Release Engineering - 0.22.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 0.22.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.22.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.22.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.22.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 03 2017 Jan Chaloupka - 0.22.2-4 - Exclude aarch64, zfs is not available related: #1256978 * Fri Feb 10 2017 Fedora Release Engineering - 0.22.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jul 21 2016 Fedora Release Engineering - 0.22.2-2 - https://fedoraproject.org/wiki/Changes/golang1.7 * Mon Apr 11 2016 jchaloup - 0.22.2-1 - Bump to upstream 546a3771589bdb356777c646c6eca24914fdd48b resolves: #1256978 * Sat Apr 9 2016 Peter Robinson 0.16.0.2-4 - Package spec cleanups * Mon Feb 22 2016 Fedora Release Engineering - 0.16.0.2-3 - https://fedoraproject.org/wiki/Changes/golang1.6 * Wed Feb 03 2016 Fedora Release Engineering - 0.16.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Sep 06 2015 jchaloup - 0.16.0.2-1 - Update to 0.16.0.2 related: #1256978 * Thu Aug 27 2015 jchaloup - 0.16.0.1-1 - Update to 0.16.0.1 - Update spec file to spec-2.0 resolves: #1256978 * Thu Jul 02 2015 jchaloup - 0.16.0-1 - Bump to upstream ec240b60c547caf76c4cd9d73154ebb421fb9da1 resolves: #1238481 * Wed Jun 17 2015 Fedora Release Engineering - 0.15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 11 2015 jchaloup - 0.15.1-1 - Update to 0.15.1 related: #1219972 * Fri Jun 05 2015 jchaloup - 0.14.0-1 - Update to 0.14.0 related: #1219972 * Fri Jun 05 2015 jchaloup - 0.13.0-2 - Build devel and debundled deps only for Fedora related: #1219972 * Fri May 08 2015 jchaloup - 0.13.0-1 - Update to 0.13.0 - Add missing [B]Rs for devel subpackage - Add Godeps.json to docs resolves: #1219972 * Thu Apr 09 2015 jchaloup - 0.10.1-2 - Remove wrong option in cadvisor.service resolves: #1210336 * Mon Mar 30 2015 jchaloup - 0.10.1-0.1.gitef7dddf - Update to 0.10.1 - Add debug info related: #1141896 * Thu Mar 26 2015 jchaloup - 0.6.2-0.3.git89088df - Fix broken dependencies - Convert int64 to float64 when calling HumanSize related: #1141896 * Fri Dec 12 2014 jchaloup - 0.6.2-0.1.git89088df - remove -q option from autosetup, it is not supported related: #1141896 * Fri Dec 05 2014 Eric Paris - 0.6.2-0.0.git89088df - Bump to upstream 89088df70eca64cf9d6b9a23a3d2bc21a30916d6 * Fri Nov 14 2014 Eric Paris - 0.6.0-0.0.git1e98602 - update to 0.6.0 * Fri Nov 14 2014 Eric Paris - 0.5.0-0.1.git8c4f650 - include fs/*.go * Thu Nov 13 2014 Eric Paris - 0.5.0-0.0.git8c4f650 - update to 0.5.0 * Sat Oct 18 2014 jchaloup - 0.4.1-0.1.git6906a8c - update to 0.4.1 * Thu Oct 09 2014 jchaloup - 0.3.0-0.4.git9d158c3 - Move cadvisor.service and cadvisor config file from patch into repo - Fix the build, thanks to Lokesh * Fri Sep 19 2014 Lokesh Mandvekar - 0.3.0-0.3.git9d158c3 - own parent directory of - preserve timestamps of copied files in -devel - use _unitdir macro for systemd install path * Fri Sep 12 2014 Eric Paris - 0.2.0-1 - First package for Fedora