import insights-client-3.1.7-9.el8_7

This commit is contained in:
CentOS Sources 2023-01-12 03:28:26 -05:00 committed by Stepan Oksanichenko
parent 990f15876b
commit 7886b99db1

View File

@ -3,7 +3,7 @@
Name: insights-client
Summary: Uploads Insights information to Red Hat on a periodic basis
Version: 3.1.7
Release: 8%{?dist}
Release: 9%{?dist}
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
Epoch: 0
License: GPLv2+
@ -42,6 +42,7 @@ BuildRequires: python3-devel
BuildRequires: platform-python-devel
BuildRequires: systemd
BuildRequires: pam
Requires(post): policycoreutils-python-utils
%description
@ -78,6 +79,8 @@ if [ -d %{_sysconfdir}/motd.d ]; then
fi
fi
semanage permissive --add insights_client_t
%preun
%systemd_preun %{name}.timer
%systemd_preun %{name}.service
@ -88,6 +91,10 @@ fi
%systemd_postun %{name}.service
%systemd_postun %{name}-boot.service
if [ $1 -eq 0 ]; then
%{_sbindir}/semanage permissive -d insights_client_t || true
fi
# Clean up files created by insights-client that are unowned by the RPM
if [ $1 -eq 0 ]; then
rm -f %{_sysconfdir}/cron.daily/insights-client
@ -124,6 +131,9 @@ fi
%changelog
* Fri Nov 11 2022 Alba Hita Catala <ahitacat@redhat.com> 0:3.1.7-9
- Set SELinux policy to permissive for insights_client_t module (RHBZ#2143309)
* Wed Apr 13 2022 Link Dupont <link@sub-pop.net> 0:3.1.7-8
- Ensure __python3 macro is globally set to platform-python (RHBZ#2069282)