1 Summary: A set of tools to gather troubleshooting information from a system
5 Group: Applications/System
6 Source0: https://fedorahosted.org/releases/s/o/sos/sos-%{version}.tar.gz
7 # Source0-md5: fc841fd760558594bb189d745fc67f0c
9 URL: http://fedorahosted.org/sos
10 BuildRequires: python-devel
12 Patch1: py-compiled.patch
14 Requires: python-libxml2
16 Provides: sysreport = 1.4.3-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Sos is a set of tools that gathers information about system hardware
23 and configuration. The information can then be used for diagnostic
24 purposes and debugging. Sos is commonly used to help support
25 technicians and developers.
28 %setup -q -n sos-%{version}
33 %{__python} setup.py build
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_sbindir}
39 install -D -p gpgkeys/rhsupport.pub $RPM_BUILD_ROOT%{_datadir}/sos/rhsupport.pub
40 install -D -p extras/sysreport/sysreport.legacy $RPM_BUILD_ROOT%{_datadir}/sos/sysreport
41 ln -s sosreport $RPM_BUILD_ROOT%{_sbindir}/sysreport
42 %{__python} setup.py install \
45 --root $RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc README README.rh-upload TODO LICENSE ChangeLog
57 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sos.conf
58 %attr(755,root,root) %{_bindir}/rh-upload
59 %attr(755,root,root) %{_sbindir}/sosreport
60 %attr(755,root,root) %{_sbindir}/sysreport
61 %attr(755,root,root) %{_sbindir}/sysreport.legacy
64 %{_mandir}/man1/sosreport.1*
66 %dir %{py_sitescriptdir}/sos
67 %dir %{py_sitescriptdir}/sos/plugins
68 %{py_sitescriptdir}/sos/*.py[co]
69 %{py_sitescriptdir}/sos/plugins/*.py[co]
70 %if "%{py_ver}" > "2.4"
71 %{py_sitescriptdir}/sos-*.egg-info