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