Blame SPECS/sos-collector.spec

09052a
Summary: Capture sosreports from multiple nodes simultaneously
09052a
Name: sos-collector
09052a
Version: 1.4
09052a
Release: 3%{?dist}
09052a
Source0: http://people.redhat.com/jhunsake/sos-collector/%{name}-%{version}.tar.gz
09052a
License: GPLv2
09052a
BuildArch: noarch
09052a
Url: https://github.com/sosreport/sos-collector
09052a
Requires: sos >= 3.0
09052a
Obsoletes: clustersos < 1.2.2-2
09052a
Provides: clustersos = %{version}-%{release}
09052a
09052a
09052a
%if 0%{?rhel}
09052a
BuildRequires: python-devel
09052a
BuildRequires: python-paramiko
09052a
Requires: python-paramiko >= 2.0
09052a
Requires: python2-futures
09052a
Requires: python-six
09052a
%else
09052a
BuildRequires: python3-devel
09052a
BuildRequires: python3-paramiko
09052a
Requires: python3-paramiko >= 2.0
09052a
Requires: python3-six
09052a
%endif
09052a
09052a
09052a
%description
09052a
sos-collector is a utility designed to capture sosreports from multiple nodes
09052a
at once and collect them into a single archive. If the nodes are part of
09052a
a cluster, profiles can be used to configure how the sosreport command
09052a
is run on the nodes.
09052a
09052a
%prep
09052a
%setup -q
09052a
09052a
%build
09052a
%if 0%{?rhel}
09052a
%py2_build
09052a
%else
09052a
%py3_build
09052a
%endif
09052a
09052a
%install
09052a
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
09052a
install -p -m644 man/en/sos-collector.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
09052a
%if 0%{?rhel}
09052a
%py2_install
09052a
%else
09052a
%py3_install
09052a
%endif
09052a
09052a
09052a
09052a
%check
09052a
%if 0%{?rhel}
09052a
%{__python2} setup.py test
09052a
%else
09052a
%{__python3} setup.py test
09052a
%endif
09052a
09052a
%files
09052a
%{_bindir}/sos-collector
09052a
%if 0%{?rhel}
09052a
%{python2_sitelib}/*
09052a
%else
09052a
%{python3_sitelib}/*
09052a
%endif
09052a
%{_mandir}/man1/*
09052a
09052a
%doc LICENSE
09052a
09052a
%changelog
09052a
* Wed Aug 01 2018 Jake Hunsaker <jhunsake@redhat.com> 1.4-3
09052a
- Initial RHEL 7 release