Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37530314
en ru br
Репозитории ALT
S:4.4-alt3
5.1: 1.7.9.1-alt1
4.1: 1.7.9.1-alt1
www.altlinux.org/Changes

Группа :: Система/Настройка/Прочее
Пакет: sos

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin