File flood.spec of Package flood

# spec file for package flood
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           flood
Version:        20080926
Release:        0
Summary:        Flood--a Profile-Driven HTTP/HTTPS Load Tester
License:        Apache-2.0
Group:          Productivity/Networking/Web/Utilities
Source:         flood-%{version}.tar.bz2
Patch3:         flood-docbookx.dtd.dif
BuildRequires:  apache2-devel
BuildRequires:  autoconf
BuildRequires:  db-devel
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  docbook2x
BuildRequires:  apr-devel
BuildRequires:  apr-util-devel
BuildRequires:  libxslt
BuildRequires:  openldap2-devel
BuildRequires:  openssl-devel
BuildRequires:  pcre-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Flood is a profile-driven HTTP load tester. It can be used to gather
important performance metrics for your Web site.

See the FAQ for common questions about flood:

%setup -q -n flood
%patch3 -p1

CFLAGS="$(%{_sbindir}/apxs2 -q CFLAGS)" \
%configure \
  --with-apr=%{_bindir}/apr-1-config \
  --with-apr-util=%{_bindir}/apu-1-config \
  --enable-ssl \
make %{?_smp_mflags}
make %{?_smp_mflags} -C docs/docbook docbook=%{_datadir}/xml/docbook/stylesheet/nwalsh/current

install -D flood -m 755 %{buildroot}%{_bindir}/flood

%doc examples
%doc docs/manual