File sysbench.spec of Package sysbench

#
# spec file for package sysbench
#
# 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 http://bugs.opensuse.org/
#


Name:           sysbench
Version:        1.0.11
Release:        0
Summary:        A MySQL benchmarking tool
License:        GPL-2.0
Group:          System/Benchmark
URL:            https://github.com/akopytov/sysbench
Source0:        https://github.com/akopytov/sysbench/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  cram
BuildRequires:  docbook
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  libaio-devel
BuildRequires:  libtool
BuildRequires:  libxslt-tools
BuildRequires:  mysql-devel
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig
BuildRequires:  postgresql-devel
BuildRequires:  vim
BuildRequires:  pkgconfig(ck)
BuildRequires:  pkgconfig(luajit)

%description
This benchmark was designed for identifying basic system parameters, as
they are important for systems using MySQL (w Innodb) under intensive
load.

%prep
%setup -q

%build
autoreconf -fiv
%configure \
  --without-gcc-arch \
  --with-system-ck \
  --with-system-luajit \
  --with-pgsql
make %{?_smp_mflags} V=1

%check
# Do not use bundled cram
sed -i "s|${SBTEST_ROOTDIR}/../third_party/cram/scripts:||g" \
 tests/test_run.sh
make %{?_smp_mflags} test

%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/sysbench

%files
%doc COPYING ChangeLog README.md doc/manual.html
%{_bindir}/sysbench
%{_datadir}/sysbench

%changelog
openSUSE Build Service is sponsored by