]> git.pld-linux.org Git - packages/em8300.git/blobdiff - em8300.spec
- simplify %setup
[packages/em8300.git] / em8300.spec
index 43755cecb48c0146899c8c0da4e9fc67ef4daa72..51d33a9ccfb5f92bcf88fdfcdaecad137ba5a2da 100644 (file)
@@ -1,3 +1,5 @@
+# TODO
+# - cc
 #
 # Conditional build:
 %bcond_without dist_kernel     # allow non-distribution kernel
@@ -6,7 +8,12 @@
 %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
 
@@ -14,7 +21,7 @@ Summary:      DXR3 and H+ driver
 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
@@ -109,7 +116,7 @@ em8300 Linux SMP kernel modules.
 Modu³y j±dra Linuksa SMP em8300.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 %patch0 -p0
 
 %build
@@ -133,7 +140,7 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
        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
This page took 0.143607 seconds and 4 git commands to generate.