2dd4ff235ad729232d1fffc37367ff253bc75357
[packages/e1000.git] / e1000.spec
1 #
2 # Conditional build:
3 # _without_dist_kernel          without distribution kernel
4 #
5 %define         _orig_name      e1000
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.4.12
11 %define _rel    1
12 Release:        %{_rel}@%{_kernel_ver_str}
13 License:        BSD
14 Vendor:         Intel Corporation
15 Group:          Base/Kernel
16 Source0:        ftp://aiedownload.intel.com/df-support/4833/eng/%{_orig_name}-%{version}.tar.gz
17 # Source0-md5:  eabb4c64beb14755c56b191a2fdc767a
18 %{!?_without_dist_kernel:BuildRequires:         kernel-headers > 2.4 }
19 BuildRequires:  %{kgcc_package}
20 URL:            http://support.intel.com/support/network/adapter/pro100/
21 %{!?_without_dist_kernel:%requires_releq_kernel_up}
22 Requires(post,postun):  /sbin/depmod
23 Provides:       kernel(e1000)
24 Obsoletes:      e1000
25 Obsoletes:      linux-net-e1000
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 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
42 Requires(post,postun):  /sbin/depmod
43 Provides:       kernel(e1000)
44 Obsoletes:      e1000
45 Obsoletes:      linux-net-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
58 %build
59 %ifarch %{ix86}
60 %{__make} -C src SMP=1 CC="%{kgcc} -DCONFIG_X86_LOCAL_APIC -DSTB_WA" KSRC=%{_kernelsrcdir}
61 %else
62 %{__make} -C src SMP=1 CC="%{kgcc} -DSTB_WA" KSRC=%{_kernelsrcdir}
63 %endif
64 mv -f src/%{_orig_name}.o src/%{_orig_name}-smp.o
65 %{__make} -C src clean KSRC=%{_kernelsrcdir}
66 %{__make} -C src CC="%{kgcc} -DSTB_WA" KSRC=%{_kernelsrcdir}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
71 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
72 install src/%{_orig_name}-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_orig_name}.o
73 install src/%{_orig_name}.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_orig_name}.o
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post
79 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver} }%{_kernel_ver}
80
81 %postun
82 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver} }%{_kernel_ver}
83
84 %post   -n kernel-smp-net-%{_orig_name}
85 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver}smp }%{_kernel_ver}smp
86
87 %postun -n kernel-smp-net-%{_orig_name}
88 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver}smp }%{_kernel_ver}smp
89
90 %files
91 %defattr(644,root,root,755)
92 %doc %{_orig_name}.7 README ldistrib.txt
93 /lib/modules/%{_kernel_ver}/misc/*
94
95 %files -n kernel-smp-net-%{_orig_name}
96 %defattr(644,root,root,755)
97 %doc %{_orig_name}.7 README ldistrib.txt
98 /lib/modules/%{_kernel_ver}smp/misc/*
This page took 0.030547 seconds and 2 git commands to generate.