Blame SPECS/insights-client.spec

7ed636
%define _binaries_in_noarch_packages_terminate_build 0
043010
%global __python /usr/bin/python2
7ed636
7ed636
Name:                   insights-client
7ed636
Summary:                Uploads Insights information to Red Hat on a periodic basis
c437ba
Version:                3.1.9
a7bf6c
Release:                1%{?dist}
043010
Source0:                https://github.com/redhatinsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
593a26
7ed636
Epoch:                  0
7ed636
License:                GPLv2+
23e911
URL:                    http://cloud.redhat.com/insights
7ed636
Group:                  Applications/System
7ed636
Vendor:                 Red Hat, Inc.
7ed636
23e911
Provides: redhat-access-insights = %{version}-%{release}%{?dist}
23e911
c0089d
Obsoletes: redhat-access-insights <= 1.0.13-2
c0089d
Obsoletes: redhat-access-proactive <= 1.0.13-2
c0089d
c0089d
BuildArch: noarch
7ed636
23e911
Requires: tar
23e911
Requires: gpg
23e911
Requires: pciutils
7ed636
Requires: python
7ed636
Requires: python-setuptools
7ed636
Requires: python-requests >= 2.6
7ed636
Requires: PyYAML
7ed636
Requires: libcgroup
7ed636
Requires: python-magic
23e911
Requires: python-six >= 1.9.0
7ed636
Requires: systemd
c0089d
Requires: coreutils
c0089d
BuildRequires: python-devel
7ed636
BuildRequires: systemd
c0089d
BuildRequires: wget
c0089d
BuildRequires: binutils
c0089d
7ed636
7ed636
%description
7ed636
Sends insightful information to Red Hat for automated analysis
7ed636
7ed636
c0089d
%prep
c0089d
%autosetup -p1
7ed636
7ed636
c0089d
%build
c0089d
%{configure}
c0089d
%{__make}
7ed636
7ed636
c0089d
%install
c0089d
%{make_install}
043010
%{__rm} %{buildroot}%{_sysconfdir}/insights-client/insights-client.motd
9e9e6c
c0089d
%post
c0089d
%systemd_post %{name}.timer
87cd1d
%systemd_post %{name}-boot.service
87cd1d
%systemd_post 80-insights.preset
7ed636
7ed636
%preun
7ed636
%systemd_preun %{name}.timer
7ed636
%systemd_preun %{name}.service
87cd1d
%systemd_preun %{name}-boot.service
7ed636
7ed636
%postun
c0089d
%systemd_postun %{name}.timer
c0089d
%systemd_postun %{name}.service
87cd1d
%systemd_postun %{name}-boot.service
c0089d
# Clean up files created by insights-client that are unowned by the RPM
c0089d
if [ $1 -eq 0 ]; then
c0089d
    rm -f %{_sysconfdir}/cron.daily/insights-client
c0089d
    rm -f %{_sysconfdir}/ansible/facts.d/insights.fact
c0089d
    rm -f %{_sysconfdir}/ansible/facts.d/insights_machine_id.fact
043010
    rm -rf %{_localstatedir}/lib/insights
043010
    rm -rf %{_localstatedir}/log/insights-client
87cd1d
    rm -f %{_sysconfdir}/insights-client/.*.etag
