3 %bcond_without verify # don't verify database
5 Summary: Wireless regulatory database for Linux drivers
6 Summary(pl.UTF-8): Baza danych przepisów dotyczących sieci bezprzewodowych dla sterowników linuksowych
11 Group: Networking/Daemons
12 Source0: https://www.kernel.org/pub/software/network/wireless-regdb/%{name}-%{version}.tar.xz
13 # Source0-md5: a18b27119baa64b221ff0ab786b082a4
14 URL: https://wireless.wiki.kernel.org/en/developers/Regulatory
15 BuildRequires: tar >= 1:1.22
17 %{?with_verify:BuildRequires: crda}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package contains the wireless regulatory database used by all
25 cfg80211 based Linux wireless drivers.
27 %description -l pl.UTF-8
28 Ten pakiet zawiera bazę danych przepisów dotyczących częstotliwości
29 dopuszczonych dla sieci bezprzewodowych, wykorzystywaną przez
30 wszystkie linuksowe sterowniki bezprzewodowe oparte na cfg80211.
38 regdbdump regulatory.bin > dump.txt
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{/lib/firmware,%{_datadir}/crda,%{_mandir}/man5}
45 cp -p regulatory.db regulatory.db.p7s $RPM_BUILD_ROOT/lib/firmware
46 cp -p regulatory.bin $RPM_BUILD_ROOT%{_datadir}/crda/regulatory.bin
47 cp -p regulatory.bin.5 $RPM_BUILD_ROOT%{_mandir}/man5
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 /lib/firmware/regulatory.db
56 /lib/firmware/regulatory.db.p7s
58 %{_mandir}/man5/regulatory.bin.5*