2 # - add firmware download?
5 %bcond_without dist_kernel # without distribution kernel
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
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)
28 This is driver for WLAN card based on ACX100/ACX111 for Linux.
30 %description -l pl.UTF-8
31 Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111.
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}
38 %{?with_dist_kernel:%requires_releq_kernel}
39 Requires(post,postun): /sbin/depmod
40 Obsoletes: kernel%{_alt_kernel}-net-acx100
42 %description -n kernel%{_alt_kernel}-net-acx
43 This is driver for WLAN card based on ACX100/ACX111 for Linux.
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.
56 %build_kernel_modules -m acx
59 rm -rf $RPM_BUILD_ROOT
61 %install_kernel_modules -m acx -d misc
64 rm -rf $RPM_BUILD_ROOT
66 %post -n kernel%{_alt_kernel}-net-acx
67 %depmod %{_kernel_ver}
69 %postun -n kernel%{_alt_kernel}-net-acx
70 %depmod %{_kernel_ver}
72 %files -n kernel%{_alt_kernel}-net-acx
73 %defattr(644,root,root,755)
75 /lib/modules/%{_kernel_ver}/misc/*.ko*