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