diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3990c88 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +abgraph-1.1.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index 6502f26..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: abgraph -# $Id$ -NAME := abgraph -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 $$/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) diff --git a/abgraph.spec b/abgraph.spec new file mode 100644 index 0000000..2d290c0 --- /dev/null +++ b/abgraph.spec @@ -0,0 +1,54 @@ +Name: abgraph +Version: 1.1 +Release: 2%{?dist} + +Summary: ABGraph is a simple tool to benchmark webservers + +License: GPLv3+ +Group: Applications/Productivity +URL: http://sourceforge.net/projects/abgraph +Source: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Requires: gnuplot, httpd + +%description +ABGraph is a simple tool to benchmark webservers. +The program uses ab (apache benchmark) to actually +benchmark the selected remote host. A graph in PNG format +is generated with gnuplot and saved to the selected path/file. + +%prep +%setup -q + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -Dpm 755 abgraph.sh $RPM_BUILD_ROOT%{_bindir}/abgraph + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README COPYING +%{_bindir}/abgraph + + +%changelog +* Fri Nov 7 2008 Marek Mahut - 1.1-2 +- Ab command is in httpd package (RHBZ#463015) + +* Wed Jun 25 2008 Marek Mahut - 1.1-1 +- Upstream release + +* Tue May 29 2008 Marek Mahut - 1.0-2 +- Insecure temporary file fix +- Minor script modifications + +* Tue May 20 2008 Marek Mahut - 1.0-1 +- First build diff --git a/sources b/sources index e69de29..f1bc639 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7b9f2cc980e25b5e2bf8cb13b34a7e77 abgraph-1.1.tar.gz