File weighttp.spec of Package weighttp
# norootforbuild
Name: weighttp
Version: 0.3
%define deb_release 3
Release: 0
#
Group: Productivity/Networking/Web/Servers
License: BSD-3-Clause
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libev-devel python
#
Url: http://redmine.lighttpd.net/projects/weighttp/wiki
Source: weighttp_%{version}.orig.tar.gz
Patch1: weighttp_%{version}-%{deb_release}.debian.tar.gz
#
Summary: Small tool to benchmark webservers
%description
weighttp (pronounced weighty) is a lightweight and small benchmarking tool for
webservers. It was designed to be very fast and easy to use and only supports
a tiny fraction of the HTTP protocol in order to be lean and simple. weighttp
supports multithreading to make good use of modern CPUs with multiple cores as
well as asynchronous i/o for concurrent requests within a single thread.
%prep
%setup
%patch1 -p1
%build
./waf configure --prefix=%{_prefix}
./waf build
%install
./waf install --destdir=%{buildroot}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING README TODO
%{_bindir}/weighttp
%changelog