|
|
aabfee |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
aabfee |
%define _binaries_in_noarch_packages_terminate_build 0
|
|
|
aabfee |
|
|
|
aabfee |
Name: redhat-access-insights
|
|
|
aabfee |
Summary: Uploads Insights information to Red Hat on a periodic basis
|
|
|
f84087 |
Version: 1.0.6
|
|
|
aabfee |
Release: 0%{?dist}
|
|
|
aabfee |
Source0: https://github.com/redhataccess/redhat-access-insights/archive/redhat-access-insights-%{version}.tar.gz
|
|
|
aabfee |
Epoch: 0
|
|
|
aabfee |
License: GPLv2+
|
|
|
f84087 |
URL: http://access.redhat.com/insights
|
|
|
aabfee |
Group: Applications/System
|
|
|
aabfee |
Vendor: Red Hat, Inc.
|
|
|
aabfee |
|
|
|
aabfee |
Obsoletes: redhat-access-proactive
|
|
|
aabfee |
|
|
|
aabfee |
Requires: python
|
|
|
aabfee |
Requires: python-setuptools
|
|
|
f84087 |
Requires: python-requests >= 2.6
|
|
|
aabfee |
Requires: python-magic
|
|
|
aabfee |
Requires: libcgroup
|
|
|
f84087 |
Requires: tar
|
|
|
f84087 |
Requires: gpg
|
|
|
aabfee |
Requires: pciutils
|
|
|
aabfee |
%if 0%{?rhel} && 0%{?rhel} > 6
|
|
|
aabfee |
Requires: libcgroup-tools
|
|
|
aabfee |
%endif
|
|
|
aabfee |
BuildArch: noarch
|
|
|
aabfee |
|
|
|
aabfee |
BuildRequires: python2-devel
|
|
|
aabfee |
BuildRequires: python-setuptools
|
|
|
aabfee |
|
|
|
aabfee |
%description
|
|
|
aabfee |
Sends insightful information to Red Hat for automated analysis
|
|
|
aabfee |
|
|
|
aabfee |
%prep
|
|
|
aabfee |
%setup -q
|
|
|
aabfee |
|
|
|
aabfee |
%install
|
|
|
aabfee |
test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
|
|
|
aabfee |
%{__python} setup.py install --root=$RPM_BUILD_ROOT $PREFIX
|
|
|
aabfee |
|
|
|
aabfee |
%post
|
|
|
aabfee |
#Migrate existing machine-id
|
|
|
aabfee |
if [ -f "/etc/redhat_access_proactive/machine-id" ]; then
|
|
|
aabfee |
mkdir -p /etc/redhat-access-insights/
|
|
|
aabfee |
mv /etc/redhat_access_proactive/machine-id /etc/redhat-access-insights/machine-id
|
|
|
aabfee |
fi
|
|
|
aabfee |
|
|
|
aabfee |
%postun
|
|
|
aabfee |
if [ "$1" -eq 0 ]; then
|
|
|
aabfee |
rm -f /etc/cron.daily/redhat-access-insights
|
|
|
aabfee |
rm -f /etc/cron.weekly/redhat-access-insights
|
|
|
aabfee |
rm -f /etc/redhat-access-insights/.cache*
|
|
|
f84087 |
rm -f /etc/redhat-access-insights/.registered
|
|
|
f84087 |
rm -f /etc/redhat-access-insights/.unregistered
|
|
|
aabfee |
fi
|
|
|
aabfee |
|
|
|
aabfee |
%clean
|
|
|
aabfee |
test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
|
|
|
aabfee |
|
|
|
aabfee |
%files
|
|
|
aabfee |
%defattr(755,root,root)
|
|
|
aabfee |
%{_bindir}/redhat-access-insights
|
|
|
aabfee |
/etc/redhat-access-insights/redhat-access-insights.cron
|
|
|
aabfee |
|
|
|
aabfee |
%defattr(0600, root, root)
|
|
|
aabfee |
%dir /etc/redhat-access-insights
|
|
|
aabfee |
%config(noreplace) /etc/redhat-access-insights/*.conf
|
|
|
aabfee |
/etc/redhat-access-insights/.fallback.json
|
|
|
aabfee |
/etc/redhat-access-insights/.fallback.json.asc
|
|
|
aabfee |
/etc/redhat-access-insights/redhattools.pub.gpg
|
|
|
aabfee |
/etc/redhat-access-insights/.exp.sed
|
|
|
aabfee |
/etc/redhat-access-insights/*.pem
|
|
|
aabfee |
|
|
|
aabfee |
%defattr(-,root,root)
|
|
|
aabfee |
%{python_sitelib}/redhat_access_insights*.egg-info
|
|
|
aabfee |
%{python_sitelib}/redhat_access_insights/*.py*
|
|
|
aabfee |
|
|
|
aabfee |
%doc
|
|
|
aabfee |
/usr/share/man/man8/*.8.gz
|
|
|
aabfee |
/usr/share/man/man5/*.5.gz
|
|
|
aabfee |
|
|
|
aabfee |
%changelog
|
|
|
f84087 |
* Tue Aug 11 2015 Dan Varga <dvarga@redhat.com> - 1.0.6-0
|
|
|
f84087 |
- Fix unregister -> reregister flow
|
|
|
f84087 |
- Resolves: bz1252435
|
|
|
f84087 |
|
|
|
f84087 |
* Wed Jul 29 2015 Dan Varga <dvarga@redhat.com> - 1.0.5-0
|
|
|
f84087 |
- Automatically retry failed uploads when invoked via cron
|
|
|
f84087 |
- Update python-requests dependency to >= 2.6
|
|
|
f84087 |
- Add --unregister option
|
|
|
f84087 |
- --no-gpg fix
|
|
|
f84087 |
- Remove --weekly option
|
|
|
f84087 |
- Add --quiet and --silent options
|
|
|
f84087 |
- Default cron to quiet
|
|
|
f84087 |
- Fix satellite 5 proxy auto configuration
|
|
|
f84087 |
- Remove .registered and .unregistered files on uninstallation
|
|
|
f84087 |
- lowercase -> lower()
|
|
|
f84087 |
- Resolves: bz1237096, bz1243024, bz1247363
|
|
|
f84087 |
|
|
|
f84087 |
* Mon Jun 08 2015 Dan Varga <dvarga@redhat.com> - 1.0.4-0
|
|
|
aabfee |
- Improved logging of exceptions
|
|
|
aabfee |
- Redact passwords automatically
|
|
|
f84087 |
- Resolves: bz1230740
|
|
|
aabfee |
|
|
|
aabfee |
* Mon Jun 01 2015 Dan Varga <dvarga@redhat.com> - 1.0.3-0
|
|
|
aabfee |
- New default URLs
|
|
|
aabfee |
- New config file format
|
|
|
aabfee |
- Default to auto configuration
|
|
|
f84087 |
- Resolves: bz1222569
|
|
|
aabfee |
|
|
|
aabfee |
* Mon May 18 2015 Dan Varga <dvarga@redhat.com> - 1.0.2-0
|
|
|
aabfee |
- Update man pages
|
|
|
aabfee |
|
|
|
aabfee |
* Thu May 07 2015 Dan Varga <dvarga@redhat.com> - 1.0.1-0
|
|
|
aabfee |
- Add man pages
|
|
|
aabfee |
- New certificate chain for cert-api.access.redhat.com
|
|
|
aabfee |
- Better auto configuration for satellite installations
|
|
|
aabfee |
|
|
|
aabfee |
* Wed Apr 29 2015 Dan Varga <dvarga@redhat.com> - 1.0.0-2
|
|
|
aabfee |
- Drop min python-requests version to 2.4
|
|
|
aabfee |
|
|
|
aabfee |
* Mon Apr 27 2015 Dan Varga <dvarga@redhat.com> - 1.0.0-1
|
|
|
aabfee |
- Add LICENSE file
|
|
|
aabfee |
- Resolves: bz1215002
|
|
|
aabfee |
|
|
|
aabfee |
* Thu Apr 23 2015 Dan Varga <dvarga@redhat.com> - 1.0.0-0
|
|
|
aabfee |
- Initial build
|
|
|
aabfee |
- Resolves: bz1176237
|