Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37045373
en ru br
ALT Linux repos
S:4.4-alt3
5.0: 1.7.9.1-alt1
4.1: 1.7.9.1-alt1

Group :: System/Configuration/Other
RPM: sos

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _localedir %_datadir/locale

Summary: A set of tools to gather troubleshooting information from a system
Name: sos
Version: 4.4
Release: alt2
Packager: Evgeny Sinelnikov <sin at altlinux.ru>

Source: %name-%version.tar
License: GPL-2.0+
Group: System/Configuration/Other

BuildArch: noarch
Url: http://github.com/sosreport/sos

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-sphinx-sphinx-build-symlink
BuildRequires: python3-module-wheel
Requires: libxml2-python
Provides: sysreport = 1.3.15-8

Patch: %name-%version-alt.patch

%filter_from_requires /setuptools._vendor.packaging/d
%py3_requires setuptools

%description
Sos is a set of tools that gathers information about system
hardware and configuration. The information can then be used for
diagnostic purposes and debugging. Sos is commonly used to help
support technicians and developers.

%prep
%setup -q -n %name-%version
%patch -p1

%build
%pyproject_build

%install
%pyproject_install
mkdir -p %buildroot%_sysconfdir/sos/{cleaner,presets.d,extras.d,groups.d}
mkdir -p %buildroot%_sbindir
mv %buildroot%_bindir/* %buildroot%_sbindir
mv %buildroot%_prefix/config/sos.conf %buildroot%_sysconfdir/sos/sos.conf
rm -f %buildroot%_defaultdocdir/%name/{AUTHORS,README.md}
rm -f %buildroot%_datadir/licenses/sos/LICENSE
%find_lang %name

%files -f %name.lang
%doc AUTHORS README.md docs/*
%config(noreplace) %_sysconfdir/sos/sos.conf
%_sbindir/sos
%_sbindir/sosreport
%_sbindir/sos-collector
%dir %_sysconfdir/sos/cleaner
%dir %_sysconfdir/sos/presets.d
%dir %_sysconfdir/sos/extras.d
%dir %_sysconfdir/sos/groups.d
%python3_sitelibdir/sos
%python3_sitelibdir/%{pyproject_distinfo sos}
%_man1dir/sos*.1*
%_man5dir/sos.conf.5*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin