From 1dc09ad7a97d80130f72969ac6c0bba091a552ed Mon Sep 17 00:00:00 2001 From: shnavid Date: Wed, 4 Jul 2007 22:06:33 +0000 Subject: * re-added custom sos.spec because bdist_rpm's .spec is not sane git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@173 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/sos.spec | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 src/sos.spec diff --git a/src/sos.spec b/src/sos.spec new file mode 100644 index 00000000..025b335c --- /dev/null +++ b/src/sos.spec @@ -0,0 +1,137 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%define name sos +%define version 1.6 +%define release 3 + +Summary: Sos is a set of tools to gather troubleshooting information from a system +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Source0: %{name}-%{version}.tar.gz +License: GPL +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +BuildArch: noarch +Packager: Navid Sheikhol-Eslami +Url: http://sos.108.redhat.com/ +BuildRequires: python-devel + +%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 + + +%build +python setup.py build + +%install +rm -rf ${RPM_BUILD_ROOT} +python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES +# 'brp-compress' gzips the man pages without distutils knowing... fix this +sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES + + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root,-) +%{_sbindir}/sosreport +%{python_sitelib}/sos/ +%{_mandir}/man1/sosreport.1* +%doc README TODO LICENSE + +%changelog +* Mon Jul 2 2007 Navid Sheikhol-Eslami - 1.6-3 +- Other fixes to make package Fedora compliant. + +* Mon Jul 2 2007 Navid Sheikhol-Eslami - 1.6-2 +- Minor fixes. + +* Mon Jul 2 2007 Navid Sheikhol-Eslami - 1.6-1 +- Beautified output of --list-plugins. +- GPL licence is now included in the package. +- added python-devel requirement for building package +- fixed incompatibility with python from RHEL4 + +* Fri May 25 2007 Steve Conklin - 1.5-1 +- Bumped version + +* Fri May 25 2007 Steve Conklin - 1.4-2 +- Fixed a backtrace on nonexistent file in kernel plugin (thanks, David Robinson) + +* Mon Apr 30 2007 Steve Conklin - 1.4-1 +- Fixed an error in option handling +- Forced the file generated by traceroute to not end in .com +- Fixed a problem with manpage +- Added optional traceroute collection to networking plugin +- Added clalance's patch to gather iptables info. +- Fixes to the device-mapper plugin +- Fixed a problem with installation of man page + +* Mon Apr 16 2007 Steve Conklin - 1.3-3 +- including patches to fix the following: +- Resolves: bz219745 sosreport needs a man page +- Resolves: bz219667 sosreport does not terminate cleanly on ^C +- Resolves: bz233375 Make SOS flag the situation when running on a fully virtu... +- Resolves: bz234873 rhel5 sos needs to include rpm-va by default +- Resolves: bz219669 sosreport multi-threaded option sometimes fails +- Resolves: bz219671 RFE for sosreport - allow specification of plugins to be run +- Resolves: bz219672 RFE - show progress while sosreport is running +- Resolves: bz219673 Add xen information gathering to sosreport +- Resolves: bz219675 Collect information related to the new driver update model +- Resolves: bz219877 'Cancel' button during option selection only cancels sele... + +* Tue Feb 20 2007 John Berninger - 1.3-2 +- Add man page + +* Fri Dec 15 2006 Steve Conklin - 1.3-1 +- really fixed bz_219654 + +* Fri Dec 15 2006 Steve Conklin - 1.2-1 +- fixed a build problem + +* Fri Dec 15 2006 Steve Conklin - 1.1-1 +- Tighten permissions of tmp directory so only readable by creator bz_219657 +- Don't print message 'Problem at path ...' bz_219654 +- Removed useless message bz_219670 +- Preserve file modification times bz_219674 +- Removed unneeded message about files on copyProhibitedList bz_219712 + +* Wed Aug 30 2006 Steve Conklin - 1.0-1 +- Seperated upstream and RPM versioning + +* Mon Aug 21 2006 Steve Conklin - 0.1-11 +- Code cleanup, fixed a regression in threading + +* Mon Aug 14 2006 Steve Conklin - 0.1-10 +- minor bugfixes, added miltithreading option, setup now quiet + +* Mon Jul 17 2006 Steve Conklin - 0.1-9 +- migrated to svn on 108.redhat.com, fixed a problem with command output linking in report + +* Mon Jun 19 2006 Steve Conklin - 0.1-6 +- Added LICENSE file containing GPL + +* Wed May 31 2006 Steve Conklin - 0.1-5 +- Added fixes to network plugin and prepped for Fedora submission + +* Wed May 31 2006 John Berninger - 0.1-4 +- Reconsolidated subpackages into one package per discussion with sconklin + +* Mon May 22 2006 John Berninger - 0.1-3 +- Added ftp, ldap, mail, named, samba, squid SOS plugins +- Fixed various errors in kernel and hardware plugins + +* Mon May 22 2006 John Benringer - 0.1-2 +- split off cluster plugin into subpackage +- correct file payload lists + +* Mon May 22 2006 John Berninger - 0.1-1 +- initial package build -- cgit