]>
Commit | Line | Data |
---|---|---|
dfe6ad6e ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without verify # don't verify database | |
4 | ||
6852c944 JB |
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 | |
8cd32bd0 | 7 | Name: wireless-regdb |
03adbcef | 8 | Version: 2024.01.23 |
cbe409a8 | 9 | Release: 1 |
8cd32bd0 AM |
10 | License: ISC |
11 | Group: Networking/Daemons | |
5af9c793 | 12 | Source0: https://www.kernel.org/pub/software/network/wireless-regdb/%{name}-%{version}.tar.xz |
03adbcef | 13 | # Source0-md5: 3121e855df9512a2c6442d483d209c32 |
0c2dae29 | 14 | URL: https://wireless.wiki.kernel.org/en/developers/Regulatory |
5af9c793 ER |
15 | BuildRequires: tar >= 1:1.22 |
16 | BuildRequires: xz | |
dfe6ad6e | 17 | %{?with_verify:BuildRequires: crda} |
8cd32bd0 AM |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
5af9c793 ER |
21 | %define _datadir /lib |
22 | ||
8cd32bd0 AM |
23 | %description |
24 | This package contains the wireless regulatory database used by all | |
25 | cfg80211 based Linux wireless drivers. | |
26 | ||
6852c944 JB |
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. | |
31 | ||
8cd32bd0 AM |
32 | %prep |
33 | %setup -q | |
34 | ||
dfe6ad6e ER |
35 | %build |
36 | %if %{with verify} | |
67e66e6b | 37 | PATH=/sbin:$PATH \ |
dfe6ad6e ER |
38 | regdbdump regulatory.bin > dump.txt |
39 | test -s dump.txt | |
40 | %endif | |
41 | ||
8cd32bd0 AM |
42 | %install |
43 | rm -rf $RPM_BUILD_ROOT | |
e2b92b99 JP |
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 | |
5af9c793 ER |
46 | cp -p regulatory.bin $RPM_BUILD_ROOT%{_datadir}/crda/regulatory.bin |
47 | cp -p regulatory.bin.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
8cd32bd0 AM |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
33c06cb5 | 54 | %doc LICENSE README |
e2b92b99 JP |
55 | /lib/firmware/regulatory.db |
56 | /lib/firmware/regulatory.db.p7s | |
8cd32bd0 | 57 | %{_datadir}/crda |
6852c944 | 58 | %{_mandir}/man5/regulatory.bin.5* |