Blob Blame History Raw
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           wtop
Version:        0.6.1
Release:        3%{?dist}
Summary:        Top for Webserver

Group:          Applications/Internet
License:        BSD
URL:            http://code.google.com/p/wtop/
Source0:        http://wtop.googlecode.com/files/%{name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python-devel, python-setuptools
Requires:       python-GeoIP

%description
Wtop like "top" for your webserver.

%prep
%setup -q
sed -i -e "s|#!/usr/bin/python||" logrep.py
sed -i -e "s|/var/log/apache2/|/var/log/httpd/|" wtop.cfg


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1  --root $RPM_BUILD_ROOT



%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/wtop
%{_bindir}/logrep
%{python_sitelib}/*.egg-info
%{python_sitelib}/logrep.*
%config(noreplace) %{_sysconfdir}/wtop.cfg




%changelog
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Fri Nov 27 2009 Kushal Das <kushal@fedoraproject.org> 0.6.1-2
- adding sed command in prep section

* Fri Oct 30 2009 Kushal Das <kushal@fedoraproject.org> 0.6.1-1
- Initial release