]> git.pld-linux.org Git - packages/crda.git/blob - crda.spec
d9c3384e31e69272d210c57be3127cb36a8be3e1
[packages/crda.git] / crda.spec
1 #
2 # Conditional build:
3 %bcond_without  verify  # don't verify database
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:        1.1.3
10 Release:        3
11 License:        ISC
12 Group:          Networking/Daemons
13 Source0:        http://linuxwireless.org/download/crda/%{name}-%{version}.tar.bz2
14 # Source0-md5:  29579185e06a75675507527243d28e5c
15 Patch0:         %{name}-regdb.patch
16 URL:            http://wireless.kernel.org/en/developers/Regulatory
17 BuildRequires:  libgcrypt-devel
18 BuildRequires:  libnl-devel >= 1:3.2
19 BuildRequires:  pkgconfig
20 BuildRequires:  python
21 BuildRequires:  python-M2Crypto
22 BuildRequires:  python-modules
23 %{?with_verify:BuildRequires:   wireless-regdb}
24 Requires:       udev-core
25 Requires:       wireless-regdb
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 CRDA acts as the udev helper for communication between the kernel and
30 userspace for wireless regulatory compliance. It relies on nl80211 for
31 communication. CRDA is intended to be run only through udev
32 communication from the kernel. The user should never have to run it
33 manually except if debugging udev issues.
34
35 %description -l pl.UTF-8
36 CRDA działa jako program pomocniczy udev do komunikacji między jądrem
37 a przestrzenią użytkownika w celu zgodności łączności bezprzewodowej z
38 przepisami. Na potrzeby komunikacji polega na nl80211. CRDA jest
39 przeznaczone do uruchamiania wyłącznie poprzez udev. Użytkownik nigdy
40 nie powinien wywoływać go ręcznie, chyba że w celach diagnostyki udev.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45
46 %build
47 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
48 %{__make} \
49         CC="%{__cc}" \
50         %{?with_verbose:V=1} \
51 %if %{with verify}
52         REG_BIN=%{_datadir}/crda/regulatory.bin \
53 %else
54         all_noverify \
55 %endif
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 %{__make} install \
60         %{?with_verbose:V=1} \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc LICENSE README
69 %attr(755,root,root) /sbin/crda
70 %attr(755,root,root) /sbin/regdbdump
71 %{_mandir}/man8/crda.8*
72 %{_mandir}/man8/regdbdump.8*
73 /lib/udev/rules.d/85-regulatory.rules
This page took 0.043507 seconds and 2 git commands to generate.