]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - add firmware download? | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without dist_kernel # without distribution kernel | |
6 | # | |
7 | Summary: Linux driver for WLAN card base on ACX100/ACX111 | |
8 | Summary(pl.UTF-8): Sterownik dla Linuksa do kart bezprzewodowych na układzie ACX100/ACX111 | |
9 | Name: acx | |
10 | Version: 20070101 | |
11 | %define _rel 4 | |
12 | Release: %{_rel} | |
13 | License: MPL or GPL | |
14 | Group: Base/Kernel | |
15 | Source0: http://www.cmartin.tk/acx/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: ec6322b9c82781897a9433ef0cefda6f | |
17 | Patch0: %{name}-skb.patch | |
18 | # based on https://dev.openwrt.org/browser/trunk/package/acx/patches/003-2.6.24-compat.diff?rev=10425&format=txt | |
19 | Patch1: %{name}-2.6.24.patch | |
20 | Patch2: %{name}-2.6.29.patch | |
21 | Patch3: %{name}-2.6.30.patch | |
22 | URL: http://acx100.sourceforge.net/ | |
23 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} | |
24 | BuildRequires: rpmbuild(macros) >= 1.379 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This is driver for WLAN card based on ACX100/ACX111 for Linux. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111. | |
32 | ||
33 | %package -n kernel%{_alt_kernel}-net-acx | |
34 | Summary: Linux driver for WLAN card base on ACX100/ACX111 | |
35 | Summary(pl.UTF-8): Sterownik dla Linuksa do kart bezprzewodowych na układzie ACX100/ACX111 | |
36 | Release: %{_rel}@%{_kernel_ver_str} | |
37 | Group: Base/Kernel | |
38 | %{?with_dist_kernel:%requires_releq_kernel} | |
39 | Requires(post,postun): /sbin/depmod | |
40 | Obsoletes: kernel%{_alt_kernel}-net-acx100 | |
41 | ||
42 | %description -n kernel%{_alt_kernel}-net-acx | |
43 | This is driver for WLAN card based on ACX100/ACX111 for Linux. | |
44 | ||
45 | %description -n kernel%{_alt_kernel}-net-acx -l pl.UTF-8 | |
46 | Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111. | |
47 | ||
48 | %prep | |
49 | %setup -q | |
50 | %patch0 -p1 | |
51 | %patch1 -p1 | |
52 | %patch2 -p1 | |
53 | %patch3 -p1 | |
54 | ||
55 | %build | |
56 | %build_kernel_modules -m acx | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %install_kernel_modules -m acx -d misc | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post -n kernel%{_alt_kernel}-net-acx | |
67 | %depmod %{_kernel_ver} | |
68 | ||
69 | %postun -n kernel%{_alt_kernel}-net-acx | |
70 | %depmod %{_kernel_ver} | |
71 | ||
72 | %files -n kernel%{_alt_kernel}-net-acx | |
73 | %defattr(644,root,root,755) | |
74 | %doc Changelog README | |
75 | /lib/modules/%{_kernel_ver}/misc/*.ko* |