- updated to 8.0.1
[packages/e1000.git] / e1000.spec
CommitLineData
5672dc74
JB
1#
2# Conditional build:
69dc5a49 3%bcond_without dist_kernel # allow non-distribution kernel
1c8cc188 4%bcond_without kernel # don't build kernel modules
69dc5a49 5%bcond_with verbose # verbose build (V=1)
1c8cc188
ER
6
7%ifarch sparc
8%undefine with_smp
9%endif
10
11%if %{without kernel}
12%undefine with_dist_kernel
13%endif
14%if "%{_alt_kernel}" != "%{nil}"
15%undefine with_userspace
16%endif
17
cdd86175 18%define rel 1
1c8cc188 19%define pname e1000
6b39b5a2 20Summary: Intel(R) PRO/1000 driver for Linux
4be58e56 21Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
7c783bb8 22Name: %{pname}%{_alt_kernel}
cdd86175 23Version: 8.0.1
0bf8baf3 24Release: %{rel}
69dc5a49 25License: GPL v2
6b39b5a2 26Group: Base/Kernel
7c783bb8 27Source0: http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
cdd86175 28# Source0-md5: c9464fc1ac8f2c44647262f3a06b0020
28f88906 29URL: http://sourceforge.net/projects/e1000/
c278a2a8 30%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
969a8b5b 31BuildRequires: rpmbuild(macros) >= 1.379
df193a65
ER
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35This package contains the Linux driver for the Intel(R) PRO/1000
36family of 10/100/1000 Ethernet network adapters.
37
38%description -l pl.UTF-8
39Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
4010/100/1000Mbit z rodziny Intel(R) PRO/1000.
41
42%package -n kernel%{_alt_kernel}-net-e1000
0bf8baf3 43Summary: Intel(R) PRO/1000 driver for Linux
f64af2c3 44Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
0bf8baf3 45Release: %{rel}@%{_kernel_ver_str}
df193a65 46Group: Base/Kernel
5672dc74 47Requires(post,postun): /sbin/depmod
69dc5a49 48%if %{with dist_kernel}
969a8b5b 49%requires_releq_kernel
50Requires(postun): %releq_kernel
69dc5a49 51%endif
6b39b5a2
PG
52Obsoletes: e1000
53Obsoletes: linux-net-e1000
6b39b5a2 54
df193a65 55%description -n kernel%{_alt_kernel}-net-e1000
fbba5257
PG
56This package contains the Linux driver for the Intel(R) PRO/1000
57family of 10/100/1000 Ethernet network adapters.
6b39b5a2 58
df193a65 59%description -n kernel%{_alt_kernel}-net-e1000 -l pl.UTF-8
fbba5257
PG
60Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
6110/100/1000Mbit z rodziny Intel(R) PRO/1000.
6b39b5a2 62
6b39b5a2 63%prep
7c783bb8 64%setup -q -n %{pname}-%{version}
4e64e7a4 65cat > src/Makefile <<'EOF'
9046c5f4 66obj-m := e1000.o
f859d840 67e1000-objs := e1000_main.o e1000_82540.o e1000_82542.o e1000_82571.o e1000_82541.o \
68e1000_82543.o e1000_ich8lan.o e1000_80003es2lan.o e1000_mac.o e1000_nvm.o e1000_phy.o \
69e1000_manage.o e1000_param.o e1000_ethtool.o kcompat.o e1000_api.o
933ceef2 70
71EXTRA_CFLAGS=-DDRIVER_E1000
69dc5a49
PS
72EOF
73
4e64e7a4 74%build
7c783bb8 75%build_kernel_modules -C src -m %{pname}
3d27cef4 76
6b39b5a2
PG
77%install
78rm -rf $RPM_BUILD_ROOT
7c783bb8 79%install_kernel_modules -m src/%{pname} -d kernel/drivers/net -n %{pname} -s current
5711d242 80# blacklist kernel module
81cat > $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf <<'EOF'
82blacklist e1000
83alias e1000 e1000-current
84EOF
6b39b5a2 85
fbba5257 86%clean
6b39b5a2
PG
87rm -rf $RPM_BUILD_ROOT
88
df193a65 89%post -n kernel%{_alt_kernel}-net-e1000
5f5a9fa5 90%depmod %{_kernel_ver}
6b39b5a2 91
df193a65 92%postun -n kernel%{_alt_kernel}-net-e1000
5f5a9fa5 93%depmod %{_kernel_ver}
6b39b5a2 94
df193a65 95%files -n kernel%{_alt_kernel}-net-e1000
6b39b5a2 96%defattr(644,root,root,755)
df193a65 97%doc e1000.7 README
7c783bb8 98/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
99/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko*
This page took 0.099104 seconds and 4 git commands to generate.