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