%bcond_without userspace # don't build userspace package
%bcond_with webservice # webservice (SOAP) support
%bcond_without lightdm # lightdm greeter
-%bcond_without dkms # build dkms package
+%bcond_without dkms # build dkms package
%bcond_without verbose
%if %{without kernel}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf
install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf
-%endif
%if %{with dkms}
install -d $RPM_BUILD_ROOT%{_usrsrc}/vbox{host,guest}-%{version}-%{rel}
%{__make} -C $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} clean
rm -rf $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel}/*/o
%endif
+%endif
%if %{with kernel}
install -d $RPM_BUILD_ROOT{/etc/modules-load.d,/sbin}
%attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so
%attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so
%attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so
-%endif
%if %{with dkms}
%files -n dkms-vboxguest
%defattr(644,root,root,755)
%{_usrsrc}/vboxhost-%{version}-%{rel}
%endif
+%endif