2009-03-18 08:28:43 +00:00
|
|
|
Summary: System performance benchmark
|
|
|
|
Name: sysbench
|
2018-01-17 13:13:18 +00:00
|
|
|
Version: 1.0.12
|
2017-11-03 13:20:46 +00:00
|
|
|
Release: 1%{?dist}
|
2009-03-18 08:30:29 +00:00
|
|
|
License: GPLv2+
|
2017-02-04 15:43:35 +00:00
|
|
|
Source0: https://github.com/akopytov/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
URL: https://github.com/akopytov/sysbench/
|
2009-03-18 08:28:43 +00:00
|
|
|
|
2017-07-05 13:42:06 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: ck-devel
|
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: luajit-devel
|
2017-05-12 15:40:27 +00:00
|
|
|
%if 0%{?el6}
|
2017-04-07 07:36:53 +00:00
|
|
|
BuildRequires: mysql-devel
|
2017-11-03 13:20:46 +00:00
|
|
|
%endif
|
2018-01-17 13:13:18 +00:00
|
|
|
%if 0%{?el7} || 0%{?fc26}%{?fc27}
|
2017-05-12 15:40:27 +00:00
|
|
|
BuildRequires: mariadb-devel
|
2017-04-07 07:36:53 +00:00
|
|
|
%endif
|
2017-11-03 13:20:46 +00:00
|
|
|
%if 0%{?fedora} > 27
|
|
|
|
BuildRequires: mariadb-connector-c-devel
|
|
|
|
%endif
|
2009-03-18 08:28:43 +00:00
|
|
|
BuildRequires: postgresql-devel
|
2017-02-25 15:39:09 +00:00
|
|
|
# Tests
|
2017-05-12 15:40:27 +00:00
|
|
|
%{!?el6:BuildRequires: /usr/bin/cram}
|
2009-03-18 08:28:43 +00:00
|
|
|
|
2017-02-27 19:09:14 +00:00
|
|
|
# luajit is needed and is not available for ppc64 and ppc64le.
|
|
|
|
# Use the same arches as luajit.
|
2017-05-12 15:40:27 +00:00
|
|
|
# luajit 2.0.4, which is in EL6 and EL7, doesn't have support for aarch64
|
|
|
|
%if 0%{?el6} || 0%{?el7}
|
2017-03-13 16:36:23 +00:00
|
|
|
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips}
|
|
|
|
%else
|
2017-02-27 19:09:14 +00:00
|
|
|
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64
|
2017-03-13 16:36:23 +00:00
|
|
|
%endif
|
2017-02-27 19:09:14 +00:00
|
|
|
|
2009-03-18 08:28:43 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
SysBench is a modular, cross-platform and multi-threaded benchmark
|
|
|
|
tool for evaluating OS parameters that are important for a system
|
|
|
|
running a database under intensive load.
|
|
|
|
|
|
|
|
The idea of this benchmark suite is to quickly get an impression about
|
|
|
|
system performance without setting up complex database benchmarks or
|
|
|
|
even without installing a database at all. Current features allow to
|
|
|
|
test the following system parameters:
|
|
|
|
- file I/O performance
|
|
|
|
- scheduler performance
|
|
|
|
- memory allocation and transfer speed
|
|
|
|
- POSIX threads implementation performance
|
|
|
|
- database server performance (OLTP benchmark)
|
|
|
|
|
|
|
|
Primarily written for MySQL server benchmarking, SysBench will be
|
|
|
|
further extended to support multiple database backends, distributed
|
|
|
|
benchmarks and third-party plug-in modules.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-02-04 15:43:35 +00:00
|
|
|
rm -r third_party/luajit/luajit/
|
|
|
|
rm -r third_party/concurrency_kit/ck/
|
2017-05-12 15:40:27 +00:00
|
|
|
%{!?el6:rm -r third_party/cram/}
|
2009-03-18 08:28:43 +00:00
|
|
|
|
2017-07-13 12:18:53 +00:00
|
|
|
|
2009-03-18 08:28:43 +00:00
|
|
|
%build
|
2017-02-04 15:43:35 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2010-07-19 01:11:17 +00:00
|
|
|
autoreconf -vif
|
2009-03-18 08:28:43 +00:00
|
|
|
%configure --with-mysql \
|
2017-02-04 15:43:35 +00:00
|
|
|
--with-pgsql \
|
|
|
|
--with-system-ck \
|
2017-02-28 13:58:49 +00:00
|
|
|
--with-system-luajit \
|
2017-05-12 15:40:27 +00:00
|
|
|
--without-gcc-arch
|
2009-03-18 08:28:43 +00:00
|
|
|
|
2017-02-04 15:43:35 +00:00
|
|
|
%make_build
|
2009-03-18 08:28:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-02-04 15:43:35 +00:00
|
|
|
%make_install
|
2017-07-05 13:42:06 +00:00
|
|
|
mv %{buildroot}%{_docdir}/sysbench/manual.html .
|
2009-03-18 08:28:43 +00:00
|
|
|
|
2017-03-08 01:57:45 +00:00
|
|
|
# Test suite segfaults in koji aarch64
|
|
|
|
# Although it works on different aarch64 hardware...
|
2017-02-25 15:39:09 +00:00
|
|
|
%check
|
|
|
|
cd tests
|
2017-03-08 01:57:45 +00:00
|
|
|
%ifnarch aarch64
|
2017-02-25 15:39:09 +00:00
|
|
|
./test_run.sh
|
2017-03-08 01:57:45 +00:00
|
|
|
%else
|
|
|
|
./test_run.sh || :
|
2017-02-28 14:30:36 +00:00
|
|
|
%endif
|
2009-03-18 08:28:43 +00:00
|
|
|
|
|
|
|
%files
|
2017-07-05 13:42:06 +00:00
|
|
|
%doc ChangeLog README.md manual.html
|
2017-02-04 15:43:35 +00:00
|
|
|
%license COPYING
|
2009-03-18 08:28:43 +00:00
|
|
|
%{_bindir}/*
|
2017-02-04 15:43:35 +00:00
|
|
|
%{_datadir}/%{name}
|
2009-03-18 08:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-01-17 13:13:18 +00:00
|
|
|
* Wed Jan 17 2018 Xavier Bachelot <xavier@bachelot.org> 1.0.12-1
|
|
|
|
- Update to 1.0.12 (RHBZ#1535455).
|
|
|
|
|
2017-12-12 08:29:00 +00:00
|
|
|
* Tue Dec 12 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.11-1
|
|
|
|
- Update to 1.0.11 (RHBZ#1524754).
|
|
|
|
|
2017-11-03 13:20:46 +00:00
|
|
|
* Thu Nov 02 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.10-1
|
|
|
|
- Update to 1.0.10 (RHBZ#1508249).
|
|
|
|
- Build against mariadb-connector-c for Fedora 27+ (RHBZ#1493697).
|
|
|
|
|
2017-09-18 09:46:41 +00:00
|
|
|
* Mon Sep 18 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.9-2
|
|
|
|
- Add patch to fix build against mariadb 10.2.8.
|
|
|
|
|
|
|
|
* Wed Sep 06 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.9-1
|
|
|
|
- Update to 1.0.9 (RHBZ#1488694).
|
|
|
|
- Drop upstreamed patch.
|
|
|
|
- Drop Group: tag.
|
|
|
|
|
2017-08-03 09:05:55 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 19:49:15 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-07-13 12:18:53 +00:00
|
|
|
* Thu Jul 13 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.8-2
|
|
|
|
- Add patch from Honza Horak to fix build against mariadb 10.2 (RHBZ#1470540).
|
|
|
|
|
2017-07-05 13:42:06 +00:00
|
|
|
* Wed Jul 05 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.8-1
|
|
|
|
- Update to 1.0.8.
|
|
|
|
- Fix creation and installation of manual.html file.
|
|
|
|
- Sort BuildRequires.
|
|
|
|
|
2017-05-16 12:31:53 +00:00
|
|
|
* Tue May 16 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.7-1
|
|
|
|
- Update to 1.0.7.
|
|
|
|
|
2017-05-12 15:40:27 +00:00
|
|
|
* Sun Apr 16 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.6-1
|
|
|
|
- Update to 1.0.6.
|
|
|
|
- Use bundled cram for EL6.
|
|
|
|
- Tweak conditionals.
|
|
|
|
- Remove --with-gcc-arch=native hack on arm.
|
|
|
|
|
2017-04-07 07:36:53 +00:00
|
|
|
* Fri Apr 07 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.5-1
|
|
|
|
- Update to 1.0.5.
|
|
|
|
- Fix conditional around ExclusiveArch.
|
|
|
|
- Restore EL6 support, luajit (RHBZ#1432377) and python-cram (RHBZ#1432378) are
|
|
|
|
currently missing though.
|
|
|
|
|
2017-03-13 16:36:23 +00:00
|
|
|
* Mon Mar 13 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.4-2
|
|
|
|
- Don't build aarch64 on el7.
|
|
|
|
|
2017-03-13 13:35:39 +00:00
|
|
|
* Mon Mar 13 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.4-1
|
|
|
|
- Fix build for i686.
|
|
|
|
- Drop bundled cram.
|
|
|
|
|
2017-03-08 01:57:45 +00:00
|
|
|
* Wed Mar 08 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.3-1
|
2017-02-26 19:29:46 +00:00
|
|
|
- Update to 1.0.3 (RHBZ#1424670).
|
2017-02-27 19:09:14 +00:00
|
|
|
- Restrict arches to the same ones as luajit.
|
2017-02-28 13:58:49 +00:00
|
|
|
- Add --with-gcc-arch=native to configure for %%{arm} and aarch64.
|
2017-03-08 01:57:45 +00:00
|
|
|
- Ignore test suite results for aarch64, it segfaults in koji.
|
2017-02-26 19:29:46 +00:00
|
|
|
|
2017-02-25 15:39:09 +00:00
|
|
|
* Sat Feb 25 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.2-2
|
|
|
|
- Run test suite.
|
|
|
|
|
2017-02-25 14:28:25 +00:00
|
|
|
* Sat Feb 25 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.2-1
|
|
|
|
- Update to 1.0.2 (RHBZ#1424670).
|
|
|
|
|
2017-02-04 15:43:35 +00:00
|
|
|
* Sun Feb 12 2017 Honza Horak <hhorak@redhat.com> - 1.0.0-1
|
|
|
|
- Update to the first proper release 1.0.0
|
|
|
|
|
2017-02-11 14:21:39 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.12-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-05 01:07:44 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.12-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-19 02:19:29 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-09-04 20:36:41 +00:00
|
|
|
* Thu Sep 04 2014 Xavier Bachelot <xavier@bachelot.org> 0.4.12-12
|
|
|
|
- Modernize specfile.
|
|
|
|
|
2014-08-18 04:34:07 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 07:54:03 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 16:21:50 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-15 01:07:25 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 22:26:41 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 06:08:00 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-09-06 21:57:33 +00:00
|
|
|
* Tue Sep 06 2011 Xavier Bachelot <xavier@bachelot.org> 0.4.12-5
|
|
|
|
- Add BR: libaio-devel (rhbz#735882).
|
|
|
|
|
2011-03-23 18:52:15 +00:00
|
|
|
* Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 0.4.12-4
|
|
|
|
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
|
|
|
|
|
2011-02-09 17:27:33 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-24 13:08:57 +00:00
|
|
|
* Fri Dec 24 2010 Xavier Bachelot <xavier@bachelot.org> 0.4.12-2
|
|
|
|
- Rebuild against new mysql.
|
|
|
|
|
2014-09-04 20:50:20 +00:00
|
|
|
* Wed Jul 07 2010 Xavier Bachelot <xavier@bachelot.org> 0.4.12-1
|
2010-07-19 01:11:17 +00:00
|
|
|
- Update to 0.4.12.
|
|
|
|
|
2009-08-21 16:03:20 +00:00
|
|
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.4.10-5
|
|
|
|
- rebuilt with new openssl
|
|
|
|
|
2009-07-27 05:18:55 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.10-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-18 08:32:42 +00:00
|
|
|
* Wed Mar 18 2009 Xavier Bachelot <xavier@bachelot.org> 0.4.10-3
|
|
|
|
- License is GPLv2+, not GPLv2.
|
|
|
|
|
2009-03-18 08:28:43 +00:00
|
|
|
* Sat Mar 14 2009 Xavier Bachelot <xavier@bachelot.org> 0.4.10-2
|
|
|
|
- Make postgres support optional, the version in rhel4 is too old.
|
|
|
|
- Drop TODO and manual.html from %%doc, they are empty.
|
|
|
|
|
|
|
|
* Thu Mar 05 2009 Xavier Bachelot <xavier@bachelot.org> 0.4.10-1
|
|
|
|
- Adapt original spec file taken from PLD.
|