]> git.pld-linux.org Git - packages/bind.git/blobdiff - bind.spec
- skip entries with ifa_addr == NULL
[packages/bind.git] / bind.spec
index d658923585f69a121708a66f5f1641a1970821fc..f16cb58e992cc70cd80d05cd0d9e4e2ec22489e6 100644 (file)
--- a/bind.spec
+++ b/bind.spec
@@ -1,3 +1,5 @@
+# TODO
+# - schema regstering in openldap-schema-bind
 #
 # Conditional build:
 %bcond_without ssl             # build without OpenSSL support
@@ -16,13 +18,13 @@ Summary(tr.UTF-8):  DNS alan adı sunucusu
 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
@@ -39,7 +41,6 @@ Patch3:               %{name}-link.patch
 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
@@ -49,6 +50,9 @@ BuildRequires:        idnkit-devel
 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
@@ -305,6 +309,19 @@ Bibliotecas estáticas para desenvolvimento DNS.
 Статичні бібліотеки, необхідні для розробки програм з використанням
 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
@@ -314,7 +331,6 @@ BIND.
 %patch4 -p1
 %{?with_ldap:%patch5 -p1}
 %patch6 -p1
-%patch7 -p1
 
 %build
 %{__libtoolize}
@@ -331,9 +347,17 @@ cd ../..
        %{?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}
 
@@ -370,6 +394,9 @@ touch $RPM_BUILD_ROOT%{_var}/lib/named/{named.{log,stats},dev/{random,null}}
 %{?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*
@@ -430,8 +457,6 @@ fi
 
 %attr(755,root,root) %{_sbindir}/*
 
-%{?with_ldap:%{_datadir}/openldap/schema/*.schema}
-
 %{_mandir}/man8/dns*
 %{_mandir}/man8/lwres*
 %{_mandir}/man8/named*
@@ -499,3 +524,9 @@ fi
 %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
This page took 0.223452 seconds and 4 git commands to generate.