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