File siege.spec of Package siege3

# spec file for package siege
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <>
# 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:           siege
Version:        3.0.8
Release:        0
Summary:        HTTP Regression Testing/Benchmarking Utility
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Utilities
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(openssl)
BuildRequires:  gcc
Requires:       perl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Siege is a regression test and benchmark utility.
It can stress test a single URL with a user defined number of simulated users,
or it can read many URLs into memory and stress them simultaneously.
The program reports the total number of hits recorded, bytes transferred,
response time, concurrency, and return status.
Siege supports HTTP/1.0 and 1.1 protocols, GET and POST directives, cookies,
transaction logging, and basic authentication. Its features are configurable
on a per user basis.
Since 3.0.0 it also supports FTP.

%setup -q
rm README.solaris

%configure \
  --sysconfdir="%{_sysconfdir}/%{name}" \

make %{?_smp_mflags}

install -d "%{buildroot}%{_sysconfdir}/%{name}"
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%doc doc/siegerc
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/siegerc
%config(noreplace) %{_sysconfdir}/%{name}/urls.txt