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 URL: http://acx100.sourceforge.net/
21 %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
22 BuildRequires: rpmbuild(macros) >= 1.379
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This is driver for WLAN card based on ACX100/ACX111 for Linux.
28 %description -l pl.UTF-8
29 Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111.
31 %package -n kernel%{_alt_kernel}-net-acx
32 Summary: Linux driver for WLAN card base on ACX100/ACX111
33 Summary(pl.UTF-8): Sterownik dla Linuksa do kart bezprzewodowych na układzie ACX100/ACX111
34 Release: %{_rel}@%{_kernel_ver_str}
36 %{?with_dist_kernel:%requires_releq_kernel}
37 Requires(post,postun): /sbin/depmod
38 Obsoletes: kernel%{_alt_kernel}-net-acx100
40 %description -n kernel%{_alt_kernel}-net-acx
41 This is driver for WLAN card based on ACX100/ACX111 for Linux.
43 %description -n kernel%{_alt_kernel}-net-acx -l pl.UTF-8
44 Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111.
52 %build_kernel_modules -m acx
55 rm -rf $RPM_BUILD_ROOT
57 %install_kernel_modules -m acx -d misc
60 rm -rf $RPM_BUILD_ROOT
62 %post -n kernel%{_alt_kernel}-net-acx
63 %depmod %{_kernel_ver}
65 %postun -n kernel%{_alt_kernel}-net-acx
66 %depmod %{_kernel_ver}
68 %files -n kernel%{_alt_kernel}-net-acx
69 %defattr(644,root,root,755)
71 /lib/modules/%{_kernel_ver}/misc/*.ko*