]> git.pld-linux.org Git - packages/crda.git/blobdiff - crda.spec
- rel 3; build with new libnl
[packages/crda.git] / crda.spec
index 2dddaca0c62a52c3fb1a727be1f7010a404f82c7..2878acda7fbe8b37640d1aabe99c9d3031ed2427 100644 (file)
--- a/crda.spec
+++ b/crda.spec
@@ -1,14 +1,13 @@
 Summary:       udev helper: Central Regulatory Domain Agent
 Name:          crda
-Version:       1.0.1
-Release:       2
+Version:       1.1.1
+Release:       3
 License:       ISC
 Group:         Networking/Daemons
 Source0:       http://wireless.kernel.org/download/crda/%{name}-%{version}.tar.bz2
-# Source0-md5: 03554b71eef2626795befa17eb1d8b9e
-Source1:       http://wireless.kernel.org/download/wireless-regdb/wireless-regdb-2009.03.09.tar.bz2
+# Source0-md5: 5fc77af68b3e21736b8ef2f8b061c810
 BuildRequires: libgcrypt-devel
-BuildRequires: libnl-devel
+BuildRequires: libnl-devel >= 1:3.0
 BuildRequires: python
 BuildRequires: python-M2Crypto
 BuildRequires: wireless-regdb
@@ -24,11 +23,15 @@ communication from the kernel. The user should never have to run it
 manually except if debugging udev issues.
 
 %prep
-%setup -q -a1
+%setup -q
+
+sed -i -e 's#libnl-2#libnl-3#g' -e 's#-lnl-genl#-lnl-genl-3#g' Makefile
 
 %build
 %{__make} \
-       CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+       V=1 \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} %{rpmcppflags} -DCONFIG_LIBNL20=1 `pkg-config --cflags libnl-3.0`" \
        REG_BIN=%{_datadir}/crda/regulatory.bin
 
 %install
This page took 0.051358 seconds and 4 git commands to generate.