From cf8ee4cde8500b5956488047280a25b6525ffcf0 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Feb 03 2012 11:27:47 +0000 Subject: Fixing macro definitions and explicit configuration of portaudio. --- diff --git a/wireshark.spec b/wireshark.spec index 7fb2a86..bbb8cec 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -1,11 +1,11 @@ -%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") +%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") -%define with_adns 0 -%define with_lua 1 +%global with_adns 0 +%global with_lua 1 %if 0%{?rhel} != 0 -%define with_portaudio 0 +%global with_portaudio 0 %else -%define with_portaudio 1 +%global with_portaudio 1 %endif Summary: Network traffic analyzer @@ -143,6 +143,11 @@ export LDFLAGS="$LDFLAGS -pie" %else --with-lua=no \ %endif +%if %{with_portaudio} + --with-portaudio \ +%else + --with-portaudio=no \ +%endif --with-ssl \ --disable-warnings-as-errors \ --with-python \