]>
Commit | Line | Data |
---|---|---|
1d75db49 AM |
1 | Summary: udev helper: Central Regulatory Domain Agent |
2 | Name: crda | |
3 | Version: 1.0.1 | |
677a3b8a AM |
4 | Release: 2 |
5 | License: ISC | |
1d75db49 AM |
6 | Group: Networking/Daemons |
7 | Source0: http://wireless.kernel.org/download/crda/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 03554b71eef2626795befa17eb1d8b9e | |
9 | Source1: http://wireless.kernel.org/download/wireless-regdb/wireless-regdb-2009.03.09.tar.bz2 | |
677a3b8a AM |
10 | BuildRequires: libgcrypt-devel |
11 | BuildRequires: libnl-devel | |
1d75db49 AM |
12 | BuildRequires: python |
13 | BuildRequires: python-M2Crypto | |
677a3b8a | 14 | BuildRequires: wireless-regdb |
1d75db49 | 15 | Requires: udev-core |
677a3b8a | 16 | Requires: wireless-regdb |
1d75db49 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | CRDA acts as the udev helper for communication between the kernel and | |
21 | userspace for regulatory compliance. It relies on nl80211 for | |
22 | communication. CRDA is intended to be run only through udev | |
23 | communication from the kernel. The user should never have to run it | |
24 | manually except if debugging udev issues. | |
25 | ||
26 | %prep | |
27 | %setup -q -a1 | |
28 | ||
29 | %build | |
30 | %{__make} \ | |
31 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
677a3b8a | 32 | REG_BIN=%{_datadir}/crda/regulatory.bin |
1d75db49 AM |
33 | |
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %{__make} install \ | |
38 | DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc README | |
46 | %attr(755,root,root) /sbin/crda | |
47 | %attr(755,root,root) /sbin/regdbdump | |
48 | %{_mandir}/man8/* | |
49 | /lib/udev/rules.d/85-regulatory.rules |