Blame SPECS/sysbench.spec

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