Blame SPECS/sos-collector.spec

cfe0d9
Summary: Capture sosreports from multiple nodes simultaneously
cfe0d9
Name: sos-collector
cfe0d9
Version: 1.6
cfe0d9
Release: 4%{?dist}
cfe0d9
Source0: http://people.redhat.com/jhunsake/sos-collector/%{name}-%{version}.tar.gz
cfe0d9
License: GPLv2
cfe0d9
BuildArch: noarch
cfe0d9
Url: https://github.com/sosreport/sos-collector
cfe0d9
Requires: sos >= 3.0
cfe0d9
Obsoletes: clustersos < 1.2.2-2
cfe0d9
Provides: clustersos = %{version}-%{release}
cfe0d9
cfe0d9
Patch0: sos-collector-local-pexpect.patch
cfe0d9
Patch1: sos-collector-non-root-quote.patch
cfe0d9
Patch2: sos-collector-sat-support.patch
cfe0d9
cfe0d9
%if 0%{?rhel} == 7
cfe0d9
BuildRequires: python-devel
cfe0d9
BuildRequires: python-setuptools
cfe0d9
Requires: python2-futures
cfe0d9
Requires: python-six
cfe0d9
Requires: pexpect
cfe0d9
%else
cfe0d9
BuildRequires: python3-devel
cfe0d9
BuildRequires: python3-six
cfe0d9
BuildRequires: python3-pexpect
cfe0d9
Requires: python3-six
cfe0d9
Requires: python3-pexpect
cfe0d9
%endif
cfe0d9
cfe0d9
cfe0d9
%description
cfe0d9
sos-collector is a utility designed to capture sosreports from multiple nodes
cfe0d9
at once and collect them into a single archive. If the nodes are part of
cfe0d9
a cluster, profiles can be used to configure how the sosreport command
cfe0d9
is run on the nodes.
cfe0d9
cfe0d9
%prep
cfe0d9
%setup -q
cfe0d9
%patch0 -p1
cfe0d9
%patch1 -p1
cfe0d9
%patch2 -p1
cfe0d9
cfe0d9
%build
cfe0d9
%if 0%{?rhel} == 7
cfe0d9
%py2_build
cfe0d9
%else
cfe0d9
%py3_build
cfe0d9
%endif
cfe0d9
cfe0d9
%install
cfe0d9
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
cfe0d9
install -p -m644 man/en/sos-collector.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
cfe0d9
%if 0%{?rhel} == 7
cfe0d9
%py2_install
cfe0d9
%else
cfe0d9
%py3_install
cfe0d9
%endif
cfe0d9
cfe0d9
cfe0d9
cfe0d9
%check
cfe0d9
%if 0%{?rhel} == 7
cfe0d9
%{__python2} setup.py test
cfe0d9
%else
cfe0d9
%{__python3} setup.py test
cfe0d9
%endif
cfe0d9
cfe0d9
%files
cfe0d9
%{_bindir}/sos-collector
cfe0d9
%if 0%{?rhel} == 7
cfe0d9
%{python2_sitelib}/*
cfe0d9
%else
cfe0d9
%{python3_sitelib}/*
cfe0d9
%endif
cfe0d9
%{_mandir}/man1/*
cfe0d9
cfe0d9
%license LICENSE
cfe0d9
cfe0d9
%changelog
cfe0d9
* Tue Jan 08 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.6-4
cfe0d9
- Adds support for Satellite deployments
cfe0d9
- Fixes quoting for non-root local commands
cfe0d9
cfe0d9
* Thu Dec 20 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.6-3
cfe0d9
- Initial RHEL 8 release based on upstream 1.6
cfe0d9
- Drops paramiko dependency in favor of OpenSSH ControlPersist