File sysbench.spec of Package sysbench
#
# spec file for package sysbench
#
# Copyright (c) 2016 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/
#
%define version_unconverted 0.5.0+git.20160610
Name: sysbench
Version: 0.5.0+git.20160610
Release: 0
Summary: A MySQL benchmarking tool
License: GPL-2.0
Group: System/Benchmark
Url: https://github.com/akopytov/sysbench
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-example-tests.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook
BuildRequires: docbook-xsl-stylesheets
BuildRequires: help2man
BuildRequires: libaio-devel
BuildRequires: libtool
BuildRequires: libxslt-tools
BuildRequires: mysql-devel
BuildRequires: openssl-devel
BuildRequires: postgresql-devel
BuildRequires: xz
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
%build
autoreconf -fiv
%configure \
--with-pgsql
make %{?_smp_mflags}
%install
%make_install
help2man ./sysbench/sysbench > sysbench.1
install -D -m 0644 sysbench.1 %{buildroot}%{_mandir}/man1/sysbench.1
install -D -m 0755 sysbench-example-tests/sysbench-example-test %{buildroot}%{_datadir}/sysbench/sysbench-example-test
install -D -m 0755 sysbench-example-tests/sysbench-example-all-tests %{buildroot}%{_datadir}/sysbench/sysbench-example-all-tests
rm -rf %{buildroot}%{_datadir}/doc/sysbench
%files
%defattr(-,root,root)
%doc COPYING ChangeLog README.md doc/manual.html
%{_bindir}/sysbench
%{_mandir}/man1/sysbench.1%{ext_man}
%{_datadir}/sysbench
%changelog