#
# Conditional build:
%bcond_without geoip # GeoIP support
-%bcond_without ipv6 # IPv6 support
%bcond_without kerberos5 # GSS-API support
%bcond_without ssl # OpenSSL support
%bcond_with ldap # LDAP DLZ support
%bcond_without lmdb # LMDB storage support for addzone zones
%bcond_without static_libs # static libraries
%bcond_with system_tests # system tests (require root to configure localhost IPs)
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests
%bcond_with edns_cli # ability to use edns-client-subnet in dig
%bcond_with hip # HIP RR support
-%bcond_with seccomp # libseccomp system call filtering
%if "%{pld_release}" == "ac"
%bcond_with epoll # enable epoll support
%bcond_without epoll # disable epoll support
%endif
-%define ver 9.12.3
-%if 1
-%define pverdot .P1
-%define pverdir -P1
+%define ver 9.14.8
+%if 0
+%define pverdot .P0
+%define pverdir -P0
%else
%define pverdot %{nil}
%define pverdir %{nil}
Summary(zh_CN.UTF-8): Internet 域名服务器
Name: bind
Version: %{ver}%{pverdot}
-Release: 1
+Release: 2
Epoch: 7
License: MPL 2.0
Group: Networking/Daemons
Source0: ftp://ftp.isc.org/isc/bind9/%{ver}%{pverdir}/%{name}-%{ver}%{pverdir}.tar.gz
-# Source0-md5: 6a73280ad5ad0dfeab611de04aefd35e
+# Source0-md5: 779a04954839ed349a1c35d8b8552089
Source1: named.init
Source2: named.sysconfig
Source3: named.logrotate
Source6: %{name}-hip.tar.gz
# Source6-md5: 62a8a67f51ff8db9fe815205416a1f62
Source7: https://www.internic.net/domain/named.root
-# Source7-md5: a2d36ae713cf5e8ea59641b320b6ec5d
+# Source7-md5: 23ec4e704cdaa1dcaaa6f66bc2c0563f
Source8: %{name}-127.0.0.zone
Source9: %{name}-localhost.zone
Source10: %{name}-named.conf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
-%{?with_geoip:BuildRequires: GeoIP-devel}
%{?with_kerberos5:BuildRequires: heimdal-devel}
BuildRequires: json-c-devel
BuildRequires: libidn2-devel
-%{?with_seccomp:BuildRequires: libseccomp-devel}
+# note, there is no kyua in PLD yet (work in progress)
+%{?with_tests:%{!?with_system_tests:BuildRequires: kyua}}
BuildRequires: libtool
%{?with_hip:BuildRequires: libxml2-devel}
%{?with_lmdb:BuildRequires: lmdb-devel}
+%{?with_geoip:BuildRequires: libmaxminddb-devel}
%{?with_sql:BuildRequires: mysql-devel}
%{?with_ldap:BuildRequires: openldap-devel}
%{?with_ssl:BuildRequires: openssl-devel >= 0.9.8d}
CFLAGS="-D_GNU_SOURCE=1 %{rpmcppflags}" \
%{!?with_epoll:--disable-epoll --disable-devpoll} \
--enable-full-report \
- --enable-getifaddrs \
- %{?with_ipv6:--enable-ipv6} \
--enable-largefile \
- %{__enable_disable seccomp} \
%{!?with_static_libs:--disable-static} \
- --enable-threads \
%{?with_kerberos5:--with-gssapi} \
--with-libidn2 \
--with-libtool \
%{?with_ldap:--with-dlz-ldap} \
--with-dlz-odbc%{!?with_odbc:=no} \
--with-dlz-stub \
- %{?with_geoip:--with-geoip} \
+ %{?with_geoip:--with-geoip2} \
--with-lmdb%{!?with_lmdb:=no} \
--with-python=%{__python3}
%attr(755,root,root) %{_sbindir}/ddns-confgen
%attr(755,root,root) %{_sbindir}/dnssec-*
-%attr(755,root,root) %{_sbindir}/genrandom
%attr(755,root,root) %{_sbindir}/named
%attr(755,root,root) %{_sbindir}/named-*
%attr(755,root,root) %{_sbindir}/nsec3hash
%{_mandir}/man5/rndc.conf.5*
%{_mandir}/man8/ddns-confgen.8*
%{_mandir}/man8/dnssec-*.8*
-%{_mandir}/man8/genrandom.8*
%{_mandir}/man8/named.8*
%{_mandir}/man8/named-*.8*
%{_mandir}/man8/nsec3hash.8*
%attr(770,root,named) %dir %{_var}/run/named
+%dir %{_libdir}/named
+%attr(755,root,root) %{_libdir}/named/filter-aaaa.so
+%{_mandir}/man8/filter-aaaa.8*
+
%files utils
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/arpaname
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libbind9.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libbind9.so.1201
+%attr(755,root,root) %ghost %{_libdir}/libbind9.so.1302
%attr(755,root,root) %{_libdir}/libdns.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdns.so.1207
+%attr(755,root,root) %ghost %{_libdir}/libdns.so.1311
%attr(755,root,root) %{_libdir}/libirs.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libirs.so.1201
+%attr(755,root,root) %ghost %{_libdir}/libirs.so.1301
%attr(755,root,root) %{_libdir}/libisc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libisc.so.1204
+%attr(755,root,root) %ghost %{_libdir}/libisc.so.1310
%attr(755,root,root) %{_libdir}/libisccc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libisccc.so.1201
+%attr(755,root,root) %ghost %{_libdir}/libisccc.so.1302
%attr(755,root,root) %{_libdir}/libisccfg.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libisccfg.so.1203
+%attr(755,root,root) %ghost %{_libdir}/libisccfg.so.1302
%attr(755,root,root) %{_libdir}/libns.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libns.so.1205
+%attr(755,root,root) %ghost %{_libdir}/libns.so.1307
%files devel
%defattr(644,root,root,755)