1 Summary: udev helper: Central Regulatory Domain Agent
6 Group: Networking/Daemons
7 Source0: http://wireless.kernel.org/download/crda/%{name}-%{version}.tar.bz2
8 # Source0-md5: 5fc77af68b3e21736b8ef2f8b061c810
9 BuildRequires: libgcrypt-devel
10 BuildRequires: libnl-devel >= 1:3.0
12 BuildRequires: python-M2Crypto
13 BuildRequires: wireless-regdb
15 Requires: wireless-regdb
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 CRDA acts as the udev helper for communication between the kernel and
20 userspace for regulatory compliance. It relies on nl80211 for
21 communication. CRDA is intended to be run only through udev
22 communication from the kernel. The user should never have to run it
23 manually except if debugging udev issues.
28 sed -i -e 's#libnl-2#libnl-3#g' -e 's#-lnl-genl#-lnl-genl-3#g' Makefile
34 CFLAGS="%{rpmcflags} %{rpmcppflags} -DCONFIG_LIBNL20=1 `pkg-config --cflags libnl-3.0`" \
35 REG_BIN=%{_datadir}/crda/regulatory.bin
38 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %attr(755,root,root) /sbin/crda
50 %attr(755,root,root) /sbin/regdbdump
52 /lib/udev/rules.d/85-regulatory.rules