This repository has been archived by the owner on Sep 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
sos-collector.spec
105 lines (84 loc) · 2.48 KB
/
sos-collector.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Summary: Capture sosreports from multiple nodes simultaneously
Name: sos-collector
Version: 1.8
Release: 1%{?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} == 7
BuildRequires: python-devel
Requires: python-futures
Requires: python-six
Requires: python-pexpect
%else
BuildRequires: python3-devel
Requires: python3-six
Requires: python3-pexpect
%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} == 7
%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} == 7
%py2_install
%else
%py3_install
%endif
%check
%if 0%{?rhel} == 7
%{__python2} setup.py test
%else
%{__python3} setup.py test
%endif
%files
%{_bindir}/sos-collector
%if 0%{?rhel} == 7
%{python2_sitelib}/*
%else
%{python3_sitelib}/*
%endif
%{_mandir}/man1/*
%license LICENSE
%changelog
* Wed Sep 04 2019 Jake Hunsaker <[email protected]> - 1.8-1
- New upstream release
* Mon Apr 01 2019 Jake Hunsaker <[email protected]> - 1.7-1
- New upstream release
- Overhaul mechanism of execution of sosreport in containers
- Added RHCOS support
- Added a 'none' cluster type
* Tue Dec 11 2018 Jake Hunsaker <[email protected]> - 1.6-1
- Drop paramiko dependency, use OpenSSH ControlPersist instead
- Layered cluster profiles can now accept base profile options
- Debian/Ubuntu hosts now supported
* Thu Oct 11 2018 Jake Hunsaker <[email protected]> - 1.5-1
- New upstream release
- Resolves CVE-2018-14650
* Fri Jun 22 2018 Jake Hunsaker <[email protected]> 1.4-1
- New upstream release
* Thu May 24 2018 Jake Hunsaker <[email protected]> 1.3-3
- Fix sos-collector archive organization
- Fix cluster option validation
* Mon May 07 2018 Jake Hunsaker <[email protected]> 1.3-2
- Fix collection of sosreport tarballs
* Fri Apr 27 2018 Jake Hunsaker <[email protected]> 1.3-1
- Reset versioning to continue from clustersos
* Thu Apr 26 2018 Jake Hunsaker <[email protected]> 1.0-1
- Renamed project to sos-collector
- Moved github repo to sosreport org