]> git.pld-linux.org Git - packages/acx.git/blob - acx.spec
- based on https://dev.openwrt.org/browser/trunk/package/acx/patches/003-2.6.24-compa...
[packages/acx.git] / acx.spec
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    2
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 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)
24
25 %description
26 This is driver for WLAN card based on ACX100/ACX111 for Linux.
27
28 %description -l pl.UTF-8
29 Sterownik dla Linuksa do kart WLAN opartych o układ ACX100/ACX111.
30
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}
35 Group:          Base/Kernel
36 %{?with_dist_kernel:%requires_releq_kernel}
37 Requires(post,postun):  /sbin/depmod
38 Obsoletes:      kernel%{_alt_kernel}-net-acx100
39
40 %description -n kernel%{_alt_kernel}-net-acx
41 This is driver for WLAN card based on ACX100/ACX111 for Linux.
42
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.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49 %patch1 -p1
50
51 %build
52 %build_kernel_modules -m acx
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %install_kernel_modules -m acx -d misc
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post   -n kernel%{_alt_kernel}-net-acx
63 %depmod %{_kernel_ver}
64
65 %postun -n kernel%{_alt_kernel}-net-acx
66 %depmod %{_kernel_ver}
67
68 %files -n kernel%{_alt_kernel}-net-acx
69 %defattr(644,root,root,755)
70 %doc Changelog README
71 /lib/modules/%{_kernel_ver}/misc/*.ko*
This page took 0.078717 seconds and 3 git commands to generate.