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