diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0cc4c97 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/sos-collector-1.4.tar.gz diff --git a/.sos-collector.metadata b/.sos-collector.metadata new file mode 100644 index 0000000..dfd379c --- /dev/null +++ b/.sos-collector.metadata @@ -0,0 +1 @@ +714f42935060879cb23ec320cbaf68fe6375790d SOURCES/sos-collector-1.4.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/sos-collector.spec b/SPECS/sos-collector.spec new file mode 100644 index 0000000..a6f7177 --- /dev/null +++ b/SPECS/sos-collector.spec @@ -0,0 +1,75 @@ +Summary: Capture sosreports from multiple nodes simultaneously +Name: sos-collector +Version: 1.4 +Release: 3%{?dist} +Source0: http://people.redhat.com/jhunsake/sos-collector/%{name}-%{version}.tar.gz +License: GPLv2 +BuildArch: noarch +Url: https://github.com/sosreport/sos-collector +Requires: sos >= 3.0 +Obsoletes: clustersos < 1.2.2-2 +Provides: clustersos = %{version}-%{release} + + +%if 0%{?rhel} +BuildRequires: python-devel +BuildRequires: python-paramiko +Requires: python-paramiko >= 2.0 +Requires: python2-futures +Requires: python-six +%else +BuildRequires: python3-devel +BuildRequires: python3-paramiko +Requires: python3-paramiko >= 2.0 +Requires: python3-six +%endif + + +%description +sos-collector is a utility designed to capture sosreports from multiple nodes +at once and collect them into a single archive. If the nodes are part of +a cluster, profiles can be used to configure how the sosreport command +is run on the nodes. + +%prep +%setup -q + +%build +%if 0%{?rhel} +%py2_build +%else +%py3_build +%endif + +%install +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 +install -p -m644 man/en/sos-collector.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/ +%if 0%{?rhel} +%py2_install +%else +%py3_install +%endif + + + +%check +%if 0%{?rhel} +%{__python2} setup.py test +%else +%{__python3} setup.py test +%endif + +%files +%{_bindir}/sos-collector +%if 0%{?rhel} +%{python2_sitelib}/* +%else +%{python3_sitelib}/* +%endif +%{_mandir}/man1/* + +%doc LICENSE + +%changelog +* Wed Aug 01 2018 Jake Hunsaker 1.4-3 +- Initial RHEL 7 release