- up to 7.3.20
[packages/e1000.git] / e1000.spec
CommitLineData
5672dc74
JB
1#
2# Conditional build:
69dc5a49 3%bcond_without dist_kernel # allow non-distribution kernel
6f06dc41 4%bcond_without up # don't build UP module
c259e077 5%bcond_without smp # don't build SMP module
69dc5a49 6%bcond_with verbose # verbose build (V=1)
5672dc74 7#
af4c27d3 8%define _rel 1
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
af4c27d3 12Version: 7.3.20
24e60443 13Release: %{_rel}@%{_kernel_ver_str}
69dc5a49 14License: GPL v2
6b39b5a2 15Group: Base/Kernel
48c0c2ff 16Source0: ftp://aiedownload.intel.com/df-support/9180/eng/e1000-%{version}.tar.gz
af4c27d3 17# Source0-md5: 5775b2aae2172be6c14c060c028d4696
3c4d4ad2 18URL: http://support.intel.com/support/network/adapter/index.htm#PRO/1000
949b6f8d 19%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
a106ea97 20BuildRequires: rpmbuild(macros) >= 1.330
5672dc74 21Requires(post,postun): /sbin/depmod
69dc5a49
PS
22%if %{with dist_kernel}
23%requires_releq_kernel_up
24Requires(postun): %releq_kernel_up
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
949b6f8d 39%package -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2 40Summary: Intel(R) PRO/1000 driver for Linux SMP
4be58e56 41Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
6b39b5a2
PG
42Release: %{_rel}@%{_kernel_ver_str}
43Group: Base/Kernel
5672dc74 44Requires(post,postun): /sbin/depmod
69dc5a49
PS
45%if %{with dist_kernel}
46%requires_releq_kernel_smp
47Requires(postun): %releq_kernel_smp
48%endif
5672dc74 49Provides: kernel(e1000)
6b39b5a2
PG
50Obsoletes: e1000
51Obsoletes: linux-net-e1000
6b39b5a2 52
949b6f8d 53%description -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2
PG
54This package contains the Linux SMP driver for the Intel(R) PRO/1000
55family of 10/100/1000 Ethernet network adapters.
56
80546c68 57%description -n kernel%{_alt_kernel}-smp-net-e1000 -l pl.UTF-8
6b39b5a2
PG
58Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
5910/100/1000Mbit z rodziny Intel(R) PRO/1000.
60
61%prep
69dc5a49 62%setup -q -n e1000-%{version}
4e64e7a4 63cat > src/Makefile <<'EOF'
9046c5f4
ER
64obj-m := e1000.o
65e1000-objs := e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o kcompat.o
69dc5a49
PS
66EOF
67
4e64e7a4 68%build
9046c5f4 69%build_kernel_modules -C src -m e1000
3d27cef4 70
6b39b5a2
PG
71%install
72rm -rf $RPM_BUILD_ROOT
9046c5f4 73%install_kernel_modules -m src/e1000 -d kernel/drivers/net -n e1000 -s current
6b39b5a2 74
fbba5257 75%clean
6b39b5a2
PG
76rm -rf $RPM_BUILD_ROOT
77
78%post
5f5a9fa5 79%depmod %{_kernel_ver}
6b39b5a2
PG
80
81%postun
5f5a9fa5 82%depmod %{_kernel_ver}
6b39b5a2 83
949b6f8d 84%post -n kernel%{_alt_kernel}-smp-net-e1000
5f5a9fa5 85%depmod %{_kernel_ver}smp
6b39b5a2 86
949b6f8d 87%postun -n kernel%{_alt_kernel}-smp-net-e1000
5f5a9fa5 88%depmod %{_kernel_ver}smp
6b39b5a2 89
6f06dc41 90%if %{with up} || %{without dist_kernel}
6b39b5a2
PG
91%files
92%defattr(644,root,root,755)
69dc5a49 93%doc e1000.7 README ldistrib.txt
9046c5f4
ER
94/etc/modprobe.d/%{_kernel_ver}/e1000.conf
95/lib/modules/%{_kernel_ver}/kernel/drivers/net/e1000*.ko*
6f06dc41 96%endif
6b39b5a2 97
3a91d8ce 98%if %{with smp} && %{with dist_kernel}
949b6f8d 99%files -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2 100%defattr(644,root,root,755)
69dc5a49 101%doc e1000.7 README ldistrib.txt
9046c5f4
ER
102/etc/modprobe.d/%{_kernel_ver}smp/e1000.conf
103/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/e1000*.ko*
3a91d8ce 104%endif
This page took 0.113335 seconds and 4 git commands to generate.