Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
074d562af0 | ||
|
|
f22a0eff7e | ||
|
|
8d5aa207d9 |
4 changed files with 57 additions and 21 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: wtop
|
||||
# $Id$
|
||||
NAME := wtop
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
cfaee42760c2b2661d2b60008f3719ba wtop-0.6.1.tar.gz
|
||||
56
wtop.spec
Normal file
56
wtop.spec
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
%{!?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: 2%{?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
|
||||
* 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue