]> git.pld-linux.org Git - packages/crda.git/blame_incremental - crda.spec
- rel 3; build with new libnl
[packages/crda.git] / crda.spec
... / ...
CommitLineData
1Summary: udev helper: Central Regulatory Domain Agent
2Name: crda
3Version: 1.1.1
4Release: 3
5License: ISC
6Group: Networking/Daemons
7Source0: http://wireless.kernel.org/download/crda/%{name}-%{version}.tar.bz2
8# Source0-md5: 5fc77af68b3e21736b8ef2f8b061c810
9BuildRequires: libgcrypt-devel
10BuildRequires: libnl-devel >= 1:3.0
11BuildRequires: python
12BuildRequires: python-M2Crypto
13BuildRequires: wireless-regdb
14Requires: udev-core
15Requires: wireless-regdb
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19CRDA acts as the udev helper for communication between the kernel and
20userspace for regulatory compliance. It relies on nl80211 for
21communication. CRDA is intended to be run only through udev
22communication from the kernel. The user should never have to run it
23manually except if debugging udev issues.
24
25%prep
26%setup -q
27
28sed -i -e 's#libnl-2#libnl-3#g' -e 's#-lnl-genl#-lnl-genl-3#g' Makefile
29
30%build
31%{__make} \
32 V=1 \
33 CC="%{__cc}" \
34 CFLAGS="%{rpmcflags} %{rpmcppflags} -DCONFIG_LIBNL20=1 `pkg-config --cflags libnl-3.0`" \
35 REG_BIN=%{_datadir}/crda/regulatory.bin
36
37%install
38rm -rf $RPM_BUILD_ROOT
39
40%{__make} install \
41 DESTDIR=$RPM_BUILD_ROOT
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
48%doc README
49%attr(755,root,root) /sbin/crda
50%attr(755,root,root) /sbin/regdbdump
51%{_mandir}/man8/*
52/lib/udev/rules.d/85-regulatory.rules
This page took 0.070603 seconds and 4 git commands to generate.