Group :: Sistema/Configurações/Rede
RPM: sos
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%{!?python_sitelib: %define python_sitelib %(%__python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define name sos
%define version 1.7
%define release 9.1
%define _localedir %_datadir/locale
Summary: A set of tools to gather troubleshooting information from a system
Name: sos
Version: %version.%release
Release: alt1
# The source for this package was pulled from upstream's svn. Use the
# following commands to generate the tarball:
# svn --username guest export https://sos.108.redhat.com/svn/sos/tags/r1-7 sos-1.7
# tar -czvf sos-1.7.tar.gz sos-1.7
Packager: Denis Medvedev <nbr at altlinux.ru>
Source: %name-%version-%release.tar
Patch0: sos-tty-sysreport.diff
Patch1: sos-temp-backport.diff
License: GPL
Group: System/Configuration/Other
BuildArch: noarch
Url: http://sos.108.redhat.com/
BuildPreReq: python-devel
Requires: libxml2-python
Provides: sysreport = 1.3.15-8
%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-%release
%patch0 -p1
%patch1 -p1
%build
%__python setup.py build
%install
%__python setup.py install --optimize 1 --root=%buildroot
ln -s %_sbindir/sosreport %buildroot%_sbindir/sysreport
%files
%_sbindir/sosreport
%_bindir/rh-upload-core
%_sbindir/sysreport
%_sbindir/sysreport.legacy
%_datadir/sysreport
%python_sitelibdir/sos/
%_man1dir/sosreport.1*
%_localedir/*/LC_MESSAGES/sos.mo
%doc README README.rh-upload-core TODO LICENSE ChangeLog
%changelog
…
Todas as alterações você pod ver aqui
%define name sos
%define version 1.7
%define release 9.1
%define _localedir %_datadir/locale
Summary: A set of tools to gather troubleshooting information from a system
Name: sos
Version: %version.%release
Release: alt1
# The source for this package was pulled from upstream's svn. Use the
# following commands to generate the tarball:
# svn --username guest export https://sos.108.redhat.com/svn/sos/tags/r1-7 sos-1.7
# tar -czvf sos-1.7.tar.gz sos-1.7
Packager: Denis Medvedev <nbr at altlinux.ru>
Source: %name-%version-%release.tar
Patch0: sos-tty-sysreport.diff
Patch1: sos-temp-backport.diff
License: GPL
Group: System/Configuration/Other
BuildArch: noarch
Url: http://sos.108.redhat.com/
BuildPreReq: python-devel
Requires: libxml2-python
Provides: sysreport = 1.3.15-8
%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-%release
%patch0 -p1
%patch1 -p1
%build
%__python setup.py build
%install
%__python setup.py install --optimize 1 --root=%buildroot
ln -s %_sbindir/sosreport %buildroot%_sbindir/sysreport
%files
%_sbindir/sosreport
%_bindir/rh-upload-core
%_sbindir/sysreport
%_sbindir/sysreport.legacy
%_datadir/sysreport
%python_sitelibdir/sos/
%_man1dir/sosreport.1*
%_localedir/*/LC_MESSAGES/sos.mo
%doc README README.rh-upload-core TODO LICENSE ChangeLog
%changelog
…
Todas as alterações você pod ver aqui