From f75d562486fbe5c9b5269693107697e51abcbc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 19 Jan 2018 15:55:43 +0100 Subject: [PATCH] Provide description to package. Disable most of autodetected features for export libraries. --- bind.spec | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/bind.spec b/bind.spec index 0a48c64..45e747b 100644 --- a/bind.spec +++ b/bind.spec @@ -404,7 +404,9 @@ Provides: bind99-libs %endif %description export-libs -Set of ISC libraries for client applications (like ISC DHCP). +BIND (Berkeley Internet Name Domain) is an implementation of the DNS +(Domain Name System) protocols. This package set contains only export +version of BIND libraries, that are used for building ISC DHCP. %package export-libs-devel Summary: Header files and libraries needed for BIND export libraries @@ -596,6 +598,16 @@ pushd export-libs --libdir=%{_libdir}%{_export_dir} \ --includedir=%{_includedir}/%{_export_dir}/ \ --disable-threads \ + --with-gssapi=yes \ + --disable-isc-spnego \ + --enable-fixed-rrset \ + --disable-rpz-nsip \ + --disable-rpz-nsdname \ + --without-lmdb \ + --without-libxml2 \ + --without-libjson \ + --without-zlib \ + --without-dlopen \ --enable-full-report ## We don't want to build other libs than -export twice @@ -718,15 +730,14 @@ pushd export-libs ## -lirs-export -ldns-export -lisccfg-export -lisc-export ## install -d -m 0755 ${RPM_BUILD_ROOT}/%{_libdir}/%{name}-export/ make DESTDIR=${RPM_BUILD_ROOT} install -mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d -echo "%{_libdir}/%{_export_dir}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf +mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/ld.so.conf.d +echo "%{_libdir}/%{_export_dir}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-export-%{_arch}.conf popd %endif # Remove unwanted files rm -f ${RPM_BUILD_ROOT}/etc/bind.keys - # Systemd unit files mkdir -p ${RPM_BUILD_ROOT}%{_unitdir} install -m 644 %{SOURCE37} ${RPM_BUILD_ROOT}%{_unitdir} @@ -1305,7 +1316,7 @@ rm -rf ${RPM_BUILD_ROOT} %files export-libs %dir %{_libdir}/%{_export_dir} %{_libdir}/%{_export_dir}/lib*.so.* -%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf +%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-export-%{_arch}.conf %files export-libs-devel %{_includedir}/%{_export_dir}