From d501c3f4371641cdb98580869e61b024aa18c971 Mon Sep 17 00:00:00 2001 From: Petr Menšík Date: Sep 01 2020 08:55:34 +0000 Subject: Do not drag BuildRequires for RHEL into Fedora Compatibility build dependencies were kept just for RHEL compatibility. They are not precise however. Recent BIND does not require GeoIP-devel, but instead libmaxminddb-devel. Use compatibility only for old RHEL, which does not require correct dependencies from bind-devel. Let it handle correctly by bind-devel for more recent BIND packages. Enforce required version on recent RHEL. --- diff --git a/dnsperf.spec b/dnsperf.spec index fe3721e..e151e2b 100644 --- a/dnsperf.spec +++ b/dnsperf.spec @@ -11,7 +11,7 @@ Summary: Benchmarking authorative and recursing DNS servers Name: dnsperf Version: 2.3.4 -Release: 5%{?dist} +Release: 6%{?dist} # New page was found, but on github is also project, that seems to be official. # # Github project has different license and so far is the only one with any @@ -38,12 +38,18 @@ Source1: https://www.dns-oarc.net/files/dnsperf/data/queryfile-example-10million Patch1: dnsperf-nolicense.patch -BuildRequires: bind-devel >= 9.10.0, gcc, make +BuildRequires: gcc, make BuildRequires: autoconf automake libtool +%if 0%{?rhel} && 0%{?rhel} < 8 # Following are (incomplete dependencies of bind-devel) # since 9.11.5 should provides all in requires, leave these for compatibility BuildRequires: libcap-devel, gzip, openssl-devel -BuildRequires: krb5-devel, libxml2-devel, GeoIP-devel +BuildRequires: krb5-devel, libxml2-devel +BuildRequires: GeoIP-devel +BuildRequires: bind-devel >= 9.10.0 +%else +BuildRequires: bind-devel >= 9.11.5 +%endif BuildRequires: /usr/bin/pathfix.py @@ -113,6 +119,9 @@ chmod 644 %{buildroot}%{_datadir}/%{name}/queryfile-example-current %{_datadir}/dnsperf/queryfile-example-current %changelog +* Tue Sep 01 2020 Petr Menšík - 2.3.4-6 +- Stop demanding GeoIP-devel where not required + * Fri Aug 21 2020 Petr Menšík - 2.3.4-5 - Rebuilt for bind 9.11.22