]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without dist_kernel # allow non-distribution kernel | |
4 | %bcond_with verbose # verbose build (V=1) | |
5 | # | |
6 | %define pname atl2 | |
7 | %define rel 31 | |
8 | Summary: Attansic(R) L2 Fast Ethernet Adapter driver for Linux | |
9 | Summary(pl.UTF-8): Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter | |
10 | Name: %{pname}%{_alt_kernel} | |
11 | Version: 2.0.5 | |
12 | Release: %{rel} | |
13 | License: GPL v2 | |
14 | Group: Base/Kernel | |
15 | Source0: http://people.redhat.com/csnook/atl2/atl2-%{version}.tar.bz2 | |
16 | # Source0-md5: bbd5696cb6c7c6432d7338d783c408f2 | |
17 | URL: http://www.attansic.com/ | |
18 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} | |
19 | BuildRequires: rpmbuild(macros) >= 1.379 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | ||
23 | %description | |
24 | This package contains the Linux driver for the Attansic(R) L2 Fast | |
25 | Ethernet Adapter. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych | |
29 | Attansic(R) L2 Fast Ethernet Adapter. | |
30 | ||
31 | %package -n kernel%{_alt_kernel}-net-atl2 | |
32 | Summary: Attansic(R) L2 Fast Ethernet Adapter driver for Linux | |
33 | Summary(pl.UTF-8): Sterownik do kart Attansic(R) L2 Fast Ethernet Adapter | |
34 | Release: %{rel}@%{_kernel_ver_str} | |
35 | Group: Base/Kernel | |
36 | Requires(post,postun): /sbin/depmod | |
37 | %if %{with dist_kernel} | |
38 | %requires_releq_kernel | |
39 | Requires(postun): %releq_kernel | |
40 | %endif | |
41 | Provides: kernel(atl2) | |
42 | ||
43 | %description -n kernel%{_alt_kernel}-net-atl2 | |
44 | This package contains the Linux driver for the Attansic(R) L2 Fast | |
45 | Ethernet Adapter. | |
46 | ||
47 | %description -n kernel%{_alt_kernel}-net-atl2 -l pl.UTF-8 | |
48 | Ten pakiet zawiera sterownik dla Linuksa do kart sieciowych | |
49 | Attansic(R) L2 Fast Ethernet Adapter. | |
50 | ||
51 | %prep | |
52 | %setup -q -n %{pname}-%{version} | |
53 | ||
54 | %build | |
55 | %build_kernel_modules -m atl2 EXTRA_CFLAGS="-DDBG=0" | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | %install_kernel_modules -m atl2 -d kernel/drivers/net | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post -n kernel%{_alt_kernel}-net-atl2 | |
65 | %depmod %{_kernel_ver} | |
66 | ||
67 | %postun -n kernel%{_alt_kernel}-net-atl2 | |
68 | %depmod %{_kernel_ver} | |
69 | ||
70 | %files -n kernel%{_alt_kernel}-net-atl2 | |
71 | %defattr(644,root,root,755) | |
72 | /lib/modules/%{_kernel_ver}/kernel/drivers/net/%{pname}*.ko* |