- 7.6.12
[packages/e1000.git] / e1000.spec
1 #
2 # Conditional build:
3 %bcond_without  dist_kernel     # allow non-distribution kernel
4 %bcond_with     verbose         # verbose build (V=1)
5 #
6 %define         _rel    1
7 %define         _mod_name       e1000
8 #
9 Summary:        Intel(R) PRO/1000 driver for Linux
10 Summary(pl.UTF-8):      Sterownik do karty Intel(R) PRO/1000
11 Name:           kernel%{_alt_kernel}-net-e1000
12 Version:        7.6.12
13 Release:        %{_rel}@%{_kernel_ver_str}
14 License:        GPL v2
15 Group:          Base/Kernel
16 Source0:        http://dl.sourceforge.net/e1000/%{_mod_name}-%{version}.tar.gz
17 # Source0-md5:  e3a54d3a2862b378eeddfa2ce6298cae
18 URL:            http://sourceforge.net/projects/e1000/
19 %{?with_dist_kernel:BuildRequires:      kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
20 BuildRequires:  rpmbuild(macros) >= 1.379
21 Requires(post,postun):  /sbin/depmod
22 %if %{with dist_kernel}
23 %requires_releq_kernel
24 Requires(postun):       %releq_kernel
25 %endif
26 Provides:       kernel(e1000)
27 Obsoletes:      e1000
28 Obsoletes:      linux-net-e1000
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This package contains the Linux driver for the Intel(R) PRO/1000
33 family of 10/100/1000 Ethernet network adapters.
34
35 %description -l pl.UTF-8
36 Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
37 10/100/1000Mbit z rodziny Intel(R) PRO/1000.
38
39 %prep
40 %setup -q -n %{_mod_name}-%{version}
41 cat > src/Makefile <<'EOF'
42 obj-m := e1000.o
43 e1000-objs := e1000_main.o e1000_82540.o e1000_82542.o e1000_82571.o e1000_82541.o \
44 e1000_82543.o e1000_ich8lan.o e1000_80003es2lan.o e1000_mac.o e1000_nvm.o e1000_phy.o \
45 e1000_manage.o e1000_param.o e1000_ethtool.o kcompat.o e1000_api.o
46 EOF
47
48 %build
49 %build_kernel_modules -C src -m %{_mod_name}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 %install_kernel_modules -m src/%{_mod_name} -d kernel/drivers/net -n %{_mod_name} -s current
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 %depmod %{_kernel_ver}
60
61 %postun
62 %depmod %{_kernel_ver}
63
64 %files
65 %defattr(644,root,root,755)
66 %doc e1000.7 README 
67 /etc/modprobe.d/%{_kernel_ver}/%{_mod_name}.conf
68 /lib/modules/%{_kernel_ver}/kernel/drivers/net/%{_mod_name}*.ko*
This page took 0.06671 seconds and 3 git commands to generate.