Blame SPECS/insights-client.spec

7ed636
%define _binaries_in_noarch_packages_terminate_build 0
7ed636
7ed636
Name:                   insights-client
7ed636
Summary:                Uploads Insights information to Red Hat on a periodic basis
c0089d
Version:                3.0.14
c0089d
Release:                3%{?dist}
7ed636
Source0:                https://github.com/redhatinsights/insights-client/archive/insights-client-%{version}.tar.gz
c0089d
Patch0:                 0001-systemd-don-t-sleep-when-running-check-results.patch
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}
c0089d
%{__install} -d -m 755 %{buildroot}/%{_localstatedir}/log/insights-client
c0089d
%{__install} -d -m 755 %{buildroot}/%{_localstatedir}/lib/insights
7ed636
9e9e6c
c0089d
%post
c0089d
%systemd_post %{name}.timer
7ed636
7ed636
7ed636
%preun
7ed636
%systemd_preun %{name}.timer
7ed636
%systemd_preun %{name}.service
c0089d
7ed636
7ed636
%postun
c0089d
%systemd_postun %{name}.timer
c0089d
%systemd_postun %{name}.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
c0089d
    rm -f %{_localstatedir}/lib/insights/*
7ed636
fi
7ed636
7ed636
c0089d
%clean
c0089d
rm -rf %{buildroot}
7ed636
23e911
c0089d
%files
c0089d
 %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}/*
c0089d
 %attr(440,root,root) %{_sysconfdir}/insights-client/*.pem
c0089d
 %attr(440,root,root) %{_sysconfdir}/insights-client/redhattools.pub.gpg
c0089d
%{python_sitelib}/insights_client/
c0089d
%{_localstatedir}/log/insights-client
c0089d
%{_localstatedir}/lib/insights
c0089d
%{_defaultdocdir}/%{name}
7ed636
7ed636
%doc
7ed636
%defattr(-, root, root)
c0089d
%{_mandir}/man8/*.8.gz
c0089d
%{_mandir}/man5/*.5.gz
c0089d
7ed636
7ed636
%changelog
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