diff --git a/bind.spec b/bind.spec index 81552cf..4a92ce9 100644 --- a/bind.spec +++ b/bind.spec @@ -780,10 +780,9 @@ popd find ${RPM_BUILD_ROOT}/%{_libdir} -name '*.la' -exec '/bin/rm' '-f' '{}' ';'; # Remove -devel files out of buildroot if not needed -%if !%{with DEVEL} -rm -f ${RPM_BUILD_ROOT}/%{_libdir}/bind9/*so +%if %{without DEVEL} +rm -f ${RPM_BUILD_ROOT}/%{_libdir}/bind9/*.so rm -rf ${RPM_BUILD_ROOT}/%{_includedir}/bind9 -rm -f ${RPM_BUILD_ROOT}/%{_mandir}/man3/lwres* %endif # PKCS11 versions manpages