- kill duplicate dir installation
[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}
6b39b5a2
PG
62
63%build
76f1612f 64cd src
69dc5a49 65
9246bdfb 66cat >Makefile <<EOF
69dc5a49
PS
67obj-m := e1000i.o
68e1000i-objs := e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o kcompat.o
69EOF
70
67ff5f7e 71%build_kernel_modules -m e1000i
3d27cef4 72
6b39b5a2
PG
73%install
74rm -rf $RPM_BUILD_ROOT
3d27cef4 75
67ff5f7e 76%install_kernel_modules -m src/e1000i -d kernel/drivers/net
6b39b5a2 77
fbba5257 78%clean
6b39b5a2
PG
79rm -rf $RPM_BUILD_ROOT
80
81%post
5f5a9fa5 82%depmod %{_kernel_ver}
6b39b5a2
PG
83
84%postun
5f5a9fa5 85%depmod %{_kernel_ver}
6b39b5a2 86
949b6f8d 87%post -n kernel%{_alt_kernel}-smp-net-e1000
5f5a9fa5 88%depmod %{_kernel_ver}smp
6b39b5a2 89
949b6f8d 90%postun -n kernel%{_alt_kernel}-smp-net-e1000
5f5a9fa5 91%depmod %{_kernel_ver}smp
6b39b5a2
PG
92
93%files
94%defattr(644,root,root,755)
69dc5a49
PS
95%doc e1000.7 README ldistrib.txt
96/lib/modules/%{_kernel_ver}/kernel/drivers/net/*
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
PS
101%doc e1000.7 README ldistrib.txt
102/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/*
3a91d8ce 103%endif
This page took 0.103824 seconds and 4 git commands to generate.