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