]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - add firmware download? | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without dist_kernel # without distribution kernel | |
6 | %bcond_without up # don't build UP module | |
7 | %bcond_without smp # don't build SMP module | |
8 | # | |
9 | %ifarch sparc | |
10 | %undefine with_smp | |
11 | %endif | |
12 | # | |
13 | Summary: Linux driver for WLAN card base on ACX100/ACX111 | |
14 | Summary(pl.UTF-8): Sterownik dla Linuksa do kart bezprzewodowych na układzie ACX100/ACX111 | |
15 | Name: acx | |
16 | Version: 20070101 | |
17 | %define _rel 1 | |
18 | Release: %{_rel} | |
19 | License: MPL or GPL | |
20 | Group: Base/Kernel | |
21 | Source0: http://www.cmartin.tk/acx/%{name}-%{version}.tar.bz2 | |
22 | # Source0-md5: ec6322b9c82781897a9433ef0cefda6f | |
23 | URL: http://acx100.sourceforge.net/ | |
24 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.16} | |
25 | BuildRequires: rpmbuild(macros) >= 1.330 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This is driver for WLAN card based on ACX100/ACX111 for Linux. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111. | |
33 | ||
34 | %package -n kernel%{_alt_kernel}-net-acx100 | |
35 | Summary: Linux driver for WLAN card base on ACX100/ACX111 | |
36 | Summary(pl.UTF-8): Sterownik dla Linuksa do kart bezprzewodowych na układzie ACX100/ACX111 | |
37 | Release: %{_rel}@%{_kernel_ver_str} | |
38 | Group: Base/Kernel | |
39 | %{?with_dist_kernel:%requires_releq_kernel_up} | |
40 | Requires(post,postun): /sbin/depmod | |
41 | ||
42 | %description -n kernel%{_alt_kernel}-net-acx100 | |
43 | This is driver for WLAN card based on ACX100/ACX111 for Linux. | |
44 | ||
45 | %description -n kernel%{_alt_kernel}-net-acx100 -l pl.UTF-8 | |
46 | Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111. | |
47 | ||
48 | %package -n kernel%{_alt_kernel}-smp-net-acx100 | |
49 | Summary: Linux SMP driver for WLAN card base on ACX100/ACX111 | |
50 | Summary(pl.UTF-8): Sterownik dla Linuksa SMP do kart bezprzewodowych na układzie ACX100/ACX111 | |
51 | Release: %{_rel}@%{_kernel_ver_str} | |
52 | Group: Base/Kernel | |
53 | %{?with_dist_kernel:%requires_releq_kernel_smp} | |
54 | Requires(post,postun): /sbin/depmod | |
55 | ||
56 | %description -n kernel%{_alt_kernel}-smp-net-acx100 | |
57 | Linux SMP driver for WLAN card base on ACX100/ACX111. | |
58 | ||
59 | %description -n kernel%{_alt_kernel}-smp-net-acx100 -l pl.UTF-8 | |
60 | Sterownik dla Linuksa SMP do kart bezprzewodowych na układzie ACX100/ACX111. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | %build_kernel_modules -m acx | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %install_kernel_modules -m acx -d misc | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -n kernel%{_alt_kernel}-net-acx100 | |
77 | %depmod %{_kernel_ver} | |
78 | ||
79 | %postun -n kernel%{_alt_kernel}-net-acx100 | |
80 | %depmod %{_kernel_ver} | |
81 | ||
82 | %post -n kernel%{_alt_kernel}-smp-net-acx100 | |
83 | %depmod %{_kernel_ver}smp | |
84 | ||
85 | %postun -n kernel%{_alt_kernel}-smp-net-acx100 | |
86 | %depmod %{_kernel_ver}smp | |
87 | ||
88 | %files -n kernel%{_alt_kernel}-net-acx100 | |
89 | %defattr(644,root,root,755) | |
90 | %doc Changelog README | |
91 | /lib/modules/%{_kernel_ver}/misc/*.ko* | |
92 | ||
93 | %if %{with smp} | |
94 | %files -n kernel%{_alt_kernel}-smp-net-acx100 | |
95 | %defattr(644,root,root,755) | |
96 | %doc Changelog README | |
97 | /lib/modules/%{_kernel_ver}smp/misc/*.ko* | |
98 | %endif |