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