1 |
Name: siege |
2 |
Version: 3.0.8 |
3 |
Release: %mkrel 1 |
4 |
Summary: HTTP regression testing and benchmarking utility |
5 |
Group: Networking/Other |
6 |
License: GPLv2+ |
7 |
URL: http://www.joedog.org/JoeDog/Siege |
8 |
Source0: http://download.joedog.org/siege/%{name}-%{version}.tar.gz |
9 |
Patch1: siege-libjoedog.patch |
10 |
|
11 |
BuildRequires: openssl-devel |
12 |
BuildRequires: libtool |
13 |
BuildRequires: libjoedog-devel |
14 |
|
15 |
Requires: libjoedog >= 0.1.2 |
16 |
|
17 |
%description |
18 |
Siege is an HTTP regression testing and benchmarking utility. |
19 |
It was designed to let web developers measure the performance of their code |
20 |
under duress, to see how it will stand up to load on the internet. |
21 |
Siege supports basic authentication, cookies, HTTP and HTTPS protocols. |
22 |
It allows the user hit a web server with a configurable number of concurrent |
23 |
simulated users. Those users place the web-server "under siege." |
24 |
|
25 |
%prep |
26 |
%setup -q -c |
27 |
cd %{name}-%{version} |
28 |
%patch1 |
29 |
# Better default for log file (Bug 644631) |
30 |
sed -i.orig doc/siegerc.in -e 's/^# logfile = *$/logfile = ${HOME}\/siege.log/' |
31 |
# Reattach to autoconf and remove header files of bundled library |
32 |
rm -f *.m4 |
33 |
rm -rf include/joedog/*.h |
34 |
sed -i -e 's/AC_PROG_SHELL//' configure.ac |
35 |
autoreconf --install --force |
36 |
|
37 |
%build |
38 |
cd %{name}-%{version} |
39 |
%configure --sysconfdir=/etc/siege |
40 |
%make |
41 |
|
42 |
%install |
43 |
cd %{name}-%{version} |
44 |
mkdir -p %{buildroot}%{_sysconfdir}/siege |
45 |
# Create /etc/siege/urls.txt |
46 |
%makeinstall_std |
47 |
|
48 |
%files |
49 |
%doc %{name}-%{version}/AUTHORS |
50 |
%doc %{name}-%{version}/ChangeLog |
51 |
%doc %{name}-%{version}/COPYING |
52 |
%doc %{name}-%{version}/KNOWNBUGS |
53 |
%doc %{name}-%{version}/MACHINES |
54 |
%doc %{name}-%{version}/NEWS |
55 |
%doc %{name}-%{version}/PLATFORM |
56 |
%doc %{name}-%{version}/README |
57 |
%doc %{name}-%{version}/README.https |
58 |
%{_bindir}/bombardment |
59 |
%{_bindir}/siege |
60 |
%{_bindir}/siege.config |
61 |
%{_bindir}/siege2csv.pl |
62 |
%{_mandir}/man*/* |
63 |
%dir %{_sysconfdir}/siege |
64 |
%config(noreplace) %{_sysconfdir}/siege/urls.txt |
65 |
%config(noreplace) %{_sysconfdir}/siege/siegerc |
66 |
|