From 19c3e750dc04b2574561879c1be78ad2e366e868 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 13 May 2025 13:23:07 +0800 Subject: [PATCH] build with connectors rather than database themselves --- sysbench.spec | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/sysbench.spec b/sysbench.spec index fe2b898..1196ef2 100644 --- a/sysbench.spec +++ b/sysbench.spec @@ -1,21 +1,27 @@ Name: sysbench Version: 1.0.20 -Release: 4 +Release: 5 Summary: Scriptable database and system performance benchmark -License: GPL2 +License: GPL-2.0-or-later URL: https://github.com/akopytov/sysbench Source0: https://github.com/akopytov/sysbench/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: gcc libtool autoconf automake mariadb-devel libaio-devel libxslt ck-devel postgresql-devel luajit-devel -%ifarch sw_64 -#!BuildIgnore: gcc_secure -%endif +BuildRequires: make +BuildRequires: automake +BuildRequires: ck-devel +BuildRequires: docbook-style-xsl +BuildRequires: libaio-devel +BuildRequires: libtool +BuildRequires: libxslt +BuildRequires: luajit-devel +BuildRequires: mariadb-connector-c-devel +BuildRequires: libpq-devel %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}/ +%autosetup -p1 -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/ @@ -32,13 +38,6 @@ rm -r third_party/cram/ %install %make_install -%pre -%preun -%post -%postun - -%check - %files %license COPYING %doc README.md ChangeLog @@ -47,15 +46,18 @@ rm -r third_party/cram/ %{_datadir}/%{name}/* %changelog +* Tue May 13 2025 Funda Wang - 1.0.20-5 +- build with connectors rather than database themselves + * Fri Aug 11 2023 yeqinglong - 1.0.20-4 - fix sw_64 build error * Thu Apr 08 2021 herengui - 1.0.20-3 - enable postgresql support -* Tue Oct 13 2020 liqingqing_1229 +* Tue Oct 13 2020 liqingqing_1229 - 1.0.20-2 - update source0 -* Sun Mar 29 2020 Wei Xiong +* Sun Mar 29 2020 Wei Xiong - 1.0.20-1 - Package init -- Gitee