# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without kernel # don't build kernel modules
+%bcond_without up # don't build UP module
%bcond_without smp # don't build SMP module
%bcond_without userspace # don't build userspace tools
%bcond_with verbose # verbose build (V=1)
%endif
%if %{with kernel}
+%if %{with up} || %{without dist_kernel}
%files -n kernel%{_alt_kernel}-video-em8300
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/kernel/drivers/video/*.ko*
+%endif
%if %{with dist_kernel} && %{with smp}
%files -n kernel%{_alt_kernel}-smp-video-em8300