3 %bcond_with verify # database verification
4 %bcond_without verbose # verbose build (V=1)
6 Summary: udev helper: Central Regulatory Domain Agent
7 Summary(pl.UTF-8): Program pomocniczy udev: Central Regulatory Domain Agent
12 Group: Networking/Daemons
13 Source0: https://www.kernel.org/pub/software/network/crda/%{name}-%{version}.tar.xz
14 # Source0-md5: 66b1b0417c1ad19f0009a5c0c0c1aebc
15 Patch0: %{name}-regdb.patch
16 Patch1: %{name}-destdir.patch
17 Patch2: %{name}-link.patch
18 URL: http://wireless.kernel.org/en/developers/Regulatory/CRDA
19 BuildRequires: libgcrypt-devel
20 BuildRequires: libnl-devel >= 1:3.2
21 BuildRequires: pkgconfig
23 BuildRequires: python-M2Crypto
24 BuildRequires: python-modules
25 %{?with_verify:BuildRequires: wireless-regdb}
26 BuildRequires: tar >= 1:1.22
28 Requires: %{name}-libs = %{version}-%{release}
30 Requires: wireless-regdb
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 CRDA acts as the udev helper for communication between the kernel and
35 userspace for wireless regulatory compliance. It relies on nl80211 for
36 communication. CRDA is intended to be run only through udev
37 communication from the kernel. The user should never have to run it
38 manually except if debugging udev issues.
40 %description -l pl.UTF-8
41 CRDA działa jako program pomocniczy udev do komunikacji między jądrem
42 a przestrzenią użytkownika w celu zgodności łączności bezprzewodowej z
43 przepisami. Na potrzeby komunikacji polega na nl80211. CRDA jest
44 przeznaczone do uruchamiania wyłącznie poprzez udev. Użytkownik nigdy
45 nie powinien wywoływać go ręcznie, chyba że w celach diagnostyki udev.
48 Summary: CRDA libreg shared library
49 Summary(pl.UTF-8): Biblioteka współdzielona CRDA libreg
53 CRDA libreg shared library.
55 %description libs -l pl.UTF-8
56 Biblioteka współdzielona CRDA libreg.
59 Summary: Header files for CRDA libreg library
60 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CRDA libreg
61 Group: Development/Libraries
62 Requires: %{name}-libs = %{version}-%{release}
65 Header files for CRDA libreg library.
67 %description devel -l pl.UTF-8
68 Pliki nagłówkowe biblioteki CRDA libreg.
77 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
80 %{?with_verbose:V=1} \
82 REG_BIN=%{_datadir}/crda/regulatory.bin \
88 rm -rf $RPM_BUILD_ROOT
90 %{?with_verbose:V=1} \
91 DESTDIR=$RPM_BUILD_ROOT \
95 rm -rf $RPM_BUILD_ROOT
97 %post libs -p /sbin/ldconfig
98 %postun libs -p /sbin/ldconfig
101 %defattr(644,root,root,755)
103 %attr(755,root,root) /sbin/crda
104 %attr(755,root,root) /sbin/regdbdump
105 %{_mandir}/man8/crda.8*
106 %{_mandir}/man8/regdbdump.8*
107 /lib/udev/rules.d/85-regulatory.rules
110 %defattr(644,root,root,755)
111 %attr(755,root,root) /%{_lib}/libreg.so
114 %defattr(644,root,root,755)
115 %{_includedir}/reglib