- suffix src package with alt kernel name (if present)
[packages/e1000.git] / e1000.spec
CommitLineData
5672dc74
JB
1#
2# Conditional build:
69dc5a49 3%bcond_without dist_kernel # allow non-distribution kernel
69dc5a49 4%bcond_with verbose # verbose build (V=1)
5672dc74 5#
7c783bb8 6%define pname e1000
198be586 7%define _rel 2
cfed57de 8#
6b39b5a2 9Summary: Intel(R) PRO/1000 driver for Linux
4be58e56 10Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
7c783bb8 11Name: %{pname}%{_alt_kernel}
7b07a70c 12Version: 7.6.12
df193a65 13Release: %{_rel}
69dc5a49 14License: GPL v2
6b39b5a2 15Group: Base/Kernel
7c783bb8 16Source0: http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
7b07a70c 17# Source0-md5: e3a54d3a2862b378eeddfa2ce6298cae
28f88906 18URL: http://sourceforge.net/projects/e1000/
c278a2a8 19%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
969a8b5b 20BuildRequires: rpmbuild(macros) >= 1.379
df193a65
ER
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This package contains the Linux driver for the Intel(R) PRO/1000
25family of 10/100/1000 Ethernet network adapters.
26
27%description -l pl.UTF-8
28Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
2910/100/1000Mbit z rodziny Intel(R) PRO/1000.
30
31%package -n kernel%{_alt_kernel}-net-e1000
32Summary: Intel(R) PRO/1000 driver for Linux SMP
f64af2c3 33Summary(pl.UTF-8): Sterownik do karty Intel(R) PRO/1000
df193a65
ER
34Release: %{_rel}@%{_kernel_ver_str}
35Group: Base/Kernel
5672dc74 36Requires(post,postun): /sbin/depmod
69dc5a49 37%if %{with dist_kernel}
969a8b5b 38%requires_releq_kernel
39Requires(postun): %releq_kernel
69dc5a49 40%endif
5672dc74 41Provides: kernel(e1000)
6b39b5a2
PG
42Obsoletes: e1000
43Obsoletes: linux-net-e1000
6b39b5a2 44
df193a65 45%description -n kernel%{_alt_kernel}-net-e1000
fbba5257
PG
46This package contains the Linux driver for the Intel(R) PRO/1000
47family of 10/100/1000 Ethernet network adapters.
6b39b5a2 48
df193a65 49%description -n kernel%{_alt_kernel}-net-e1000 -l pl.UTF-8
fbba5257
PG
50Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych
5110/100/1000Mbit z rodziny Intel(R) PRO/1000.
6b39b5a2 52
6b39b5a2 53%prep
7c783bb8 54%setup -q -n %{pname}-%{version}
4e64e7a4 55cat > src/Makefile <<'EOF'
9046c5f4 56obj-m := e1000.o
f859d840 57e1000-objs := e1000_main.o e1000_82540.o e1000_82542.o e1000_82571.o e1000_82541.o \
58e1000_82543.o e1000_ich8lan.o e1000_80003es2lan.o e1000_mac.o e1000_nvm.o e1000_phy.o \
59e1000_manage.o e1000_param.o e1000_ethtool.o kcompat.o e1000_api.o
69dc5a49
PS
60EOF
61
4e64e7a4 62%build
7c783bb8 63%build_kernel_modules -C src -m %{pname}
3d27cef4 64
6b39b5a2
PG
65%install
66rm -rf $RPM_BUILD_ROOT
7c783bb8 67%install_kernel_modules -m src/%{pname} -d kernel/drivers/net -n %{pname} -s current
6b39b5a2 68
fbba5257 69%clean
6b39b5a2
PG
70rm -rf $RPM_BUILD_ROOT
71
df193a65 72%post -n kernel%{_alt_kernel}-net-e1000
5f5a9fa5 73%depmod %{_kernel_ver}
6b39b5a2 74
df193a65 75%postun -n kernel%{_alt_kernel}-net-e1000
5f5a9fa5 76%depmod %{_kernel_ver}
6b39b5a2 77
df193a65 78%files -n kernel%{_alt_kernel}-net-e1000
6b39b5a2 79%defattr(644,root,root,755)
df193a65 80%doc e1000.7 README
7c783bb8 81/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
82/lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko*
This page took 0.042186 seconds and 4 git commands to generate.