]> git.pld-linux.org Git - packages/wireless-regdb.git/commitdiff
do regulatory.bin verification in wireless-regdb auto/th/wireless-regdb-2013.02.13-1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 4 Mar 2013 19:41:40 +0000 (21:41 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 4 Mar 2013 19:41:40 +0000 (21:41 +0200)
as doing verify in crda seems pointless, we are not rebuilding crda if
data package is updated

wireless-regdb.spec

index 7b378400566ea034077c45a7599ac426ff46a5de..86cd905046f7dcde4ed3a725fcd39a0f0a52fc3f 100644 (file)
@@ -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}
This page took 0.111961 seconds and 4 git commands to generate.