]> git.pld-linux.org Git - SPECS.git/blob - sosreport.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / sosreport.spec
1 Summary:        A set of tools to gather troubleshooting information from a system
2 Name:           sosreport
3 Version:        1.8
4 Release:        0.2
5 Group:          Applications/System
6 Source0:        https://fedorahosted.org/releases/s/o/sos/sos-%{version}.tar.gz
7 # Source0-md5:  fc841fd760558594bb189d745fc67f0c
8 License:        GPL v2+
9 URL:            http://fedorahosted.org/sos
10 BuildRequires:  python-devel
11 Patch0:         pld.patch
12 Patch1:         py-compiled.patch
13 Requires:       bzip2
14 Requires:       python-libxml2
15 Requires:       tar
16 Provides:       sysreport = 1.4.3-13
17 Obsoletes:      sysreport
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
26
27 %prep
28 %setup -q -n sos-%{version}
29 %patch0 -p1
30 %patch1 -p1
31
32 %build
33 %{__python} setup.py build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_sbindir}
38
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 \
43         --optimize=2 \
44         --skip-build \
45         --root $RPM_BUILD_ROOT
46
47 %py_postclean
48
49 %find_lang sos
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files -f sos.lang
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
62 %{_datadir}/sos
63 %{_datadir}/sysreport
64 %{_mandir}/man1/sosreport.1*
65
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
72 %endif
This page took 0.399167 seconds and 3 git commands to generate.