]> git.pld-linux.org Git - packages/bcm5700.git/commitdiff
- tg3 is preferred on 2.4.x too (bcm5700 had some SMP problems) kernel-net-bcm5700-2_2_27-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Jun 2004 16:07:01 +0000 (16:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bcm5700.spec -> 1.32

bcm5700.spec

index a16dfdb612520cbcae2023255ca426617af24d31..5b562e0e035cc783f6bf2b86be4c2e1103a8a30b 100644 (file)
@@ -1,8 +1,8 @@
 #
-# FOR 2.4 KERNELS! For 2.6 use tg3 (from kernel sources)
+# For 2.6 use tg3, for 2.4.x try tg3 first (from kernel sources)
 #
 # Conditional build:
-# _without_dist_kernel          without distribution kernel
+%bcond_without dist_kernel     # without distribution kernel
 #
 %define                _orig_name      bcm5700
 
@@ -17,10 +17,10 @@ Group:              Base/Kernel
 Source0:       http://support.3com.com/infodeli/tools/nic/linux/%{_orig_name}-%{version}.tar.gz
 # Source0-md5: 9aa1e1b2183675df8e1cfd2974ca6a2e
 URL:           http://support.3com.com/infodeli/tools/nic/linuxdownload.htm
-%{!?_without_dist_kernel:BuildRequires:        kernel-headers < 2.6.0}
+%{?with_dist_kernel:BuildRequires:     kernel-headers < 2.6.0}
 BuildRequires: %{kgcc_package}
 BuildRequires: rpmbuild(macros) >= 1.118
-%{!?_without_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:%requires_releq_kernel_up}
 Requires(post,postun): /sbin/depmod
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,7 +37,7 @@ Summary:      Linux SMP driver for the 3Com Gigabit Server BCM5700 (3c996) Network In
 Summary(pl):   Sterownik dla Linuksa SMP do kart sieciowych gigabit ethernet BCM5700 (3c996)
 Release:       %{_rel}@%{_kernel_ver_str}
 Group:         Base/Kernel
-%{!?_without_dist_kernel:%requires_releq_kernel_smp}
+%{?with_dist_kernel:%requires_releq_kernel_smp}
 Requires(post,postun): /sbin/depmod
 
 %description -n kernel-smp-net-%{_orig_name}
@@ -53,10 +53,12 @@ Sterownik dla Linuksa do kart sieciowych gigabit ethernet BCM5700
 
 %build
 cd src
-%{__make} CC="%{kgcc} %{rpmcflags} -Wall -I%{_kernelsrcdir}/include -D__SMP__ -DCONFIG_X86_LOCAL_APIC"
+%{__make} \
+       CC="%{kgcc} %{rpmcflags} -Wall -I%{_kernelsrcdir}/include -D__SMP__ -DCONFIG_X86_LOCAL_APIC"
 mv -f %{_orig_name}.o ../%{_orig_name}-smp.o
 %{__make} clean
-%{__make} CC="%{kgcc} %{rpmcflags} -Wall -I%{_kernelsrcdir}/include"
+%{__make} \
+       CC="%{kgcc} %{rpmcflags} -Wall -I%{_kernelsrcdir}/include"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.082634 seconds and 4 git commands to generate.