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