]>
Commit | Line | Data |
---|---|---|
5672dc74 JB |
1 | # |
2 | # Conditional build: | |
69dc5a49 | 3 | %bcond_without dist_kernel # allow non-distribution kernel |
69dc5a49 | 4 | %bcond_with verbose # verbose build (V=1) |
5672dc74 | 5 | # |
af4c27d3 | 6 | %define _rel 1 |
6b39b5a2 | 7 | Summary: Intel(R) PRO/1000 driver for Linux |
4be58e56 | 8 | Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000 |
949b6f8d | 9 | Name: kernel%{_alt_kernel}-net-e1000 |
969a8b5b | 10 | Version: 7.4.35 |
24e60443 | 11 | Release: %{_rel}@%{_kernel_ver_str} |
69dc5a49 | 12 | License: GPL v2 |
6b39b5a2 | 13 | Group: Base/Kernel |
f859d840 | 14 | #Source0: ftp://aiedownload.intel.com/df-support/9180/eng/e1000-%{version}.tar.gz |
15 | Source0: http://dl.sourceforge.net/e1000/e1000-%{version}.tar.gz | |
969a8b5b | 16 | # Source0-md5: cac540f221e3d9589dffc679c490a6a2 |
3c4d4ad2 | 17 | URL: http://support.intel.com/support/network/adapter/index.htm#PRO/1000 |
949b6f8d | 18 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7} |
969a8b5b | 19 | BuildRequires: rpmbuild(macros) >= 1.379 |
5672dc74 | 20 | Requires(post,postun): /sbin/depmod |
69dc5a49 | 21 | %if %{with dist_kernel} |
969a8b5b | 22 | %requires_releq_kernel |
23 | Requires(postun): %releq_kernel | |
69dc5a49 | 24 | %endif |
5672dc74 | 25 | Provides: kernel(e1000) |
6b39b5a2 PG |
26 | Obsoletes: e1000 |
27 | Obsoletes: linux-net-e1000 | |
6b39b5a2 PG |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
fbba5257 PG |
31 | This package contains the Linux driver for the Intel(R) PRO/1000 |
32 | family of 10/100/1000 Ethernet network adapters. | |
6b39b5a2 | 33 | |
80546c68 | 34 | %description -l pl.UTF-8 |
fbba5257 PG |
35 | Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych |
36 | 10/100/1000Mbit z rodziny Intel(R) PRO/1000. | |
6b39b5a2 | 37 | |
6b39b5a2 | 38 | %prep |
69dc5a49 | 39 | %setup -q -n e1000-%{version} |
4e64e7a4 | 40 | cat > src/Makefile <<'EOF' |
9046c5f4 | 41 | obj-m := e1000.o |
f859d840 | 42 | e1000-objs := e1000_main.o e1000_82540.o e1000_82542.o e1000_82571.o e1000_82541.o \ |
43 | e1000_82543.o e1000_ich8lan.o e1000_80003es2lan.o e1000_mac.o e1000_nvm.o e1000_phy.o \ | |
44 | e1000_manage.o e1000_param.o e1000_ethtool.o kcompat.o e1000_api.o | |
69dc5a49 PS |
45 | EOF |
46 | ||
4e64e7a4 | 47 | %build |
9046c5f4 | 48 | %build_kernel_modules -C src -m e1000 |
3d27cef4 | 49 | |
6b39b5a2 PG |
50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
9046c5f4 | 52 | %install_kernel_modules -m src/e1000 -d kernel/drivers/net -n e1000 -s current |
6b39b5a2 | 53 | |
fbba5257 | 54 | %clean |
6b39b5a2 PG |
55 | rm -rf $RPM_BUILD_ROOT |
56 | ||
57 | %post | |
5f5a9fa5 | 58 | %depmod %{_kernel_ver} |
6b39b5a2 PG |
59 | |
60 | %postun | |
5f5a9fa5 | 61 | %depmod %{_kernel_ver} |
6b39b5a2 | 62 | |
6b39b5a2 PG |
63 | %files |
64 | %defattr(644,root,root,755) | |
69dc5a49 | 65 | %doc e1000.7 README ldistrib.txt |
9046c5f4 ER |
66 | /etc/modprobe.d/%{_kernel_ver}/e1000.conf |
67 | /lib/modules/%{_kernel_ver}/kernel/drivers/net/e1000*.ko* |