- kill duplicate dir installation
[packages/e1000.git] / e1000.spec
1 #
2 # Conditional build:
3 %bcond_without  dist_kernel     # allow non-distribution kernel
4 %bcond_without  smp             # don't build SMP module
5 %bcond_with     verbose         # verbose build (V=1)
6 #
7 %define         _rel    1
8 Summary:        Intel(R) PRO/1000 driver for Linux
9 Summary(pl):    Sterownik do karty Intel(R) PRO/1000
10 Name:           kernel%{_alt_kernel}-net-e1000
11 Version:        7.2.9
12 Release:        %{_rel}@%{_kernel_ver_str}
13 License:        GPL v2
14 Group:          Base/Kernel
15 Source0:        ftp://aiedownload.intel.com/df-support/9180/eng/e1000-%{version}.tar.gz
16 # Source0-md5:  cb9f601df6c60f889aaabec475ba2089
17 URL:            http://support.intel.com/support/network/adapter/index.htm#PRO/1000
18 %{?with_dist_kernel:BuildRequires:      kernel%{_alt_kernel}-module-build >= 3:2.6.7}
19 BuildRequires:  rpmbuild(macros) >= 1.330
20 Requires(post,postun):  /sbin/depmod
21 %if %{with dist_kernel}
22 %requires_releq_kernel_up
23 Requires(postun):       %releq_kernel_up
24 %endif
25 Provides:       kernel(e1000)
26 Obsoletes:      e1000
27 Obsoletes:      linux-net-e1000
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 This package contains the Linux driver for the Intel(R) PRO/1000
32 family of 10/100/1000 Ethernet network adapters.
33
34 %description -l pl
35 Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
36 10/100/1000Mbit z rodziny Intel(R) PRO/1000.
37
38 %package -n kernel%{_alt_kernel}-smp-net-e1000
39 Summary:        Intel(R) PRO/1000 driver for Linux SMP
40 Summary(pl):    Sterownik do karty Intel(R) PRO/1000
41 Release:        %{_rel}@%{_kernel_ver_str}
42 Group:          Base/Kernel
43 Requires(post,postun):  /sbin/depmod
44 %if %{with dist_kernel}
45 %requires_releq_kernel_smp
46 Requires(postun):       %releq_kernel_smp
47 %endif
48 Provides:       kernel(e1000)
49 Obsoletes:      e1000
50 Obsoletes:      linux-net-e1000
51
52 %description -n kernel%{_alt_kernel}-smp-net-e1000
53 This package contains the Linux SMP driver for the Intel(R) PRO/1000
54 family of 10/100/1000 Ethernet network adapters.
55
56 %description -n kernel%{_alt_kernel}-smp-net-e1000 -l pl
57 Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
58 10/100/1000Mbit z rodziny Intel(R) PRO/1000.
59
60 %prep
61 %setup -q -n e1000-%{version}
62
63 %build
64 cd src
65
66 cat >Makefile <<EOF
67 obj-m := e1000i.o
68 e1000i-objs := e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o kcompat.o
69 EOF
70
71 %build_kernel_modules -m e1000i
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %install_kernel_modules -m src/e1000i -d kernel/drivers/net
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post
82 %depmod %{_kernel_ver}
83
84 %postun
85 %depmod %{_kernel_ver}
86
87 %post   -n kernel%{_alt_kernel}-smp-net-e1000
88 %depmod %{_kernel_ver}smp
89
90 %postun -n kernel%{_alt_kernel}-smp-net-e1000
91 %depmod %{_kernel_ver}smp
92
93 %files
94 %defattr(644,root,root,755)
95 %doc e1000.7 README ldistrib.txt
96 /lib/modules/%{_kernel_ver}/kernel/drivers/net/*
97
98 %if %{with smp} && %{with dist_kernel}
99 %files -n kernel%{_alt_kernel}-smp-net-e1000
100 %defattr(644,root,root,755)
101 %doc e1000.7 README ldistrib.txt
102 /lib/modules/%{_kernel_ver}smp/kernel/drivers/net/*
103 %endif
This page took 0.044083 seconds and 3 git commands to generate.