%global commit d8c968cead5a
Name: httpress
Version: 1.1.0
Release: 1%{?dist}
Summary: HTTP stress & benchmark utility
Group: System Environment/Daemons
License: BSD
URL: https://bitbucket.org/yarosla/httpress
Source0: https://bitbucket.org/yarosla/httpress/get/1.1.0.tar.gz#/%{name}-%{version}.tar.gz
Source1: httpress.8
Patch0: httpress-cflags.patch
BuildRequires: libev-devel
BuildRequires: gnutls-devel
%description
High performance HTTP server stress & benchmark utility inspired by
the weighttp tool. It is event-driven, multi-threaded and provides
support for SSL.
%prep
%setup -qn yarosla-%{name}-%{commit}
%patch0 -p1
%build
CFLAGS="${CFLAGS:-%optflags} -I/usr/include/libev" ; export CFLAGS ;
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_mandir}/man8/
install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man8/
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 bin/Release/httpress %{buildroot}%{_bindir}
%files
%{_bindir}/httpress
%{_mandir}/man8/httpress.8*
%changelog
* Thu Feb 27 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.1.0-1
- Initial version of the 1.1.0 version of the package