7ed636
fi
7ed636
7ed636
c0089d
%files
87cd1d
%config(noreplace) %{_sysconfdir}/insights-client/*.conf
c0089d
%{_sysconfdir}/insights-client/.fallback.json*
c0089d
%{_sysconfdir}/insights-client/.exp.sed
c0089d
%{_sysconfdir}/insights-client/rpm.egg*
c0089d
%{_bindir}/*
c0089d
%{_unitdir}/*
87cd1d
%attr(444,root,root) %{_sysconfdir}/insights-client/*.pem
87cd1d
%attr(444,root,root) %{_sysconfdir}/insights-client/redhattools.pub.gpg
c0089d
%{python_sitelib}/insights_client/
c0089d
%{_defaultdocdir}/%{name}
87cd1d
%{_presetdir}/*.preset
7ed636
7ed636
%doc
7ed636
%defattr(-, root, root)
c0089d
%{_mandir}/man8/*.8.gz
c0089d
%{_mandir}/man5/*.5.gz
c0089d
7ed636
7ed636
%changelog
c437ba
* Tue Oct 03 2023 Alba Hita Catala <ahitacat@redhat.com> - 0:3.1.9-1
c437ba
- Update RPM egg to 3.2.15 (RHBZ#2229674)
c437ba
- Cleaned patches from repo
c437ba
a7bf6c
* Wed Jun 21 2023 Alba Hita Catala <ahitacat@redhat.com> - 0:3.1.8-1
a7bf6c
- Update to 3.1.8 (RHBZ#2212325)
a7bf6c
a9a78b
* Mon Sep 19 2022 Gael Chamoulaud <gchamoul@redhat.com> 0:3.1.7-2
a9a78b
- fix: remove PathExists condition from unit (RHBZ#2109244)
a9a78b
593a26
* Thu Mar 31 2022 Link Dupont <link@sub-pop.net> 0:3.1.7-1
593a26
- Update to 3.1.7 (RHBZ#2047819)
593a26
87cd1d
* Fri Jun 25 2021 Jeremy Crafts <jcrafts@redhat.com> - 3.1.5-1
87cd1d
- Fix metrics auth and connection issues (RHBZ#1916455)
87cd1d
043010
* Mon Nov 30 2020 Link Dupont <link@redhat.com> - 3.1.1-1
043010
- New upstream release (RHBZ#1899592)
043010
c0089d
* Thu Aug 20 2020 Link Dupont <link@redhat.com> - 3.0.14-3
c0089d
- Backport patch to disable sleeping a systemd unit (RHBZ#1870658)
c0089d
c0089d
* Wed Apr 29 2020 Link Dupont <link@redhat.com> - 3.0.14-1
c0089d
- Removed printing to stdout in cron script (RHBZ#1828778)
c0089d
- Add deprecation message when running legacy redhat-access-insights (RHCLOUD-5409)
c0089d
- Update systemd timer to use timers.target (RHBZ#1798373)
c0089d
- Fix an issue updating motd.d on relevant systems (RHCLOUD-6144)
c0089d
- Update shipped core to version 3.0.161 (RHCLOUD-4457)
c0089d
- Enable automatic checking for advisor results (RHCLOUD-4558)
c0089d
- Ensure dependency on coreutils for timeout (RHCLOUD-5131)
c0089d
- Build system converted to autotools (RHCLOUD-4333)
c0089d
9e9e6c
* Tue Feb 11 2020 Link Dupont <link@redhat.com> - 3.0.13-1
9e9e6c
- New upstream version
ce4bd0
- Resolves: RHBZ#1795256
23e911
5eaba2
* Wed Mar 14 2018 Richard Brantley <rbrantle@redhat.com> - 3.0.3-8
5eaba2
- Resolves: rhbz#1555041
5eaba2
7ed636
* Fri Feb 16 2018 Kyle Lape <klape@redhat.com> - 3.0.3-6
7ed636
- Persist systemd timer config between reboots
7ed636
7ed636
* Wed Feb 7 2018 Kyle Lape <klape@redhat.com> - 3.0.3-2
7ed636
- Correct the version strings in Obsoletes and Provides in RPM spec
7ed636
7ed636
* Thu Jan 18 2018 Kyle Lape <klape@redhat.com> - 3.0.3-1
7ed636
- RHEL 7 RPM now uses systemd service and timer instead of cron
7ed636
- Addition of IO and CPU cgroup constraints
7ed636
- Fixed memory cgroup constraint
7ed636
7ed636
* Wed Oct 18 2017 Richard Brantley <rbrantle@redhat.com> - 3.0.2-2
7ed636
- Resolves BZ1498650, BZ1500008, BZ1501545, BZ1501552, BZ1501556, BZ1501561, BZ1501565, BZ1501566
7ed636
- Fixes version migration logic
7ed636
- Fixes symlink issues to old binary
7ed636
- Fixes short ID analysis for images and containers
7ed636
- Fixes Docker library detection
7ed636
- Fixes image and container detection
7ed636
- Fixes registration execution flow
7ed636
- Fixes --version flag to print to stdout and include additional versioning information
7ed636
- Includes Insights Core 3.0.3-1
7ed636
7ed636
* Wed Oct 4 2017 Richard Brantley <rbrantle@redhat.com> - 3.0.1-5
7ed636
- Resolves BZ1498581
7ed636
- Fixes sys.path issues
7ed636
- Includes Insights Core 3.0.2-6
7ed636
7ed636
* Wed Sep 27 2017 Richard Brantley <rbrantle@redhat.com> - 3.0.0-4
7ed636
- Initial build