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