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