- alpha build fixes, rel. 8
[packages/e1000.git] / e1000.spec
1 # conditional build
2 # _without_dist_kernel          without distribution kernel
3
4 %define         _orig_name      e1000
5
6 Summary:        Intel(R) PRO/1000 driver for Linux
7 Summary(pl):    Sterownik do karty Intel(R) PRO/1000
8 Name:           kernel-net-%{_orig_name}
9 Version:        4.3.15
10 %define _rel    8
11 Release:        %{_rel}@%{_kernel_ver_str}
12 License:        BSD
13 Vendor:         Intel Corporation
14 Group:          Base/Kernel
15 Source0:        ftp://aiedownload.intel.com/df-support/2897/eng/%{_orig_name}-%{version}.tar.gz
16 # Source0-md5:  d1b09d0210c27f8aa931601980da5b56
17 Patch0:         %{name}-alpha.patch
18 %{!?_without_dist_kernel:BuildRequires: kernel-headers }
19 BuildRequires:  %{kgcc_package}
20 URL:            http://support.intel.com/support/network/adapter/pro100/
21 Obsoletes:      e1000
22 Obsoletes:      linux-net-e1000
23 Provides:       kernel(e1000)
24 Prereq:         /sbin/depmod
25 %{!?_without_dist_kernel:%requires_releq_kernel_up}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This package contains the Linux driver for the Intel(R) PRO/1000
30 family of 10/100/1000 Ethernet network adapters.
31
32 %description -l pl
33 Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
34 10/100/1000Mbit z rodziny Intel(R) PRO/1000.
35
36 %package -n kernel-smp-net-%{_orig_name}
37 Summary:        Intel(R) PRO/1000 driver for Linux SMP
38 Summary(pl):    Sterownik do karty Intel(R) PRO/1000
39 Release:        %{_rel}@%{_kernel_ver_str}
40 Group:          Base/Kernel
41 Prereq:         /sbin/depmod
42 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
43 Obsoletes:      e1000
44 Obsoletes:      linux-net-e1000
45 Provides:       kernel(e1000)
46
47 %description -n kernel-smp-net-%{_orig_name}
48 This package contains the Linux SMP driver for the Intel(R) PRO/1000
49 family of 10/100/1000 Ethernet network adapters.
50
51 %description -n kernel-smp-net-%{_orig_name} -l pl
52 Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
53 10/100/1000Mbit z rodziny Intel(R) PRO/1000.
54
55 %prep
56 %setup -q -n %{_orig_name}-%{version}
57 %patch -p1
58
59 %build
60 %{__make} -C src SMP=1 CC="%{kgcc} -DCONFIG_X86_LOCAL_APIC -DSTB_WA" KSRC=%{_kernelsrcdir}
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.034862 seconds and 3 git commands to generate.