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