diff --git a/sysbench.spec b/sysbench.spec index d15ecb2..6539c1f 100644 --- a/sysbench.spec +++ b/sysbench.spec @@ -1,7 +1,7 @@ Summary: System performance benchmark Name: sysbench Version: 1.0.17 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Source0: https://github.com/akopytov/%{name}/archive/%{version}/%{name}-%{version}.tar.gz URL: https://github.com/akopytov/sysbench/ @@ -16,13 +16,17 @@ BuildRequires: luajit-devel %if 0%{?el6} BuildRequires: mysql-devel %endif -%if 0%{?el7} || 0%{?fc26}%{?fc27} +%if 0%{?el7} BuildRequires: mariadb-devel %endif -%if 0%{?fedora} > 27 +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: mariadb-connector-c-devel %endif +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: libpq-devel +%else +BuildRequires: postgresql-devel +%endif # Tests %{!?el6:BuildRequires: /usr/bin/cram} @@ -100,6 +104,10 @@ rm t/opt_report_interval.t %changelog +* Fri Mar 15 2019 Xavier Bachelot 1.0.17-2 +- Fix EPEL build. +- Clean up conditionals around BuildRequires. + * Fri Mar 15 2019 Xavier Bachelot 1.0.17-1 - Update to 1.0.17 (RHBZ#1689249).