sos/sos.spec

67 lines
2.3 KiB
RPMSpec

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: sos
Version: 3.6
Release: 6
Summary: A set of tools to gather troubleshooting information from a system
License: GPLv2+
URL: http://github.com/sosreport/sos
Source0: https://github.com/sosreport/sos/archive/%{version}.tar.gz
BuildRequires: python3-devel gettext python3-six
Requires: libxml2-python3 bzip2 xz python3-six
BuildArch: noarch
Patch0: kernel-dont-collect-some-tracing-instance-files.patch
Patch6000: backport-policies-sanitize-report-label.patch
Patch6001: backport-archive-Dont-copystat-sys-and-proc-paths.patch
Patch6002: backport-archive-simplify-FileCacheArchive.makedirs.patch
Patch6003: backport-archive-normalise-dest_dir-in-FileCacheArchive._chec.patch
Patch6004: backport-archive-replace-FileCacheArchive._makedirs.patch
Patch6005: backport-Policies-Plugins-Add-services-member.patch
Patch6006: backport-Plugin-fix-exception-raise-in-Plugin._copy_dir.patch
Patch6007: backport-archive-fix-leading-path-creation.patch
Patch6008: backport-archive-add-link-follow-up-to-FileCacheArchive.add_l.patch
Patch6009: backport-archive-remove-unused-copy-arg-from-FileCacheArchive.patch
Patch6010: backport-archive-fix-local-variable-name-in-FileCacheArchive.patch
Patch9000: openEuler-add-openEuler-policy.patch
%description
Sos is an extensible, portable, support data collection tool primarily
aimed at Linux distributions and other UNIX-like operating systems.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%py3_build
%install
%py3_install '--install-scripts=%{_sbindir}'
install -Dm644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
%find_lang %{name} || echo 0
%files -f %{name}.lang
%license LICENSE
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sos.conf
%{_sbindir}/sosreport
%{python3_sitelib}/*
%files help
%defattr(-,root,root)
%doc AUTHORS README.md
%{_mandir}/man1/sosreport.1.gz
%{_mandir}/man5/sos.conf.5.gz
%changelog
* Tue May 11 2021 shixuantong <shixuantong@huawei.com> - 3.6-6
- add openEuler policy and fix exception in plugin method "yum.collect()"
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.6-5
- Package init