%bcond_without kernel # don't build kernel modules
%bcond_with verbose # verbose build (V=1)
%bcond_without userspace # don't build userspace programs
-%bcond_with dkms # build dkms package
+%bcond_without dkms # build dkms package
+
+%if 0%{?_pld_builder:1} && %{with kernel} && %{with userspace}
+%{error:kernel and userspace cannot be built at the same time on PLD builders}
+exit 1
+%endif
%if %{without userspace}
%undefine with_dkms
# nothing to be placed to debuginfo package
%define _enable_debug_packages 0
-%define rel 4
+%define rel 8
%define pname wl
%define file_ver %(echo %{version} | tr . _)
Summary: Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
-Name: %{pname}%{_alt_kernel}
+Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
Version: 6.30.223.248
Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
License: other
%{?with_kernel:%{expand:%create_kernel_packages}}
%prep
-%ifarch %{x8664}
+%ifarch %{x8664} x32
%define src 1
%else
%define src 0