File sysbench.spec of Package sysbench
#
# spec file for package sysbench
#
# Copyright (c) 2015 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: 0.5.0+r122
Release: 0
Summary: A MySQL benchmarking tool
License: GPL-2.0
Group: System/Benchmark
Url: https://github.com/akopytov/sysbench
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-example-tests.tar.bz2
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: docbook
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gcc-c++
BuildRequires: libaio-devel
BuildRequires: libtool
BuildRequires: libxslt-tools
BuildRequires: mysql-devel
BuildRequires: openssl-devel
BuildRequires: postgresql-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%setup -q -T -D -a 1
./autogen.sh
%build
%configure \
--with-pgsql
make %{?_smp_mflags} -e CFLAGS="%{optflags}" CXXFLAGS="%{optflags} -fno-exceptions" 'VERSION_NO="\"%{version}\""'
%install
# Version will be used for link to library: .so.% version, see below in % files
%make_install
install -d -m 755 %{buildroot}%{_datadir}/sysbench
install -D -m 755 sysbench-example-tests/sysbench-example-test %{buildroot}%{_datadir}/sysbench/sysbench-example-test
install -D -m 755 sysbench-example-tests/sysbench-example-all-tests %{buildroot}%{_datadir}/sysbench/sysbench-example-all-tests
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/doc/sysbench
%{_datadir}/sysbench
%changelog