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: 0431fef3067bf503dfb464069f06163a
15 Source1: https://git.kernel.org/pub/scm/linux/kernel/git/wens/wireless-regdb.git/plain/wens.key.pub.pem
16 # Source1-md5: 11522c524aa619d6031b73edd02e8071
17 Patch0: %{name}-regdb.patch
18 Patch1: %{name}-destdir.patch
19 Patch2: %{name}-link.patch
21 URL: http://wireless.kernel.org/en/developers/Regulatory/CRDA
22 BuildRequires: libgcrypt-devel
23 BuildRequires: libnl-devel >= 1:3.2
24 BuildRequires: pkgconfig
26 BuildRequires: python-M2Crypto
27 BuildRequires: python-modules
28 %{?with_verify:BuildRequires: wireless-regdb}
29 BuildRequires: tar >= 1:1.22
31 Requires: %{name}-libs = %{version}-%{release}
33 Requires: wireless-regdb
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 CRDA acts as the udev helper for communication between the kernel and
38 userspace for wireless regulatory compliance. It relies on nl80211 for
39 communication. CRDA is intended to be run only through udev
40 communication from the kernel. The user should never have to run it
41 manually except if debugging udev issues.
43 %description -l pl.UTF-8
44 CRDA działa jako program pomocniczy udev do komunikacji między jądrem
45 a przestrzenią użytkownika w celu zgodności łączności bezprzewodowej z
46 przepisami. Na potrzeby komunikacji polega na nl80211. CRDA jest
47 przeznaczone do uruchamiania wyłącznie poprzez udev. Użytkownik nigdy
48 nie powinien wywoływać go ręcznie, chyba że w celach diagnostyki udev.
51 Summary: CRDA libreg shared library
52 Summary(pl.UTF-8): Biblioteka współdzielona CRDA libreg
56 CRDA libreg shared library.
58 %description libs -l pl.UTF-8
59 Biblioteka współdzielona CRDA libreg.
62 Summary: Header files for CRDA libreg library
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CRDA libreg
64 Group: Development/Libraries
65 Requires: %{name}-libs = %{version}-%{release}
68 Header files for CRDA libreg library.
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe biblioteki CRDA libreg.
80 cp -p %{SOURCE1} pubkeys
83 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
86 %{?with_verbose:V=1} \
88 REG_BIN=%{_datadir}/crda/regulatory.bin \
94 rm -rf $RPM_BUILD_ROOT
96 %{?with_verbose:V=1} \
97 DESTDIR=$RPM_BUILD_ROOT \
101 rm -rf $RPM_BUILD_ROOT
103 %post libs -p /sbin/ldconfig
104 %postun libs -p /sbin/ldconfig
107 %defattr(644,root,root,755)
109 %attr(755,root,root) /sbin/crda
110 %attr(755,root,root) /sbin/regdbdump
111 %{_mandir}/man8/crda.8*
112 %{_mandir}/man8/regdbdump.8*
113 /lib/udev/rules.d/85-regulatory.rules
116 %defattr(644,root,root,755)
117 %attr(755,root,root) /%{_lib}/libreg.so
120 %defattr(644,root,root,755)
121 %{_includedir}/reglib