- cosmetics
[packages/e1000.git] / e1000.spec
CommitLineData
5672dc74
JB
1#
2# Conditional build:
69dc5a49 3%bcond_without dist_kernel # allow non-distribution kernel
c259e077 4%bcond_without smp # don't build SMP module
69dc5a49 5%bcond_with verbose # verbose build (V=1)
5672dc74 6#
fc821d83 7%define _rel 1
6b39b5a2
PG
8Summary: Intel(R) PRO/1000 driver for Linux
9Summary(pl): Sterownik do karty Intel(R) PRO/1000
949b6f8d 10Name: kernel%{_alt_kernel}-net-e1000
35776db6 11Version: 7.2.9
24e60443 12Release: %{_rel}@%{_kernel_ver_str}
69dc5a49 13License: GPL v2
6b39b5a2 14Group: Base/Kernel
48c0c2ff 15Source0: ftp://aiedownload.intel.com/df-support/9180/eng/e1000-%{version}.tar.gz
35776db6 16# Source0-md5: cb9f601df6c60f889aaabec475ba2089
3c4d4ad2 17URL: http://support.intel.com/support/network/adapter/index.htm#PRO/1000
949b6f8d 18%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
a106ea97 19BuildRequires: rpmbuild(macros) >= 1.330
5672dc74 20Requires(post,postun): /sbin/depmod
69dc5a49
PS
21%if %{with dist_kernel}
22%requires_releq_kernel_up
23Requires(postun): %releq_kernel_up
24%endif
5672dc74 25Provides: kernel(e1000)
6b39b5a2
PG
26Obsoletes: e1000
27Obsoletes: linux-net-e1000
6b39b5a2
PG
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
fbba5257
PG
31This package contains the Linux driver for the Intel(R) PRO/1000
32family of 10/100/1000 Ethernet network adapters.
6b39b5a2
PG
33
34%description -l pl
fbba5257
PG
35Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
3610/100/1000Mbit z rodziny Intel(R) PRO/1000.
6b39b5a2 37
949b6f8d 38%package -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2
PG
39Summary: Intel(R) PRO/1000 driver for Linux SMP
40Summary(pl): Sterownik do karty Intel(R) PRO/1000
41Release: %{_rel}@%{_kernel_ver_str}
42Group: Base/Kernel
5672dc74 43Requires(post,postun): /sbin/depmod
69dc5a49
PS
44%if %{with dist_kernel}
45%requires_releq_kernel_smp
46Requires(postun): %releq_kernel_smp
47%endif
5672dc74 48Provides: kernel(e1000)
6b39b5a2
PG
49Obsoletes: e1000
50Obsoletes: linux-net-e1000
6b39b5a2 51
949b6f8d 52%description -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2
PG
53This package contains the Linux SMP driver for the Intel(R) PRO/1000
54family of 10/100/1000 Ethernet network adapters.
55
949b6f8d 56%description -n kernel%{_alt_kernel}-smp-net-e1000 -l pl
6b39b5a2
PG
57Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
5810/100/1000Mbit z rodziny Intel(R) PRO/1000.
59
60%prep
69dc5a49 61%setup -q -n e1000-%{version}
4e64e7a4 62cat > src/Makefile <<'EOF'
69dc5a49
PS
63obj-m := e1000i.o
64e1000i-objs := e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o kcompat.o
65EOF
66
4e64e7a4 67%build
68%build_kernel_modules -C src -m e1000i
3d27cef4 69
6b39b5a2
PG
70%install
71rm -rf $RPM_BUILD_ROOT
3d27cef4 72
67ff5f7e 73%install_kernel_modules -m src/e1000i -d kernel/drivers/net
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
PG
89
90%files
91%defattr(644,root,root,755)
69dc5a49 92%doc e1000.7 README ldistrib.txt
4e64e7a4 93/lib/modules/%{_kernel_ver}/kernel/drivers/net/e1000i.ko*
6b39b5a2 94
3a91d8ce 95%if %{with smp} && %{with dist_kernel}
949b6f8d 96%files -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2 97%defattr(644,root,root,755)
69dc5a49 98%doc e1000.7 README ldistrib.txt
4e64e7a4 99/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/e1000i.ko*
3a91d8ce 100%endif
This page took 0.042464 seconds and 4 git commands to generate.