- 7.4.27
[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
f859d840 12Version: 7.4.27
24e60443 13Release: %{_rel}@%{_kernel_ver_str}
69dc5a49 14License: GPL v2
6b39b5a2 15Group: Base/Kernel
f859d840 16#Source0: ftp://aiedownload.intel.com/df-support/9180/eng/e1000-%{version}.tar.gz
17Source0: http://dl.sourceforge.net/e1000/e1000-%{version}.tar.gz
18# Source0-md5: 1c6f31016bba0cbe2e4dbfecd4c7c058
3c4d4ad2 19URL: http://support.intel.com/support/network/adapter/index.htm#PRO/1000
949b6f8d 20%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
a106ea97 21BuildRequires: rpmbuild(macros) >= 1.330
5672dc74 22Requires(post,postun): /sbin/depmod
69dc5a49
PS
23%if %{with dist_kernel}
24%requires_releq_kernel_up
25Requires(postun): %releq_kernel_up
26%endif
5672dc74 27Provides: kernel(e1000)
6b39b5a2
PG
28Obsoletes: e1000
29Obsoletes: linux-net-e1000
6b39b5a2
PG
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
fbba5257
PG
33This package contains the Linux driver for the Intel(R) PRO/1000
34family of 10/100/1000 Ethernet network adapters.
6b39b5a2 35
80546c68 36%description -l pl.UTF-8
fbba5257
PG
37Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
3810/100/1000Mbit z rodziny Intel(R) PRO/1000.
6b39b5a2 39
949b6f8d 40%package -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2 41Summary: Intel(R) PRO/1000 driver for Linux SMP
4be58e56 42Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
6b39b5a2
PG
43Release: %{_rel}@%{_kernel_ver_str}
44Group: Base/Kernel
5672dc74 45Requires(post,postun): /sbin/depmod
69dc5a49
PS
46%if %{with dist_kernel}
47%requires_releq_kernel_smp
48Requires(postun): %releq_kernel_smp
49%endif
5672dc74 50Provides: kernel(e1000)
6b39b5a2
PG
51Obsoletes: e1000
52Obsoletes: linux-net-e1000
6b39b5a2 53
949b6f8d 54%description -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2
PG
55This package contains the Linux SMP driver for the Intel(R) PRO/1000
56family of 10/100/1000 Ethernet network adapters.
57
80546c68 58%description -n kernel%{_alt_kernel}-smp-net-e1000 -l pl.UTF-8
6b39b5a2
PG
59Ten pakiet zawiera sterownik dla Linuksa SMP do kart sieciowych
6010/100/1000Mbit z rodziny Intel(R) PRO/1000.
61
62%prep
69dc5a49 63%setup -q -n e1000-%{version}
4e64e7a4 64cat > src/Makefile <<'EOF'
9046c5f4 65obj-m := e1000.o
f859d840 66e1000-objs := e1000_main.o e1000_82540.o e1000_82542.o e1000_82571.o e1000_82541.o \
67e1000_82543.o e1000_ich8lan.o e1000_80003es2lan.o e1000_mac.o e1000_nvm.o e1000_phy.o \
68e1000_manage.o e1000_param.o e1000_ethtool.o kcompat.o e1000_api.o
69dc5a49
PS
69EOF
70
4e64e7a4 71%build
9046c5f4 72%build_kernel_modules -C src -m e1000
3d27cef4 73
6b39b5a2
PG
74%install
75rm -rf $RPM_BUILD_ROOT
9046c5f4 76%install_kernel_modules -m src/e1000 -d kernel/drivers/net -n e1000 -s current
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 92
6f06dc41 93%if %{with up} || %{without dist_kernel}
6b39b5a2
PG
94%files
95%defattr(644,root,root,755)
69dc5a49 96%doc e1000.7 README ldistrib.txt
9046c5f4
ER
97/etc/modprobe.d/%{_kernel_ver}/e1000.conf
98/lib/modules/%{_kernel_ver}/kernel/drivers/net/e1000*.ko*
6f06dc41 99%endif
6b39b5a2 100
3a91d8ce 101%if %{with smp} && %{with dist_kernel}
949b6f8d 102%files -n kernel%{_alt_kernel}-smp-net-e1000
6b39b5a2 103%defattr(644,root,root,755)
69dc5a49 104%doc e1000.7 README ldistrib.txt
9046c5f4
ER
105/etc/modprobe.d/%{_kernel_ver}smp/e1000.conf
106/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/e1000*.ko*
3a91d8ce 107%endif
This page took 0.087888 seconds and 4 git commands to generate.