A new user interface for you! Read more...

File siege.spec of Package siege3

#
# spec file for package siege
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 http://bugs.opensuse.org/
#


Name:           siege
Version:        3.0.8
Release:        0
Summary:        HTTP Regression Testing/Benchmarking Utility
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Utilities
Url:            http://www.joedog.org/siege/
Source:         http://download.joedog.org/siege/siege-%{version}.tar.gz
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(openssl)
BuildRequires:  gcc
Requires:       perl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.

%prep
%setup -q
rm README.solaris

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

make %{?_smp_mflags}

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

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING KNOWNBUGS MACHINES NEWS PLATFORM README*
%doc doc/siegerc
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/siegerc
%config(noreplace) %{_sysconfdir}/%{name}/urls.txt
%{_bindir}/bombardment
%{_bindir}/siege
%{_bindir}/siege2csv.pl
%{_bindir}/siege.config
%{_mandir}/man1/bombardment.1*
%{_mandir}/man1/siege.1*
%{_mandir}/man1/siege2csv.1*
%{_mandir}/man1/siege.config.1*
%{_mandir}/man5/urls_txt.5*
%{_mandir}/man7/layingsiege.7*

%changelog