sos/sos.spec

58 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-02-18 09:46:04 +08:00
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: sos
2021-09-15 11:14:52 +08:00
Version: 3.8
Release: 1
2020-02-18 09:46:04 +08:00
Summary: A set of tools to gather troubleshooting information from a system
License: GPLv2+
2021-09-15 11:14:52 +08:00
URL: https://github.com/sosreport/sos
Source0: https://github.com/sosreport/sos/archive/%{version}/%{name}-%{version}.tar.gz
Patch9000: openEuler-add-openEuler-policy.patch
Patch9001: add-uniontech-os-support.patch
2020-06-02 16:38:49 +08:00
2020-02-18 09:46:04 +08:00
BuildRequires: python3-devel gettext python3-six
2021-09-15 11:14:52 +08:00
Requires: libxml2-python3 xz python3-rpm tar bzip2 python3-six
2020-02-18 09:46:04 +08:00
BuildArch: noarch
%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}'
2021-09-15 11:14:52 +08:00
2020-02-18 09:46:04 +08:00
install -Dm644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
%find_lang %{name} || echo 0
%files -f %{name}.lang
%{_sbindir}/sosreport
%{python3_sitelib}/*
2021-09-15 11:14:52 +08:00
%license LICENSE
%config(noreplace) %{_sysconfdir}/sos.conf
2020-02-18 09:46:04 +08:00
%files help
%defattr(-,root,root)
%doc AUTHORS README.md
2021-09-15 11:14:52 +08:00
%{_mandir}/man1/*
%{_mandir}/man5/*
2020-02-18 09:46:04 +08:00
%changelog
2021-09-15 11:14:52 +08:00
* Tue Sep 14 2021 baizhonggui <baizhonggui@huawei.com> - 3.8-1
- Update to 3.8
* Tue May 11 2021 shixuantong <shixuantong@huawei.com> - 3.6-6
- add openEuler policy and fix exception in plugin method "yum.collect()"
2020-02-18 09:46:04 +08:00
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.6-5
- Package init