]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with verify # database verification | |
4 | %bcond_without verbose # verbose build (V=1) | |
5 | ||
6 | Summary: udev helper: Central Regulatory Domain Agent | |
7 | Summary(pl.UTF-8): Program pomocniczy udev: Central Regulatory Domain Agent | |
8 | Name: crda | |
9 | Version: 3.18 | |
10 | Release: 3 | |
11 | License: ISC | |
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 | |
20 | Patch3: build.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 | |
25 | BuildRequires: python | |
26 | BuildRequires: python-M2Crypto | |
27 | BuildRequires: python-modules | |
28 | %{?with_verify:BuildRequires: wireless-regdb} | |
29 | BuildRequires: tar >= 1:1.22 | |
30 | BuildRequires: xz | |
31 | Requires: %{name}-libs = %{version}-%{release} | |
32 | Requires: udev-core | |
33 | Requires: wireless-regdb | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
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. | |
42 | ||
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. | |
49 | ||
50 | %package libs | |
51 | Summary: CRDA libreg shared library | |
52 | Summary(pl.UTF-8): Biblioteka współdzielona CRDA libreg | |
53 | Group: Libraries | |
54 | ||
55 | %description libs | |
56 | CRDA libreg shared library. | |
57 | ||
58 | %description libs -l pl.UTF-8 | |
59 | Biblioteka współdzielona CRDA libreg. | |
60 | ||
61 | %package devel | |
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} | |
66 | ||
67 | %description devel | |
68 | Header files for CRDA libreg library. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe biblioteki CRDA libreg. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | %patch1 -p1 | |
77 | %patch2 -p1 | |
78 | %patch3 -p1 | |
79 | ||
80 | cp -p %{SOURCE1} pubkeys | |
81 | ||
82 | %build | |
83 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
84 | %{__make} \ | |
85 | CC="%{__cc}" \ | |
86 | %{?with_verbose:V=1} \ | |
87 | %if %{with verify} | |
88 | REG_BIN=%{_datadir}/crda/regulatory.bin \ | |
89 | %else | |
90 | all_noverify \ | |
91 | %endif | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | %{__make} install \ | |
96 | %{?with_verbose:V=1} \ | |
97 | DESTDIR=$RPM_BUILD_ROOT \ | |
98 | LIBDIR=/%{_lib} | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post libs -p /sbin/ldconfig | |
104 | %postun libs -p /sbin/ldconfig | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc LICENSE README | |
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 | |
114 | ||
115 | %files libs | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) /%{_lib}/libreg.so | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %{_includedir}/reglib |