File httperf.spec of Package httperf

# spec file for package httperf
# Copyright (c) 2017 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:           httperf
Version:        0.9.0+git.20170724
Release:        0
Summary:        A tool for measuring web server performance
License:        SUSE-GPL-2.0+-with-openssl-exception
Group:          Productivity/Networking/Web/Utilities
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}.changes
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
%if 0%{?suse_version} >= 1330
BuildRequires:  libopenssl-1_0_0-devel
BuildRequires:  openssl-devel

httperf is a tool for measuring web server performance. It provides a
flexible facility for generating various HTTP workloads and for measuring
server performance.

%setup -q
# replace build date with date from changelog
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find .  -name '*.[ch]' |\
    xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
chmod -x AUTHORS ChangeLog NEWS TODO

mkdir m4
autoreconf -fiv
make %{?_smp_mflags}



openSUSE Build Service is sponsored by