]>
Commit | Line | Data |
---|---|---|
5b5b3cf4 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without verify # don't verify database | |
4 | # | |
1d75db49 | 5 | Summary: udev helper: Central Regulatory Domain Agent |
5b5b3cf4 | 6 | Summary(pl.UTF-8): Program pomocniczy udev: Central Regulatory Domain Agent |
1d75db49 | 7 | Name: crda |
84a002e3 | 8 | Version: 1.1.2 |
604e8e2a | 9 | Release: 2 |
677a3b8a | 10 | License: ISC |
1d75db49 | 11 | Group: Networking/Daemons |
84a002e3 | 12 | Source0: http://linuxwireless.org/download/crda/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 5226f65aebacf94baaf820f8b4e06df4 | |
604e8e2a | 14 | Patch0: nl3.patch |
5b5b3cf4 | 15 | URL: http://wireless.kernel.org/en/developers/Regulatory |
677a3b8a | 16 | BuildRequires: libgcrypt-devel |
5b5b3cf4 JB |
17 | BuildRequires: libnl-devel >= 1:3.2 |
18 | BuildRequires: pkgconfig | |
1d75db49 AM |
19 | BuildRequires: python |
20 | BuildRequires: python-M2Crypto | |
5b5b3cf4 | 21 | %{?with_verify:BuildRequires: wireless-regdb} |
1d75db49 | 22 | Requires: udev-core |
677a3b8a | 23 | Requires: wireless-regdb |
1d75db49 AM |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | CRDA acts as the udev helper for communication between the kernel and | |
5b5b3cf4 | 28 | userspace for wireless regulatory compliance. It relies on nl80211 for |
1d75db49 AM |
29 | communication. CRDA is intended to be run only through udev |
30 | communication from the kernel. The user should never have to run it | |
31 | manually except if debugging udev issues. | |
32 | ||
5b5b3cf4 JB |
33 | %description -l pl.UTF-8 |
34 | CRDA działa jako program pomocniczy udev do komunikacji między jądrem | |
35 | a przestrzenią użytkownika w celu zgodności łączności bezprzewodowej z | |
36 | przepisami. Na potrzeby komunikacji polega na nl80211. CRDA jest | |
37 | przeznaczone do uruchamiania wyłącznie poprzez udev. Użytkownik nigdy | |
38 | nie powinien wywoływać go ręcznie, chyba że w celach diagnostyki udev. | |
39 | ||
1d75db49 | 40 | %prep |
24cf033a | 41 | %setup -q |
604e8e2a | 42 | %patch0 -p1 |
1d75db49 AM |
43 | |
44 | %build | |
5b5b3cf4 JB |
45 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
46 | %{__make} %{!?with_verify:all_noverify} \ | |
97b85302 AM |
47 | V=1 \ |
48 | CC="%{__cc}" \ | |
677a3b8a | 49 | REG_BIN=%{_datadir}/crda/regulatory.bin |
1d75db49 AM |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
5b5b3cf4 | 62 | %doc LICENSE README |
1d75db49 AM |
63 | %attr(755,root,root) /sbin/crda |
64 | %attr(755,root,root) /sbin/regdbdump | |
5b5b3cf4 JB |
65 | %{_mandir}/man8/crda.8* |
66 | %{_mandir}/man8/regdbdump.8* | |
1d75db49 | 67 | /lib/udev/rules.d/85-regulatory.rules |