- X86_LOCAL_APIC is only on ix86
[packages/e1000.git] / e1000.spec
CommitLineData
6b39b5a2
PG
1# conditional build
2# _without_dist_kernel without distribution kernel
6b39b5a2 3%define _orig_name e1000
6b39b5a2
PG
4
5Summary: Intel(R) PRO/1000 driver for Linux
6Summary(pl): Sterownik do karty Intel(R) PRO/1000
7Name: kernel-net-%{_orig_name}
6135fb7a
PG
8Version: 4.4.12
9%define _rel 1
24e60443 10Release: %{_rel}@%{_kernel_ver_str}
6b39b5a2
PG
11License: BSD
12Vendor: Intel Corporation
13Group: Base/Kernel
6135fb7a 14Source0: ftp://aiedownload.intel.com/df-support/4833/eng/%{_orig_name}-%{version}.tar.gz
cc65c159 15%{!?_without_dist_kernel:BuildRequires: kernel-headers > 2.4 }
6b39b5a2
PG
16BuildRequires: %{kgcc_package}
17URL: http://support.intel.com/support/network/adapter/pro100/
18Obsoletes: e1000
19Obsoletes: linux-net-e1000
20Provides: kernel(e1000)
21Prereq: /sbin/depmod
22%{!?_without_dist_kernel:%requires_releq_kernel_up}
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
fbba5257
PG
26This package contains the Linux driver for the Intel(R) PRO/1000
27family of 10/100/1000 Ethernet network adapters.
6b39b5a2
PG
28
29%description -l pl
fbba5257
PG
30Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
3110/100/1000Mbit z rodziny Intel(R) PRO/1000.
6b39b5a2
PG
32
33%package -n kernel-smp-net-%{_orig_name}
34Summary: Intel(R) PRO/1000 driver for Linux SMP
35Summary(pl): Sterownik do karty Intel(R) PRO/1000
36Release: %{_rel}@%{_kernel_ver_str}
37Group: Base/Kernel
38Prereq: /sbin/depmod
39%{!?_without_dist_kernel:%requires_releq_kernel_smp}
40Obsoletes: e1000
41Obsoletes: linux-net-e1000
42Provides: kernel(e1000)
43
44%description -n kernel-smp-net-%{_orig_name}
45This package contains the Linux SMP driver for the Intel(R) PRO/1000
46family of 10/100/1000 Ethernet network adapters.
47
48%description -n kernel-smp-net-%{_orig_name} -l pl
49Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
5010/100/1000Mbit z rodziny Intel(R) PRO/1000.
51
52%prep
53%setup -q -n %{_orig_name}-%{version}
54
55%build
239f289f 56%ifarch %{ix86}
cdde7fde 57%{__make} -C src SMP=1 CC="%{kgcc} -DCONFIG_X86_LOCAL_APIC -DSTB_WA" KSRC=%{_kernelsrcdir}
239f289f 58%else
59%{__make} -C src SMP=1 CC="%{kgcc} -DSTB_WA" KSRC=%{_kernelsrcdir}
60%endif
6b39b5a2 61mv -f src/%{_orig_name}.o src/%{_orig_name}-smp.o
cdde7fde
JB
62%{__make} -C src clean KSRC=%{_kernelsrcdir}
63%{__make} -C src CC="%{kgcc} -DSTB_WA" KSRC=%{_kernelsrcdir}
6b39b5a2
PG
64
65%install
66rm -rf $RPM_BUILD_ROOT
67install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
68install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
69install src/%{_orig_name}-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_orig_name}.o
70install src/%{_orig_name}.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_orig_name}.o
71
fbba5257 72%clean
6b39b5a2
PG
73rm -rf $RPM_BUILD_ROOT
74
75%post
76/sbin/depmod -a
77
78%postun
79/sbin/depmod -a
80
81%post -n kernel-smp-net-%{_orig_name}
82/sbin/depmod -a
83
84%postun -n kernel-smp-net-%{_orig_name}
85/sbin/depmod -a
86
87%files
88%defattr(644,root,root,755)
cdde7fde 89%doc %{_orig_name}.7 README ldistrib.txt
6b39b5a2
PG
90/lib/modules/%{_kernel_ver}/misc/*
91
92%files -n kernel-smp-net-%{_orig_name}
93%defattr(644,root,root,755)
cdde7fde 94%doc %{_orig_name}.7 README ldistrib.txt
6b39b5a2 95/lib/modules/%{_kernel_ver}smp/misc/*
This page took 0.040347 seconds and 4 git commands to generate.