[packages/wireless-regdb] do regulatory.bin verification in wireless-regdb
glen
glen at pld-linux.org
Mon Mar 4 20:48:30 CET 2013
commit dfe6ad6e478f469e8174c3a1d2d1534e5a1d2b96
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Mar 4 21:41:40 2013 +0200
do regulatory.bin verification in wireless-regdb
as doing verify in crda seems pointless, we are not rebuilding crda if
data package is updated
wireless-regdb.spec | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/wireless-regdb.spec b/wireless-regdb.spec
index 7b37840..86cd905 100644
--- a/wireless-regdb.spec
+++ b/wireless-regdb.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without verify # don't verify database
+
Summary: Wireless regulatory database for Linux drivers
Summary(pl.UTF-8): Baza danych przepisów dotyczących sieci bezprzewodowych dla sterowników linuksowych
Name: wireless-regdb
@@ -10,6 +14,7 @@ Source0: https://www.kernel.org/pub/software/network/wireless-regdb/%{name}-%{ve
URL: http://wireless.kernel.org/en/developers/Regulatory
BuildRequires: tar >= 1:1.22
BuildRequires: xz
+%{?with_verify:BuildRequires: crda}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,6 +32,12 @@ wszystkie linuksowe sterowniki bezprzewodowe oparte na cfg80211.
%prep
%setup -q
+%build
+%if %{with verify}
+regdbdump regulatory.bin > dump.txt
+test -s dump.txt
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_datadir}/crda,%{_mandir}/man5}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wireless-regdb.git/commitdiff/dfe6ad6e478f469e8174c3a1d2d1534e5a1d2b96
More information about the pld-cvs-commit
mailing list