2 # _without_dist_kernel without distribution kernel
4 %define _orig_name bcm5700
6 Summary: Linux driver for the 3Com Gigabit Server BCM5700 (3c996) Network Interface Cards
7 Summary(pl): Sterownik dla Linuksa do kart sieciowych gigabit ethernet BCM5700 (3c996)
8 Name: kernel-net-%{_orig_name}
11 Release: %{_rel}@%{_kernel_ver_str}
14 Source0: http://support.3com.com/infodeli/tools/nic/linux/%{_orig_name}-%{version}.tar.gz
15 Patch0: %{_orig_name}-vlan-mtu.patch
16 URL: http://support.3com.com/infodeli/tools/nic/linuxdownload.htm
17 %{!?_without_dist_kernel:BuildRequires: kernel-headers }
18 BuildRequires: %{kgcc_package}
19 %{!?_without_dist_kernel:%requires_releq_kernel_up}
20 Requires(post,postun): /sbin/depmod
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Linux driver for the 3Com Gigabit Server BCM5700 (3c996) Network
28 Sterownik dla Linuksa do kart sieciowych gigabit ethernet BCM5700
29 (3c996). ObsĀ³uguje karty o symbolach 3c996B-T i 3c996-SX.
31 %package -n kernel-smp-net-%{_orig_name}
32 Summary: Linux SMP driver for the 3Com Gigabit Server BCM5700 (3c996) Network Interface Cards
33 Summary(pl): Sterownik dla Linuksa SMP do kart sieciowych gigabit ethernet BCM5700 (3c996)
34 Release: %{_rel}@%{_kernel_ver_str}
36 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
37 Requires(post,postun): /sbin/depmod
39 %description -n kernel-smp-net-%{_orig_name}
40 Linux SMP driver for the 3Com Gigabit Server BCM5700 (3c996) Network
43 %description -n kernel-smp-net-%{_orig_name} -l pl
44 Sterownik dla Linuksa do kart sieciowych gigabit ethernet BCM5700
45 (3c996). ObsĀ³uguje karty o symbolach 3c996B-T i 3c996-SX.
48 %setup -q -n %{_orig_name}-%{version} -c
53 %{__make} CC="%{kgcc} %{rpmcflags} -Wall -I%{_kernelsrcdir}/include -D__SMP__ -DCONFIG_X86_LOCAL_APIC"
54 mv -f %{_orig_name}.o ../%{_orig_name}-smp.o
56 %{__make} CC="%{kgcc} %{rpmcflags} -Wall -I%{_kernelsrcdir}/include"
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
61 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
62 install -d $RPM_BUILD_ROOT%{_mandir}/man4
63 install %{_orig_name}-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_orig_name}.o
64 install src/%{_orig_name}.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_orig_name}.o
65 install src/%{_orig_name}.4.gz $RPM_BUILD_ROOT%{_mandir}/man4
68 rm -rf $RPM_BUILD_ROOT
76 %post -n kernel-smp-net-%{_orig_name}
79 %postun -n kernel-smp-net-%{_orig_name}
83 %defattr(644,root,root,755)
85 /lib/modules/%{_kernel_ver}/misc/*
88 %files -n kernel-smp-net-%{_orig_name}
89 %defattr(644,root,root,755)
91 /lib/modules/%{_kernel_ver}smp/misc/*