sysbench/sysbench.spec

62 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-05-14 23:41:11 +08:00
Name: sysbench
Version: 1.0.20
Release: 4
2020-05-14 23:41:11 +08:00
Summary: Scriptable database and system performance benchmark
License: GPL2
URL: https://github.com/akopytov/sysbench
2020-10-13 14:56:10 +08:00
Source0: https://github.com/akopytov/sysbench/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2020-05-14 23:41:11 +08:00
BuildRequires: gcc libtool autoconf automake mariadb-devel libaio-devel libxslt ck-devel postgresql-devel luajit-devel
%ifarch sw_64
#!BuildIgnore: gcc_secure
%endif
2020-05-14 23:41:11 +08:00
%description
sysbench is a scriptable multi-threaded benchmark tool based on LuaJIT. It is most frequently used for database benchmarks, but can also be used to create arbitrarily complex workloads that do not involve a database server.
%prep
%setup -q -n %{name}-%{version}/
# Use luajit-devel and ck-devel instead of embedded code
rm -r third_party/luajit/luajit/
rm -r third_party/concurrency_kit/ck/
rm -r third_party/cram/
2020-05-14 23:41:11 +08:00
%build
./autogen.sh
%configure --with-mysql \
--with-pgsql \
--with-system-ck \
--with-system-luajit
2020-05-14 23:41:11 +08:00
%make_build
%install
%make_install
%pre
%preun
%post
%postun
%check
%files
%license COPYING
%doc README.md ChangeLog
%{_bindir}/*
%{_docdir}/%{name}/*
%{_datadir}/%{name}/*
2020-05-14 23:41:11 +08:00
%changelog
* Fri Aug 11 2023 yeqinglong <yeqinglong@kylinsec.com.cn> - 1.0.20-4
- fix sw_64 build error
* Thu Apr 08 2021 herengui <herengui@uniontech.com> - 1.0.20-3
- enable postgresql support
2020-10-13 14:56:10 +08:00
* Tue Oct 13 2020 liqingqing_1229 <liqingqing3@huawei.com>
- update source0
2020-05-14 23:41:11 +08:00
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init