From f74ac5a8bc1bd3339c96f6399cd1514f854e0e2f3a0c53c937f6ad612d8fcbeb Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Tue, 18 Dec 2012 16:30:11 +0000 Subject: [PATCH] Accepting request 145724 from home:mvyskocil:branches:network:utilities - build with gtk3 on 11.4+ - disable zlib makes a sense for 1.2.5 only - turn some features on (python, gcrypt, gnutls, plugins dir) OBS-URL: https://build.opensuse.org/request/show/145724 OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=77 --- wireshark.changes | 7 +++++++ wireshark.spec | 24 ++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/wireshark.changes b/wireshark.changes index 714263c..4dae591 100644 --- a/wireshark.changes +++ b/wireshark.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Dec 18 09:45:25 UTC 2012 - mvyskocil@suse.com + +- build with gtk3 on 11.4+ +- disable zlib makes a sense for 1.2.5 only +- turn some features on (python, gcrypt, gnutls, plugins dir) + ------------------------------------------------------------------- Mon Dec 10 09:29:02 UTC 2012 - dimstar@opensuse.org diff --git a/wireshark.spec b/wireshark.spec index ca543a3..a33f4bf 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -39,7 +39,11 @@ Patch5: wireshark-suidflags.patch BuildRequires: bison BuildRequires: cairo-devel BuildRequires: flex +%if 0%{?suse_version} <= 1140 BuildRequires: gtk2-devel +%else +BuildRequires: gtk3-devel +%endif BuildRequires: krb5-devel BuildRequires: libcap-devel BuildRequires: libcares-devel @@ -59,10 +63,12 @@ BuildRequires: net-snmp-devel BuildRequires: openssl-devel BuildRequires: pcre-devel BuildRequires: portaudio-devel -BuildRequires: python +BuildRequires: python-devel BuildRequires: tcpd-devel BuildRequires: xdg-utils +%if 0%{?suse_version} > 1220 BuildRequires: zlib-devel +%endif Requires: xdg-utils Provides: ethereal = %{version} Obsoletes: ethereal < %{version} @@ -116,7 +122,21 @@ sed -i 's!^Exec=wireshark!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark!' wireshark autoreconf -fiv export SUID_CFLAGS="-fPIE" export SUID_LDFLAGS="-pie" -%configure --without-zlib + +# zlib-1.2.5 does not work well with wireshark, so disable it on pre-12.2 +%configure \ +%if 0%{?suse_version} < 1220 + --without-zlib \ +%endif +%if 0%{?suse_version} > 1140 + --with-gtk3 \ +%endif + --with-ssl \ + --with-gnutls=yes \ + --with-gcrypt=yes \ + --with-python \ + --with-plugins=%{_libdir}/%{name}/plugins/%{version} + make %{?_smp_mflags} %install