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