From b7e0351d69f561d2c25878dc5269bdeb290ed059 Mon Sep 17 00:00:00 2001 From: sconklin Date: Wed, 12 Jul 2006 19:17:06 +0000 Subject: Initial import, moved project from internal server to 108 git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@5 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/sos.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 src/sos.spec (limited to 'src/sos.spec') diff --git a/src/sos.spec b/src/sos.spec new file mode 100644 index 00000000..f79069b4 --- /dev/null +++ b/src/sos.spec @@ -0,0 +1,74 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_siteinc: %define python_siteinc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")} + +%define name sos +%define version 0.1 +# change release in setup.py and this file +%define release 6 + +Summary: System Support Tools +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: python >= 0:2.3 +URL: http://www.redhat.com/support/ +# Using local source tarball until this can be released to public CVS system +Source0: %{name}-%{version}.tar.bz2 + +%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 + +%build +python setup.py build + +%install +rm -rf ${RPM_BUILD_ROOT} +# The python setup.py does the same thing as the make install in other packages +%{__python} setup.py install --root=${RPM_BUILD_ROOT} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_sbindir}/sosreport +%dir %{python_sitelib}/sos/ +%{python_sitelib}/sos/plugins +%{python_sitelib}/sos/plugintools.py* +%{python_sitelib}/sos/__init__.py* +%{python_sitelib}/sos/helpers.py* +%{python_sitelib}/sos/policyredhat.py* +%doc README TODO + +%changelog +* 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