Fix EPEL build

This commit is contained in:
Xavier Bachelot 2019-03-15 17:07:15 +01:00
parent e319120331
commit e289ce2ec8
1 changed files with 11 additions and 3 deletions

View File

@ -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 <xavier@bachelot.org> 1.0.17-2
- Fix EPEL build.
- Clean up conditionals around BuildRequires.
* Fri Mar 15 2019 Xavier Bachelot <xavier@bachelot.org> 1.0.17-1
- Update to 1.0.17 (RHBZ#1689249).