File flood.spec of Package flood

#
# spec file for package flood (Version 1.1_20070202)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           flood
BuildRequires:  apache2-devel db-devel libapr-util1-devel openldap2-devel pcre-devel libxslt openssl-devel autoconf
%if %{?suse_version:1}0
BuildRequires:  docbook2x docbook-xsl-stylesheets 
%endif
%if %{?fedora_version:1}0
BuildRequires:  docbook-utils docbook-style-xsl
%endif
URL:            http://httpd.apache.org/test/flood/
Version:        1.1_20070202
Release:        10
Summary:        Flood--a Profile-Driven HTTP/HTTPS Load Tester
License:        The Apache Software License
Group:          Productivity/Networking/Web/Utilities
Autoreqprov:    on
Source:         flood-20070202.tar.bz2
Patch3:         flood-docbookx.dtd.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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:
http://httpd.apache.org/test/flood/faq.html



Authors:
--------
    Aaron Bannert <aaron@clove.org>
    Justin Erenkrantz <jerenkrantz@apache.org>
    ...and other members of the Apache Software Foundation, please see <http://www.apache.org/>

%prep
%setup -q -n flood
%patch3 -p1

%build
autoconf
CFLAGS="$(/usr/sbin/apxs2 -q CFLAGS)" \
./configure 	--prefix=%{_prefix} \
		--with-apr=%{_bindir}/apr-1-config \
		--with-apr-util=%{_bindir}/apu-1-config \
		--enable-ssl \
		--with-capath=/etc/ssl/certs
make 
%if %{?suse_version:1}0
make -C docs/docbook docbook=/usr/share/xml/docbook/stylesheet/nwalsh/current
%endif
%if %{?fedora_version:1}0
make -C docs/docbook docbook=/usr/share/sgml/docbook/xsl-stylesheets/
%endif

%install
rm -rf $RPM_BUILD_ROOT
install -D flood -m 755 $RPM_BUILD_ROOT/usr/bin/flood

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGES CONFIG DESIGN LICENSE STATUS
%doc examples
%doc docs/manual
/usr/bin/*

%changelog -n flood
* Mon Feb 05 2007 - ro@suse.de
- fix patch apply command in specfile
* Fri Feb 02 2007 - poeml@suse.de
- update to svn snapshot r502732
  * Add extraheader attribute to url's to allow custom headers to be set.
  * Add payloadfile attribute to url's to allow the body to be read from a file.
  * Support custom HTTP methods.
  * Fix corruption when we have multiple usefarmer's without a count.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 - poeml@suse.de
- update to SVN snapsnot of 20060111
* Tue Oct 12 2004 - ro@suse.de
- added libgcrypt,libgpg-error to neededforbuild
* Wed Mar 03 2004 - poeml@suse.de
- update to 1.1 CVS snapshot 20040303
- fix to build with APR 0.9 (prototype of apr_socket_create)
- build the manual
- compile with $(apxs2 -q CFLAGS)
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Tue Jul 29 2003 - coolo@suse.de
- don't have an empty %%post
- don't define rpaths to not existant paths
* Wed Dec 04 2002 - poeml@suse.de
- use macro apache2-devel-packages in #neededforbuild
- add db-devel to #neededforbuild (to able to build on older
  distributions)
* Tue Dec 03 2002 - poeml@suse.de
- new package (0.4 version, but I took it from cvs because we don't
  need the shipped apr)
openSUSE Build Service is sponsored by