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