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