File weighttp.spec of Package weighttp

# norootforbuild

Name:           weighttp
Version:        0.5
Release:        0
#
%define pkg_name %{name}
%define pkg_version %{version}
%define tarball_version %{version}
#
Group:          Productivity/Networking/Web/Servers
License:        BSD-3-Clause
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libev-devel meson
#
Url:            http://redmine.lighttpd.net/projects/weighttp/wiki
Source:         %{name}_%{tarball_version}.orig.tar.xz
#
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
%autosetup -n %{pkg_name}-%{pkg_version}

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc COPYING README TODO
%{_bindir}/weighttp

%changelog
openSUSE Build Service is sponsored by