+# TODO
+# - schema regstering in openldap-schema-bind
#
# Conditional build:
%bcond_without ssl # build without OpenSSL support
Summary(uk.UTF-8): BIND - cервер системи доменних імен (DNS)
Summary(zh_CN.UTF-8): Internet 域名服务器
Name: bind
-Version: 9.3.4
-Release: 2
+Version: 9.4.0
+Release: 1
Epoch: 6
License: BSD-like
Group: Networking/Daemons
Source0: ftp://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: df5417e7e7cf017fa28b65d0a3d6e999
+# Source0-md5: e85347f03f0d841b596422d5252a0869
Source1: %{name}-conf.tar.gz
# Source1-md5: 8ee77729f806fcd548fe0cceb34b4a06
Source2: named.init
Patch4: %{name}-pmake.patch
Patch5: %{name}-sdb-ldap.patch
Patch6: %{name}-noinet6.patch
-Patch7: %{name}-idn.patch
URL: http://www.isc.org/products/BIND/bind9.html
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%{?with_ldap:BuildRequires: openldap-devel}
%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
+BuildRequires: mysql-devel
+BuildRequires: postgresql-devel
+BuildRequires: unixODBC-devel
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Статичні бібліотеки, необхідні для розробки програм з використанням
BIND.
+%package -n openldap-schema-bind
+Summary: BIND schema for openldap
+Summary(pl.UTF-8): Schemat BIND dla openldap
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: openldap-servers
+
+%description -n openldap-schema-bind
+BIND schema for openldap.
+
+%description -n openldap-schema-bind -l pl.UTF-8
+Schemat BIND dla openldap.
+
%prep
%setup -q -a1
%patch0 -p1
%patch4 -p1
%{?with_ldap:%patch5 -p1}
%patch6 -p1
-%patch7 -p1
%build
%{__libtoolize}
%{?with_ssl:--with-openssl=%{_prefix}} \
%{?with_ipv6:--enable-ipv6} \
--enable-libbind \
+ --with-dlz-postgres=yes \
+ --with-dlz-mysql=yes \
+ --with-dlz-bdb=no \
+ --with-dlz-filesystem=yes \
+ %{?with_ldap:--with-dlz-ldap=yes} \
+ --with-dlz-odbc=no \
+ --with-dlz-stub=yes \
+ --enable-largefile \
%{!?with_static_libs:--enable-static=no} \
--enable-threads \
- --disable-getifaddrs
+ --enable-getifaddrs=glibc
%{__make}
%{?with_ldap:install -d $RPM_BUILD_ROOT%{_datadir}/openldap/schema}
%{?with_ldap:install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/openldap/schema/dnszone.schema}
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/named-compilezone.8
+echo ".so named-checkzone.8" > $RPM_BUILD_ROOT%{_mandir}/man8/named-compilezone.8
+
# we don't want Makefiles in documentation...
# FIXME: breaks re-entrant install
rm -f doc/misc/Makefile*
%attr(755,root,root) %{_sbindir}/*
-%{?with_ldap:%{_datadir}/openldap/schema/*.schema}
-
%{_mandir}/man8/dns*
%{_mandir}/man8/lwres*
%{_mandir}/man8/named*
%defattr(644,root,root,755)
%{_libdir}/*.a
%endif
+
+%if %{with ldap}
+%files -n openldap-schema-bind
+%defattr(644,root,root,755)
+%{_datadir}/openldap/schema/*.schema
+%endif