Blame SPECS/sos-collector.spec

a83f5e
Summary: Capture sosreports from multiple nodes simultaneously
a83f5e
Name: sos-collector
b08237
Version: 1.8
b08237
Release: 2%{?dist}
a83f5e
Source0: http://people.redhat.com/jhunsake/sos-collector/%{name}-%{version}.tar.gz
a83f5e
License: GPLv2
a83f5e
BuildArch: noarch
a83f5e
Url: https://github.com/sosreport/sos-collector
a83f5e
Requires: sos >= 3.0
a83f5e
Obsoletes: clustersos < 1.2.2-2
a83f5e
Provides: clustersos = %{version}-%{release}
a83f5e
b08237
Patch0: sos-collector-setuptools-fix.patch
9e8bad
Patch1: sos-collector-old-pexpect.patch
b08237
Patch2: sos-collector-temp-location.patch
a83f5e
9e8bad
%if 0%{?rhel} == 7
a83f5e
BuildRequires: python-devel
9e8bad
BuildRequires: python-setuptools
a83f5e
Requires: python2-futures
a83f5e
Requires: python-six
9e8bad
Requires: pexpect
a83f5e
%else
a83f5e
BuildRequires: python3-devel
a83f5e
Requires: python3-six
9e8bad
Requires: python3-pexpect
a83f5e
%endif
a83f5e
a83f5e
a83f5e
%description
a83f5e
sos-collector is a utility designed to capture sosreports from multiple nodes
a83f5e
at once and collect them into a single archive. If the nodes are part of
a83f5e
a cluster, profiles can be used to configure how the sosreport command
a83f5e
is run on the nodes.
a83f5e
a83f5e
%prep
a83f5e
%setup -q
52984c
%patch0 -p1
52984c
%patch1 -p1
52984c
%patch2 -p1
a83f5e
a83f5e
%build
9e8bad
%if 0%{?rhel} == 7
a83f5e
%py2_build
a83f5e
%else
a83f5e
%py3_build
a83f5e
%endif
a83f5e
a83f5e
%install
a83f5e
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
a83f5e
install -p -m644 man/en/sos-collector.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
9e8bad
%if 0%{?rhel} == 7
a83f5e
%py2_install
a83f5e
%else
a83f5e
%py3_install
a83f5e
%endif
a83f5e
a83f5e
a83f5e
a83f5e
%check
9e8bad
%if 0%{?rhel} == 7
a83f5e
%{__python2} setup.py test
a83f5e
%else
a83f5e
%{__python3} setup.py test
a83f5e
%endif
a83f5e
a83f5e
%files
a83f5e
%{_bindir}/sos-collector
9e8bad
%if 0%{?rhel} == 7
a83f5e
%{python2_sitelib}/*
a83f5e
%else
a83f5e
%{python3_sitelib}/*
a83f5e
%endif
a83f5e
%{_mandir}/man1/*
a83f5e
a83f5e
%doc LICENSE
a83f5e
a83f5e
%changelog
b08237
* Tue Apr 21 2020 Jake Hunsaker <jhunsake@redhat.com> - 1.8-2
b08237
- Rebase to upstream 1.8
b08237
- Resolves RHBZ#1747351
b08237
9e8bad
* Wed May 15 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-5
9e8bad
- Add missing local fixes for older pexpect versions
9e8bad
9e8bad
* Wed May 15 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-4
9e8bad
- Correct handling of older pexpect versions
9e8bad
9e8bad
* Tue Apr 23 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-3
9e8bad
- Added RHHI-V cluster profile
9e8bad
9e8bad
* Thu Apr 11 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-2
9e8bad
- Fix 'none' cluster type enablement
9e8bad
- Update RHCOS image to use RHEL 8 support-tools
9e8bad
- Fix execution from within a container
9e8bad
9e8bad
* Mon Apr 01 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.7-1
9e8bad
- New upstream release
9e8bad
- Enhance container execution
9e8bad
9e8bad
* Thu Mar 07 2019 Jake Hunsaker <jhunsake@redhat.com> - 1.6-3
9e8bad
- Fix local command execution
9e8bad
- Fix quoting for non-root commands
9e8bad
- Backport Satellite support
9e8bad
- Backport RHCOS support
9e8bad
9e8bad
* Tue Dec 11 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.6-2
9e8bad
- Handle older pexpect installations on RHEL 7
9e8bad
9e8bad
* Tue Dec 11 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.6-1
9e8bad
- New upstream release
9e8bad
- Drop paramiko dependency, use OpenSSH ControlPersist instead.
52984c
52984c
* Wed Nov 07 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.5-2
52984c
- Fix cluster option reporting
52984c
52984c
* Mon Oct 22 2018 Jake Hunsaker <jhunsake@redhat.com> - 1.5-1
52984c
- Update to version 1.5
52984c
- Resolves CVE-2018-14650
52984c
a83f5e
* Wed Aug 01 2018 Jake Hunsaker <jhunsake@redhat.com> 1.4-3
a83f5e
- Initial RHEL 7 release