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