]> git.pld-linux.org Git - packages/crda.git/blobdiff - crda.spec
disable verify (don't see point verify at build time)
[packages/crda.git] / crda.spec
index aa6c9dd4f16dd5bce982bdbd91d970d462859f63..2f142fc8121001c64a2757f84c3765475affa6aa 100644 (file)
--- a/crda.spec
+++ b/crda.spec
@@ -1,39 +1,63 @@
+#
+# Conditional build:
+%bcond_with    verify  # don't verify database
+%bcond_without verbose # verbose build (V=1)
+
 Summary:       udev helper: Central Regulatory Domain Agent
+Summary(pl.UTF-8):     Program pomocniczy udev: Central Regulatory Domain Agent
 Name:          crda
-Version:       1.0.1
-Release:       2
+Version:       1.1.3
+Release:       4
 License:       ISC
 Group:         Networking/Daemons
-Source0:       http://wireless.kernel.org/download/crda/%{name}-%{version}.tar.bz2
-# Source0-md5: 03554b71eef2626795befa17eb1d8b9e
+Source0:       http://linuxwireless.org/download/crda/%{name}-%{version}.tar.bz2
+# Source0-md5: 29579185e06a75675507527243d28e5c
+Patch0:                %{name}-regdb.patch
+URL:           http://wireless.kernel.org/en/developers/Regulatory
 BuildRequires: libgcrypt-devel
-BuildRequires: libnl-devel
+BuildRequires: libnl-devel >= 1:3.2
+BuildRequires: pkgconfig
 BuildRequires: python
 BuildRequires: python-M2Crypto
-BuildRequires: wireless-regdb
+BuildRequires: python-modules
+%{?with_verify:BuildRequires:  wireless-regdb}
 Requires:      udev-core
 Requires:      wireless-regdb
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 CRDA acts as the udev helper for communication between the kernel and
-userspace for regulatory compliance. It relies on nl80211 for
+userspace for wireless regulatory compliance. It relies on nl80211 for
 communication. CRDA is intended to be run only through udev
 communication from the kernel. The user should never have to run it
 manually except if debugging udev issues.
 
+%description -l pl.UTF-8
+CRDA działa jako program pomocniczy udev do komunikacji między jądrem
+a przestrzenią użytkownika w celu zgodności łączności bezprzewodowej z
+przepisami. Na potrzeby komunikacji polega na nl80211. CRDA jest
+przeznaczone do uruchamiania wyłącznie poprzez udev. Użytkownik nigdy
+nie powinien wywoływać go ręcznie, chyba że w celach diagnostyki udev.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
 %{__make} \
-       CFLAGS="%{rpmcflags} %{rpmcppflags}" \
-       REG_BIN=%{_datadir}/crda/regulatory.bin
+       CC="%{__cc}" \
+       %{?with_verbose:V=1} \
+%if %{with verify}
+       REG_BIN=%{_datadir}/crda/regulatory.bin \
+%else
+       all_noverify \
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
+       %{?with_verbose:V=1} \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -41,8 +65,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc LICENSE README
 %attr(755,root,root) /sbin/crda
 %attr(755,root,root) /sbin/regdbdump
-%{_mandir}/man8/*
+%{_mandir}/man8/crda.8*
+%{_mandir}/man8/regdbdump.8*
 /lib/udev/rules.d/85-regulatory.rules
This page took 0.051927 seconds and 4 git commands to generate.