Blame SPECS/redhat-access-insights.spec

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
58c448
Version:                1.0.11
aabfee
Release:                0%{?dist}
58c448
Source0:                https://github.com/redhataccess/insights-client/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
58c448
Requires: pyOpenSSL
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
58c448
rm -rf ${RPM_BUILD_ROOT}
58c448
%{__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*
58c448
%{_sharedstatedir}/redhat_access_insights/redhat-access-insights-*.tar.gz
aabfee
aabfee
%doc
aabfee
/usr/share/man/man8/*.8.gz
aabfee
/usr/share/man/man5/*.5.gz
aabfee
aabfee
%changelog
58c448
* Thu Apr 07 2016 Jeremy Crafts <jcrafts@redhat.com> - 1.0.9-0
58c448
- Bugfixes for connection test and stdout options 
58c448
58c448
* Fri Mar 04 2016 Jeremy Crafts <jcrafts@redhat.com> - 1.0.8-0
58c448
- Fix scheduling-related issues
58c448
- Add status check for registration with API
58c448
- Fix connectivity bug
58c448
- Improved debug messaging
58c448
- Resolves: bz1257238, bz1267303, bz1268002, bz1276058, bz1295928, bz1295931, bz1295932, bz1295934, bz1295940, bz1310242, bz1310243
58c448
f84087
* Tue Aug 11 2015 Dan Varga <dvarga@redhat.com> - 1.0.6-0
f84087
- Fix unregister -> reregister flow
f84087
- Resolves: bz1252435
f84087
f84087
* Mon Jun 08 2015 Dan Varga <dvarga@redhat.com> - 1.0.4-0
aabfee
- Improved logging of exceptions
aabfee
- Redact passwords automatically
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
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