X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bind.spec;h=b8e6a08c2769987cd46aca643dc52df1a99a7de3;hb=382d807794da0788ffa167b029ff0baa30e523f5;hp=6c9c4be227d1bd4f3ee107bd33cafd1d00450d2d;hpb=df77782faa746129565ca29e1ccf4ad750a3ae10;p=packages%2Fbind.git diff --git a/bind.spec b/bind.spec index 6c9c4be..b8e6a08 100644 --- a/bind.spec +++ b/bind.spec @@ -6,11 +6,8 @@ %bcond_without geoip # GeoIP support %bcond_without kerberos5 # GSS-API support %bcond_without ssl # OpenSSL support -%bcond_with ldap # LDAP DLZ support -%bcond_with odbc # ODBC DLZ support -%bcond_without sql # SQL (MySQL+PostgreSQL) DLZ support %bcond_without lmdb # LMDB storage support for addzone zones -%bcond_without static_libs # static libraries +%bcond_with static_libs # static libraries %bcond_with system_tests # system tests (require root to configure localhost IPs) %bcond_with tests # unit tests %bcond_with edns_cli # ability to use edns-client-subnet in dig @@ -26,7 +23,7 @@ %bcond_without epoll # disable epoll support %endif -%define ver 9.16.15 +%define ver 9.18.1 %if 0 %define pverdot .P0 %define pverdir -P0 @@ -51,7 +48,7 @@ Epoch: 7 License: MPL 2.0 Group: Networking/Daemons Source0: ftp://ftp.isc.org/isc/bind9/%{ver}%{pverdir}/%{name}-%{ver}%{pverdir}.tar.xz -# Source0-md5: 6c6e5bb21763161bc68665b8729b3630 +# Source0-md5: d7072b2d774077f37bff51580b3a577b Source1: named.init Source2: named.sysconfig Source3: named.logrotate @@ -63,16 +60,14 @@ Source5: dnszone-schema.txt Source6: %{name}-hip.tar.gz # Source6-md5: 62a8a67f51ff8db9fe815205416a1f62 Source7: https://www.internic.net/domain/named.root -# Source7-md5: 3479d7910b5feea4f153d349b36fca2b +# Source7-md5: 544504d19e2b71c259d2a09d231533aa Source8: %{name}-127.0.0.zone Source9: %{name}-localhost.zone Source10: %{name}-named.conf Source11: %{name}.tmpfiles Source12: named.service -Patch1: %{name}-link.patch -Patch2: %{name}-pmake.patch -Patch3: %{name}-sdb-ldap.patch +Patch3: jemalloc.patch Patch4: %{name}-ac-libs.patch Patch5: %{name}-edns-client-subnet.patch URL: https://www.isc.org/software/bind @@ -82,7 +77,9 @@ BuildRequires: bison %{?with_tests:BuildRequires: cmocka-devel >= 1.0.0} BuildRequires: flex %{?with_kerberos5:BuildRequires: heimdal-devel} +BuildRequires: jemalloc-devel BuildRequires: json-c-devel >= 0.11 +BuildRequires: libatomic-devel BuildRequires: libcap-devel BuildRequires: libidn2-devel # note, there is no kyua in PLD yet (work in progress) @@ -93,17 +90,14 @@ BuildRequires: libuv-devel >= 1.37.0 BuildRequires: libxml2-devel >= 1:2.6.0 %{?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 >= 1.0.0} BuildRequires: pkgconfig -%{?with_sql:BuildRequires: postgresql-devel} BuildRequires: python3-devel >= 1:3.2 -BuildRequires: python3-ply +BuildRequires: python3-sphinx_rtd_theme BuildRequires: readline-devel BuildRequires: rpm >= 4.4.9-56 BuildRequires: rpmbuild(macros) >= 1.647 -%{?with_odbc:BuildRequires: unixODBC-devel} +BuildRequires: sphinx-pdg BuildRequires: zlib-devel %if %{with dnstap} BuildRequires: fstrm-devel @@ -118,8 +112,6 @@ Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd Requires(pre): fileutils Requires: %{name}-libs = %{epoch}:%{version}-%{release} -# for dnssec-{checkds,coverage,keymgr} -Requires: python3-isc = %{epoch}:%{version}-%{release} Requires: psmisc >= 20.1 Requires: rc-scripts >= 0.2.0 Requires: systemd-units >= 38 @@ -132,8 +124,6 @@ Conflicts: %{name}-chroot Conflicts: logrotate < 3.8.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define schemadir /usr/share/openldap/schema - %description BIND (Berkeley Internet Name Domain) is an implementation of the DNS (Domain Name System) protocols. BIND includes a DNS server (named), @@ -211,6 +201,20 @@ BIND (Berkeley Internet Name Domain) є реалізацією протокол Конфігураційні файли, ща настроюють BIND на роботу в режимі простого кешируючого серверу, включені в пакет caching-nameserver. +%package plugins +Summary: Plugins for Bind DNS name server +Summary(pl.UTF-8): Wtyczki dla serwera nazw DNS Bind +Group: Networking/Utilities +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description plugins +Plugins for extending of query processing functionality of Bind DNS name +server. + +%description plugins -l pl.UTF-8 +Wtyczki rozszerzające funkcjonalność przetwarzania zapytań przez serwer +nazw DNS Bind. + %package utils Summary: DNS utils - host, dig, dnsquery, nslookup Summary(de.UTF-8): DNS-Utils - Host, Dig, Dnsquery, Nslookup @@ -372,40 +376,10 @@ 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(post,postun): sed >= 4.0 -Requires: openldap-servers -Requires: sed >= 4.0 -BuildArch: noarch - -%description -n openldap-schema-bind -BIND schema for openldap. - -%description -n openldap-schema-bind -l pl.UTF-8 -Schemat BIND dla openldap. - -%package -n python3-isc -Summary: Python 3 ISC module - functions to support BIND utilities -Summary(pl.UTF-8): Moduł Pythona 3 ISC - funkcje wspomagające narzędzia BIND-a -Group: Libraries/Python -Requires: python3-modules - -%description -n python3-isc -Python 3 ISC module containing functions to support BIND utilities. - -%description -n python3-isc -l pl.UTF-8 -Moduł Pythona 3 ISC, zawierający funkcje wspomagające narzędzia -BIND-a. - %prep %setup -q %{?with_hip:-a6} -n %{name}-%{ver}%{pverdir} -%patch1 -p1 -%patch2 -p1 -%{?with_ldap:%patch3 -p1} +%patch3 -p1 %patch4 -p1 %{?with_hip:%{__mv} bind-hip/hip_55.[ch] lib/dns/rdata/generic} %{?with_edns_cli:%patch5 -p0} @@ -414,7 +388,7 @@ BIND-a. %{__libtoolize} %{__aclocal} %{__autoconf} -cp -f /usr/share/automake/config.* . +%{__automake} %configure \ CFLAGS="-D_GNU_SOURCE=1 %{rpmcflags} %{rpmcppflags}" \ LDFLAGS="%{rpmldflags}" \ @@ -422,21 +396,16 @@ cp -f /usr/share/automake/config.* . %{!?with_epoll:--disable-epoll --disable-devpoll} \ --enable-full-report \ --enable-largefile \ - %{!?with_static_libs:--disable-static} \ + %{?with_static_libs:--enable-static} \ %{?with_kerberos5:--with-gssapi} \ + --with-jemalloc=yes \ --with-libidn2 \ - --with-libtool \ + --with-libxml2 \ %{?with_ssl:--with-openssl} \ - %{?with_sql:--with-dlz-postgres} \ - %{?with_sql:--with-dlz-mysql} \ - --without-dlz-bdb \ - --with-dlz-filesystem \ - %{?with_ldap:--with-dlz-ldap} \ - --with-dlz-odbc%{!?with_odbc:=no} \ - --with-dlz-stub \ %{?with_geoip:--with-maxminddb} \ --with-lmdb%{!?with_lmdb:=no} \ - --with-python=%{__python3} + --with-tuning \ + --disable-silent-rules %{__make} %{__make} -C doc/arm html @@ -466,7 +435,6 @@ bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} %{__mv} $RPM_BUILD_ROOT%{_mandir}/ja/man8/nslookup.8 $RPM_BUILD_ROOT%{_mandir}/ja/man1/nslookup.1 %{__sed} -i -e 's/NSLOOKUP 8/NSLOOKUP 1/' $RPM_BUILD_ROOT%{_mandir}/ja/man1/nslookup.1 -cp -p bin/tests/named.conf EXAMPLE-CONFIG-named install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/named cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/named cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/named @@ -486,11 +454,6 @@ touch $RPM_BUILD_ROOT%{_var}/lib/named/named.{log,stats} install %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/named.service install %{SOURCE11} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf -%if %{with ldap} -install -d $RPM_BUILD_ROOT%{schemadir} -cp -p %{SOURCE5} $RPM_BUILD_ROOT%{schemadir}/dnszone.schema -%endif - %{?with_hip:install -p bind-hip/hi2dns $RPM_BUILD_ROOT%{_bindir}} # we don't want Makefiles in documentation... @@ -532,23 +495,13 @@ fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig -%post -n openldap-schema-bind -%openldap_schema_register %{schemadir}/dnszone.schema -%service -q ldap restart - -%postun -n openldap-schema-bind -if [ "$1" = "0" ]; then - %openldap_schema_unregister %{schemadir}/dnszone.schema - %service -q ldap restart -fi - %triggerpostun -- %{name} < 7:9.9.2.P2-2 %systemd_trigger named.service %files %defattr(644,root,root,755) -%doc README EXAMPLE-CONFIG-* %{?with_hip:bind-hip/COPYRIGHT-HIP-RR} -%doc _doc/misc/* _doc/arm/_build/html/*.html %{?with_ldap:_doc/*.sdb-ldap} +%doc README.md %{?with_hip:bind-hip/COPYRIGHT-HIP-RR} +%doc _doc/misc/* _doc/arm/_build/html/*.html %{systemdunitdir}/named.service %attr(754,root,root) /etc/rc.d/init.d/named @@ -557,22 +510,22 @@ fi %{_sysconfdir}/named.conf %{_sysconfdir}/bind.keys +%attr(755,root,root) %{_bindir}/dnssec-* +%attr(755,root,root) %{_bindir}/named-* +%attr(755,root,root) %{_bindir}/nsec3hash %attr(755,root,root) %{_sbindir}/ddns-confgen -%attr(755,root,root) %{_sbindir}/dnssec-* %attr(755,root,root) %{_sbindir}/named -%attr(755,root,root) %{_sbindir}/named-* -%attr(755,root,root) %{_sbindir}/nsec3hash %attr(755,root,root) %{_sbindir}/rndc %attr(755,root,root) %{_sbindir}/rndc-confgen %attr(755,root,root) %{_sbindir}/tsig-keygen +%{_mandir}/man1/dnssec-*.1* +%{_mandir}/man1/named-*.1* +%{_mandir}/man1/nsec3hash.1* %{_mandir}/man5/named.conf.5* %{_mandir}/man5/rndc.conf.5* %{_mandir}/man8/ddns-confgen.8* -%{_mandir}/man8/dnssec-*.8* %{_mandir}/man8/named.8* -%{_mandir}/man8/named-*.8* -%{_mandir}/man8/nsec3hash.8* %{_mandir}/man8/rndc.8* %{_mandir}/man8/rndc-confgen.8* %{_mandir}/man8/tsig-keygen.8* @@ -599,8 +552,12 @@ fi %attr(770,root,named) %dir %{_var}/run/named -%dir %{_libdir}/named -%attr(755,root,root) %{_libdir}/named/filter-aaaa.so +%files plugins +%defattr(644,root,root,755) +%dir %{_libdir}/bind +%attr(755,root,root) %{_libdir}/bind/filter-a.so +%attr(755,root,root) %{_libdir}/bind/filter-aaaa.so +%{_mandir}/man8/filter-a.8* %{_mandir}/man8/filter-aaaa.8* %files utils @@ -670,8 +627,6 @@ fi %{_includedir}/isccc %{_includedir}/isccfg %{_includedir}/ns -%{_includedir}/pk11 -%{_includedir}/pkcs11 %if %{with static_libs} %files static @@ -690,8 +645,3 @@ fi %defattr(644,root,root,755) %{_datadir}/openldap/schema/dnszone.schema %endif - -%files -n python3-isc -%defattr(644,root,root,755) -%{py3_sitedir}/isc -%{py3_sitedir}/isc-*-py*.egg-info