+# TODO
+# - cc
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without userspace # don't build userspace tools
%bcond_with verbose # verbose build (V=1)
-%if %{without kernel}
+%ifarch sparc
+# kernel modules won't build on sparc32, no I2C in kernel
+%undefine with_kernel
+%endif
+
+%if !%{with kernel}
%undefine with_dist_kernel
%endif
Summary(pl): Sterowniki dla DXR3 i H+
Name: em8300
Version: 0.15.2
-Release: 0.1
+Release: 2
License: GPL
Group: Applications/System
Source0: http://dl.sourceforge.net/dxr3/%{name}-%{version}.tar.gz
Modu³y j±dra Linuksa SMP em8300.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%patch0 -p0
%build
ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
%if %{with dist_kernel}
- %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+ %{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
%endif
install -d o/include/config
touch o/include/config/MARKER