2007-01-16 00:41:20 +01:00
|
|
|
#
|
2011-02-18 13:05:29 +01:00
|
|
|
# spec file for package wireshark
|
2010-12-20 14:20:13 +01:00
|
|
|
#
|
2013-01-30 21:18:37 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-20 14:20:13 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-12-20 14:20:13 +01:00
|
|
|
|
2010-12-17 17:39:23 +01:00
|
|
|
# disable caps for now
|
|
|
|
%define use_caps 0
|
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
Name: wireshark
|
2013-01-30 21:18:37 +01:00
|
|
|
Version: 1.8.5
|
2012-04-01 15:51:52 +02:00
|
|
|
Release: 0
|
2007-01-16 00:41:20 +01:00
|
|
|
Summary: A Network Traffic Analyser
|
2012-08-31 18:09:51 +02:00
|
|
|
License: GPL-2.0+ and GPL-3.0+
|
2010-12-08 18:31:25 +01:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2012-04-01 15:51:52 +02:00
|
|
|
Url: http://www.wireshark.org/
|
2008-12-18 15:22:09 +01:00
|
|
|
Source: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
|
2008-11-04 17:58:51 +01:00
|
|
|
Source1: include.filelist
|
2011-11-04 23:54:00 +01:00
|
|
|
# PATCH-FIX-OPENSUSE wireshark-1.6.3-disable-warning-dialog.patch bnc#349782 prusnak@suse.cz -- don't show warning when running as root
|
2009-06-17 15:51:24 +02:00
|
|
|
Patch1: %{name}-1.2.0-disable-warning-dialog.patch
|
2009-06-20 04:08:32 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE wireshark-1.2.0-geoip.patch prusnak@suse.cz -- search in /var/lib/GeoIP if user hasn't set any GeoIP folders
|
2010-10-06 23:05:22 +02:00
|
|
|
Patch2: %{name}-1.2.0-geoip.patch
|
2011-02-15 14:04:22 +01:00
|
|
|
# PATCH-FIX-OPENSUSE wireshark-1.2.4-enable_lua.patch bnc#650434
|
2010-12-08 18:31:25 +01:00
|
|
|
Patch4: %{name}-1.2.4-enable_lua.patch
|
2012-12-10 11:13:21 +01:00
|
|
|
# PATCH-FEATURE-UPSTREAM wireshark-suidflags.patch -- Allow to specify sep. flags for SUID binaries.
|
|
|
|
Patch5: wireshark-suidflags.patch
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: flex
|
2012-12-18 17:30:11 +01:00
|
|
|
%if 0%{?suse_version} <= 1140
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: gtk2-devel
|
2012-12-18 17:30:11 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
%endif
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcares-devel
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libsmi-devel
|
2012-12-10 11:13:21 +01:00
|
|
|
# Needed for patch5
|
|
|
|
BuildRequires: libtool
|
2012-11-14 01:02:25 +01:00
|
|
|
# required for Lua support in openSUSE 12.2 and later [bnc#780669]
|
|
|
|
%if 0%{?suse_version} >= 1220
|
|
|
|
BuildRequires: lua51-devel
|
|
|
|
%else
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: lua-devel
|
2012-11-14 01:02:25 +01:00
|
|
|
%endif
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: net-snmp-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: portaudio-devel
|
2012-12-18 17:30:11 +01:00
|
|
|
BuildRequires: python-devel
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: tcpd-devel
|
|
|
|
BuildRequires: xdg-utils
|
2012-12-18 17:30:11 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: zlib-devel
|
2012-12-18 17:30:11 +01:00
|
|
|
%endif
|
2010-12-08 18:31:25 +01:00
|
|
|
Requires: xdg-utils
|
|
|
|
Provides: ethereal = %{version}
|
|
|
|
Obsoletes: ethereal < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-05-14 13:34:21 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-10-06 23:05:22 +02:00
|
|
|
BuildRequires: libGeoIP-devel
|
2010-12-08 18:31:25 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2010-10-06 23:05:22 +02:00
|
|
|
Recommends: GeoIP
|
2010-05-14 13:34:21 +02:00
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Wireshark is a free network protocol analyzer for Unix and Windows. It
|
|
|
|
allows you to examine data from a live network or from a capture file
|
|
|
|
on disk. You can interactively browse the capture data, viewing summary
|
|
|
|
and detail information for each packet. Wireshark has several powerful
|
|
|
|
features, including a rich display filter language and the ability to
|
|
|
|
view the reconstructed stream of a TCP session.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A Network Traffic Analyser
|
2011-11-04 23:54:00 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-11-10 16:42:35 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glib2-devel
|
2012-04-01 15:51:52 +02:00
|
|
|
Requires: glibc-devel
|
2008-11-28 12:18:20 +01:00
|
|
|
Provides: ethereal-devel = %{version}
|
|
|
|
Obsoletes: ethereal-devel < %{version}
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Wireshark is a free network protocol analyzer for Unix and Windows. It
|
|
|
|
allows you to examine data from a live network or from a capture file
|
|
|
|
on disk. You can interactively browse the capture data, viewing summary
|
|
|
|
and detail information for each packet. Wireshark has several powerful
|
|
|
|
features, including a rich display filter language and the ability to
|
|
|
|
view the reconstructed stream of a TCP session.
|
|
|
|
|
|
|
|
%prep
|
2007-02-06 19:25:39 +01:00
|
|
|
%setup -q
|
2008-11-28 12:18:20 +01:00
|
|
|
%patch2
|
2011-11-04 23:54:00 +01:00
|
|
|
%patch4
|
2012-12-10 11:13:21 +01:00
|
|
|
%patch5 -p1
|
2011-05-10 13:13:33 +02:00
|
|
|
|
2010-12-08 18:47:38 +01:00
|
|
|
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop
|
|
|
|
# run as root on 11.3 and older - bnc#349782
|
2010-12-17 17:39:23 +01:00
|
|
|
%if ! %{use_caps}
|
2010-12-08 18:47:38 +01:00
|
|
|
%patch1
|
2010-12-10 12:01:50 +01:00
|
|
|
sed -i 's!^Exec=wireshark!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark!' wireshark.desktop
|
2010-12-08 18:47:38 +01:00
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%build
|
2012-12-10 11:13:21 +01:00
|
|
|
# Needed for patch5
|
|
|
|
autoreconf -fiv
|
|
|
|
export SUID_CFLAGS="-fPIE"
|
|
|
|
export SUID_LDFLAGS="-pie"
|
2012-12-18 17:30:11 +01:00
|
|
|
|
|
|
|
# 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}
|
|
|
|
|
2010-05-14 13:34:21 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%install
|
2010-12-21 17:22:26 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
2010-12-08 18:31:25 +01:00
|
|
|
find %{buildroot} -name "*.la" -delete -print
|
|
|
|
ln -fs wireshark %{buildroot}%{_bindir}/ethereal
|
|
|
|
ln -fs tshark %{buildroot}%{_bindir}/tethereal
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}
|
|
|
|
install -d -m 0755 %{buildroot}%{_mandir}/man1/
|
2011-11-04 23:54:00 +01:00
|
|
|
# install -m 0644 *.1 %%{buildroot}%%{_mandir}/man1/
|
2010-12-08 18:31:25 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_includedir}/wireshark
|
2008-11-04 17:58:51 +01:00
|
|
|
for i in `cat %{SOURCE1}`; do
|
2012-06-03 20:16:59 +02:00
|
|
|
install -D -m 644 $i %{buildroot}%{_includedir}/wireshark/$i
|
2007-01-16 00:41:20 +01:00
|
|
|
done
|
2010-12-08 18:31:25 +01:00
|
|
|
install -D -m 0644 image/wsicon48.png %{buildroot}%{_datadir}/pixmaps/wireshark.png
|
|
|
|
install -D -m 0644 wireshark.desktop %{buildroot}%{_datadir}/applications/wireshark.desktop
|
2010-05-14 13:34:21 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%clean
|
2010-12-08 18:31:25 +01:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-12-17 17:39:23 +01:00
|
|
|
%if %{use_caps}
|
2010-12-20 14:20:13 +01:00
|
|
|
|
2010-12-08 18:31:25 +01:00
|
|
|
%pre
|
|
|
|
getent group wireshark >/dev/null || groupadd wireshark
|
2010-12-08 18:32:43 +01:00
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2007-12-19 14:56:16 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2007-12-19 14:56:16 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-01-10 03:21:45 +01:00
|
|
|
%doc AUTHORS COPYING NEWS README README.linux README.vmware
|
2010-02-01 14:32:49 +01:00
|
|
|
%doc %{_mandir}/man1/[^i]*
|
|
|
|
%doc %{_mandir}/man4/*
|
2010-05-14 13:34:21 +02:00
|
|
|
%{_datadir}/applications/wireshark.desktop
|
2007-03-07 22:51:45 +01:00
|
|
|
%{_datadir}/pixmaps/wireshark.png
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/ethereal
|
|
|
|
%{_bindir}/tethereal
|
|
|
|
%{_bindir}/wireshark
|
|
|
|
%{_bindir}/editcap
|
|
|
|
%{_bindir}/tshark
|
|
|
|
%{_bindir}/mergecap
|
|
|
|
%{_bindir}/text2pcap
|
|
|
|
%{_bindir}/dftest
|
|
|
|
%{_bindir}/capinfos
|
|
|
|
%{_bindir}/randpkt
|
2010-12-17 17:39:23 +01:00
|
|
|
%if %{use_caps}
|
2010-12-08 18:31:25 +01:00
|
|
|
%attr(0750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_bindir}/dumpcap
|
2010-12-08 18:32:43 +01:00
|
|
|
%else
|
|
|
|
%{_bindir}/dumpcap
|
|
|
|
%endif
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/rawshark
|
2007-03-07 22:51:45 +01:00
|
|
|
%{_libdir}/lib*.so.*
|
2010-12-08 18:47:38 +01:00
|
|
|
%{_libdir}/wireshark/
|
|
|
|
%{_datadir}/wireshark/
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/README.*
|
2012-06-03 20:16:59 +02:00
|
|
|
%dir %{_includedir}/wireshark
|
|
|
|
%dir %{_includedir}/wireshark/epan
|
|
|
|
%dir %{_includedir}/wireshark/epan/dfilter
|
|
|
|
%dir %{_includedir}/wireshark/epan/dissectors
|
|
|
|
%dir %{_includedir}/wireshark/wiretap
|
|
|
|
%dir %{_includedir}/wireshark/wsutil
|
|
|
|
%{_includedir}/wireshark/*
|
2007-03-07 22:51:45 +01:00
|
|
|
%{_libdir}/*.so
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2007-03-07 22:51:45 +01:00
|
|
|
%changelog
|