- release 45
[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}
310382fc 12%undefine with_dist_kernel
1c8cc188
ER
13%endif
14%if "%{_alt_kernel}" != "%{nil}"
15%undefine with_userspace
16%endif
310382fc
ER
17# nothing to be placed to debuginfo package
18%define _enable_debug_packages 0
1c8cc188 19
8c924c67 20%define rel 45
1c8cc188 21%define pname e1000
6b39b5a2 22Summary: Intel(R) PRO/1000 driver for Linux
4be58e56 23Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
7c783bb8 24Name: %{pname}%{_alt_kernel}
b55c2fab 25Version: 8.0.23
0bf8baf3 26Release: %{rel}
69dc5a49 27License: GPL v2
6b39b5a2 28Group: Base/Kernel
7c783bb8 29Source0: http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
b55c2fab 30# Source0-md5: 6dedf514cfd443261791e376da2845fc
28f88906 31URL: http://sourceforge.net/projects/e1000/
c278a2a8 32%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
969a8b5b 33BuildRequires: rpmbuild(macros) >= 1.379
df193a65
ER
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37This package contains the Linux driver for the Intel(R) PRO/1000
ffef010d 38adapters with 8254x non-PCIe chipsets.
df193a65
ER
39
40%description -l pl.UTF-8
461d6467 41Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych z rodziny
ffef010d 42Intel(R) PRO/1000 opartych o układy 8254x niebędące PCIe.
df193a65
ER
43
44%package -n kernel%{_alt_kernel}-net-e1000
0bf8baf3 45Summary: Intel(R) PRO/1000 driver for Linux
f64af2c3 46Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
0bf8baf3 47Release: %{rel}@%{_kernel_ver_str}
df193a65 48Group: Base/Kernel
5672dc74 49Requires(post,postun): /sbin/depmod
69dc5a49 50%if %{with dist_kernel}
969a8b5b 51%requires_releq_kernel
52Requires(postun): %releq_kernel
69dc5a49 53%endif
6b39b5a2
PG
54Obsoletes: e1000
55Obsoletes: linux-net-e1000
6b39b5a2 56
df193a65 57%description -n kernel%{_alt_kernel}-net-e1000
fbba5257 58This package contains the Linux driver for the Intel(R) PRO/1000
ffef010d 59adapters with 8254x non-PCIe chipsets.
6b39b5a2 60
df193a65 61%description -n kernel%{_alt_kernel}-net-e1000 -l pl.UTF-8
461d6467 62Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych z rodziny
ffef010d 63Intel(R) PRO/1000 opartych o układy 8254x nie będące PCIe.
6b39b5a2 64
6b39b5a2 65%prep
7c783bb8 66%setup -q -n %{pname}-%{version}
4e64e7a4 67cat > src/Makefile <<'EOF'
9046c5f4 68obj-m := e1000.o
69f10338 69e1000-objs := e1000_main.o e1000_82540.o e1000_82542.o e1000_82541.o e1000_82543.o \
70e1000_mac.o e1000_nvm.o e1000_phy.o e1000_manage.o e1000_param.o e1000_ethtool.o \
71kcompat.o e1000_api.o
933ceef2 72
fe0cc1d3 73EXTRA_CFLAGS=-DDRIVER_E1000 -DVLAN_GROUP_ARRAY_LEN=VLAN_N_VID
69dc5a49
PS
74EOF
75
4e64e7a4 76%build
7c783bb8 77%build_kernel_modules -C src -m %{pname}
3d27cef4 78
6b39b5a2
PG
79%install
80rm -rf $RPM_BUILD_ROOT
7c783bb8 81%install_kernel_modules -m src/%{pname} -d kernel/drivers/net -n %{pname} -s current
5711d242 82# blacklist kernel module
83cat > $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf <<'EOF'
84blacklist e1000
85alias e1000 e1000-current
86EOF
6b39b5a2 87
fbba5257 88%clean
6b39b5a2
PG
89rm -rf $RPM_BUILD_ROOT
90
df193a65 91%post -n kernel%{_alt_kernel}-net-e1000
5f5a9fa5 92%depmod %{_kernel_ver}
6b39b5a2 93
df193a65 94%postun -n kernel%{_alt_kernel}-net-e1000
5f5a9fa5 95%depmod %{_kernel_ver}
6b39b5a2 96
df193a65 97%files -n kernel%{_alt_kernel}-net-e1000
6b39b5a2 98%defattr(644,root,root,755)
df193a65 99%doc e1000.7 README
7c783bb8 100/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
101/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko*
This page took 0.115364 seconds and 4 git commands to generate.