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