From 49de3b5f3f599cc3c4203647da72a9778fa94d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 1 Sep 2014 17:22:25 +0200 Subject: [PATCH] Reverted Wireshark version detection not to use RPM --- uhd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uhd.spec b/uhd.spec index 2ad4c15..bc66363 100644 --- a/uhd.spec +++ b/uhd.spec @@ -14,7 +14,7 @@ %global ver %(printf "%03d.%03d.%03d" %{ver_major} %{ver_minor} %{ver_patch}) %global ver_ %(printf "%03d_%03d_%03d" %{ver_major} %{ver_minor} %{ver_patch}) -%global wireshark_ver %(rpm -q --qf '%{VERSION}' 2>/dev/null || echo none) +%global wireshark_ver %((%{__awk} '/^#define VERSION[ \t]+/ { print $NF }' /usr/include/wireshark/config.h 2>/dev/null||echo none)|/usr/bin/tr -d '"') %ifarch %{arm} %if %{without neon}