%bcond_without sql # build without SQL support
%bcond_without static_libs # build without static libraries
%bcond_without tests # perform tests
+%bcond_with edns_cli # build with the ability to use edns-client-subnet in dig
%bcond_with hip # build with HIP RR support
%if "%{pld_release}" == "ac"
%bcond_with epoll # enable epoll support
Summary(zh_CN.UTF-8): Internet 域名服务器
Name: bind
Version: %{ver}%{pverdot}
-Release: 2
+Release: 5
Epoch: 7
License: BSD-like
Group: Networking/Daemons
Patch1: %{name}-link.patch
Patch2: %{name}-pmake.patch
Patch3: %{name}-sdb-ldap.patch
+Patch4: %{name}-ac-libs.patch
+Patch5: %{name}-edns-client-subnet.patch
URL: https://www.isc.org/software/bind
BuildRequires: autoconf
BuildRequires: automake
%patch1 -p1
%patch2 -p1
%{?with_ldap:%patch3 -p1}
+%patch4 -p1
%{?with_hip:mv bind-hip/hip_55.[ch] lib/dns/rdata/generic}
+%{?with_edns_cli:%patch5 -p0}
%build
%{__libtoolize}
CFLAGS="-D_GNU_SOURCE=1 %{rpmcppflags}" \
--with-idn \
--with-libtool \
- %{?with_ssl:--with-openssl=%{_prefix}} \
+ %{?with_ssl:--with-openssl} \
%{?with_ipv6:--enable-ipv6} \
%{?with_kerberos5:--with-gssapi} \
%{?with_sql:--with-dlz-postgres=yes} \