chmod 600 %{buildroot}%{_sysconfdir}/%{name}/pdns.conf
%check
-make %{?_smp_mflags} -C pdns check
+make %{?_smp_mflags} -C pdns check || (cat pdns/test-suite.log && false)
%pre
getent group pdns >/dev/null || groupadd -r pdns
%{__mv} %{buildroot}/%{_mandir}/man1/zone2ldap.1 %{buildroot}/%{_mandir}/man1/pdns-zone2ldap.1
%check
-make %{?_smp_mflags} -C pdns check
+make %{?_smp_mflags} -C pdns check || (cat pdns/test-suite.log && false)
%pre
getent group pdns >/dev/null || groupadd -r pdns
%{__mv} %{buildroot}/%{_mandir}/man1/zone2ldap.1 %{buildroot}/%{_mandir}/man1/pdns-zone2ldap.1
%check
-make %{?_smp_mflags} -C pdns check
+make %{?_smp_mflags} -C pdns check || (cat pdns/test-suite.log && false)
%pre
getent group pdns >/dev/null || groupadd -r pdns
make %{?_smp_mflags} LIBRARY_PATH=/usr/lib64/boost148
+%check
+make %{?_smp_mflags} check || (cat test-suite.log && false)
+
%install
%{__rm} -rf %{buildroot}
make install DESTDIR=%{buildroot}
make %{?_smp_mflags}
+%check
+make %{?_smp_mflags} check || (cat test-suite.log && false)
+
%install
make install DESTDIR=%{buildroot}
%{__mv} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf-dist %{buildroot}%{_sysconfdir}/%{name}/recursor.conf