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
|
|
|
#
|
2015-03-04 21:27:21 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
|
|
|
|
2014-08-14 00:18:19 +02:00
|
|
|
%define use_gtk3 0%{?suse_version} > 1140
|
2014-08-17 18:06:53 +02:00
|
|
|
%bcond_without gtk
|
2015-11-19 10:06:28 +01:00
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
%bcond_with qt
|
|
|
|
%else
|
2014-08-16 00:56:14 +02:00
|
|
|
%bcond_without qt
|
2015-11-19 10:06:28 +01:00
|
|
|
%endif
|
2014-09-18 00:49:46 +02:00
|
|
|
%define use_gnutls 0%{?suse_version} >= 1310 || 0%{?suse_version} == 1110
|
2013-08-18 21:54:48 +02:00
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
Name: wireshark
|
2015-12-30 10:02:05 +01:00
|
|
|
Version: 2.0.1
|
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
|
2013-03-09 13:35:17 +01:00
|
|
|
Url: https://www.wireshark.org/
|
|
|
|
Source: https://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
|
|
|
|
Source2: https://www.wireshark.org/download/SIGNATURES-%{version}.txt
|
2013-06-27 23:07:16 +02:00
|
|
|
Source3: https://www.wireshark.org/download/gerald_at_wireshark_dot_org.gpg#/wireshark.keyring
|
2015-04-09 13:43:48 +02:00
|
|
|
Source4: wireshark.appdata.xml
|
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
|
2013-06-05 23:48:12 +02:00
|
|
|
Patch1: wireshark-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
|
2013-06-05 23:48:12 +02:00
|
|
|
Patch2: wireshark-1.2.0-geoip.patch
|
|
|
|
Patch4: wireshark-1.10.0-enable_lua.patch
|
2013-06-27 23:07:16 +02:00
|
|
|
Patch5: wireshark-1.10.0-authors-pod2man.patch
|
2015-04-09 13:43:48 +02:00
|
|
|
Patch7: wireshark-pkg-config.patch
|
2015-07-13 11:57:31 +02:00
|
|
|
Patch8: wireshark-1.12.6-fix-QT-PIC-PIE.patch
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: flex
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
2014-08-16 00:56:14 +02:00
|
|
|
%if 0%{use_gtk3}
|
2014-08-14 00:18:19 +02:00
|
|
|
BuildRequires: gtk3-devel >= 3.0.0
|
2013-08-18 21:54:48 +02:00
|
|
|
%else
|
2014-08-14 00:18:19 +02:00
|
|
|
BuildRequires: gtk2-devel >= 2.12.0
|
2014-08-17 18:06:53 +02:00
|
|
|
%endif # use_gtk3
|
|
|
|
%endif # with gtk
|
2014-08-16 00:56:14 +02:00
|
|
|
%if %{with qt}
|
2015-04-28 09:10:21 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
2015-11-19 10:06:28 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.0.0
|
2015-04-28 09:10:21 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
2015-12-14 02:22:52 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
2015-04-28 09:10:21 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
%else
|
2014-08-16 00:56:14 +02:00
|
|
|
%if 0%{?suse_version} >= 1220
|
2015-11-19 10:06:28 +01:00
|
|
|
BuildRequires: pkgconfig(QtCore) >= 4.7.0
|
2014-08-16 00:56:14 +02:00
|
|
|
%else
|
2015-11-19 10:06:28 +01:00
|
|
|
BuildRequires: libqt4-devel >= 4.7.0
|
2014-08-16 00:56:14 +02:00
|
|
|
%endif # 12.20
|
2015-04-28 09:10:21 +02:00
|
|
|
%endif
|
2014-08-16 00:56:14 +02:00
|
|
|
%endif # with qt
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcares-devel
|
2014-08-14 00:18:19 +02:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.1.92
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libsmi-devel
|
2015-07-31 19:17:26 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: lua52-devel
|
|
|
|
%else
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: lua-devel
|
2015-07-31 19:17:26 +02:00
|
|
|
%endif
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: net-snmp-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: portaudio-devel
|
2014-08-14 00:18:19 +02:00
|
|
|
BuildRequires: python-devel >= 2.5
|
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
|
2014-09-18 00:49:46 +02:00
|
|
|
%if 0%{?use_gnutls}
|
|
|
|
# pull in licence compatible gnutls
|
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: pkgconfig(gnutls) >= 3.1.10
|
|
|
|
%endif # >= 13.1
|
|
|
|
%if 0%{?suse_version} == 1110
|
2015-11-19 10:06:28 +01:00
|
|
|
BuildRequires: libgnutls-devel >= 2.12.0
|
2014-09-18 00:49:46 +02:00
|
|
|
BuildConflicts: libgnutls-devel >= 3.0.0
|
|
|
|
%endif # SLE 11
|
|
|
|
%endif # use_gnutls
|
2015-10-16 16:38:02 +02:00
|
|
|
# for patch7 wireshark-1.12.6-fix-QT-PIC-PIE.patch
|
2014-12-03 22:09:48 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2015-12-11 04:17:45 +01:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-route-3.0)
|
2014-08-17 18:06:53 +02:00
|
|
|
Requires: wireshark-ui = %{version}
|
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.
|
|
|
|
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
|
|
|
|
|
|
|
%package ui-gtk
|
|
|
|
Summary: A Network Traffic Analyser - GTK+ UI
|
|
|
|
Group: Productivity/Networking/Diagnostic
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: %{name}-ui = %{version}
|
|
|
|
|
|
|
|
%description ui-gtk
|
|
|
|
This package contains the classic GTK+ UI of Wireshark.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with qt}
|
|
|
|
|
|
|
|
%package ui-qt
|
|
|
|
Summary: A Network Traffic Analyser - Qt UI
|
|
|
|
Group: Productivity/Networking/Diagnostic
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: %{name}-ui = %{version}
|
|
|
|
|
|
|
|
%description ui-qt
|
|
|
|
This package contains the newer Qt based UI for Wireshark.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
%prep
|
2013-03-09 13:35:17 +01:00
|
|
|
# The publisher doesn't sign the source tarball, but a signatures file containing multiple hashes.
|
|
|
|
# Verify hashes in that file against source tarball.
|
|
|
|
echo "`grep %{name}-%{version}.tar.bz2 %{S:2} | grep MD5 | head -n1 | cut -d= -f2` %{S:0}" | md5sum -c
|
|
|
|
echo "`grep %{name}-%{version}.tar.bz2 %{S:2} | grep SHA1 | head -n1 | cut -d= -f2` %{S:0}" | sha1sum -c
|
|
|
|
|
2007-02-06 19:25:39 +01:00
|
|
|
%setup -q
|
2014-08-14 00:18:19 +02:00
|
|
|
%patch2 -p1
|
2013-06-05 23:48:12 +02:00
|
|
|
%patch4 -p1
|
2011-05-10 13:13:33 +02:00
|
|
|
|
2010-12-17 17:39:23 +01:00
|
|
|
%if ! %{use_caps}
|
2014-08-14 00:18:19 +02:00
|
|
|
%patch1 -p1
|
2015-11-19 10:06:28 +01:00
|
|
|
# run as root on 11.3 and older - bnc#349782
|
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
|
|
|
|
2014-09-18 00:49:46 +02:00
|
|
|
%if %{with qt}
|
2015-11-19 10:06:28 +01:00
|
|
|
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop
|
2014-09-18 00:49:46 +02:00
|
|
|
%endif # with qt
|
|
|
|
|
2015-11-19 10:06:28 +01:00
|
|
|
%if %{with gtk}
|
|
|
|
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark.desktop
|
|
|
|
sed \
|
|
|
|
-e 's/^Name.*Wireshark/& (GTK)/' \
|
|
|
|
-e 's/^Icon=wireshark/&-gtk/' \
|
|
|
|
-e '/Exec=/s/wireshark/&-gtk/g' %{name}.desktop > %{name}-gtk.desktop
|
|
|
|
%endif # with gtk
|
|
|
|
|
2013-06-27 23:07:16 +02:00
|
|
|
%patch5 -p1
|
2015-04-09 13:43:48 +02:00
|
|
|
%patch7 -p1
|
2015-07-13 11:57:31 +02:00
|
|
|
%patch8 -p1
|
2013-06-27 23:07:16 +02:00
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
%build
|
2014-12-03 22:09:48 +01:00
|
|
|
# for patch6 wireshark-1.12.x-allow-gdk-pixbuf-deprecation.patch
|
|
|
|
autoreconf -fiv
|
2012-12-18 17:30:11 +01:00
|
|
|
|
2015-07-13 10:33:44 +02:00
|
|
|
# zlib-1.2.5 does not work well with wireshark, so disable it on pre-12.2
|
2015-05-23 15:28:44 +02:00
|
|
|
export CFLAGS="%optflags -fPIC -fPIE"
|
|
|
|
export CXXFLAGS="%optflags -fPIC -fPIE"
|
2015-01-05 20:49:19 +01:00
|
|
|
export LDFLAGS="-pie"
|
2015-04-28 09:10:21 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
#XXX: buggy autoconf checks..
|
|
|
|
export PATH="%{_libdir}/qt5/bin:$PATH"
|
|
|
|
%endif
|
|
|
|
|
2012-12-18 17:30:11 +01:00
|
|
|
%configure \
|
|
|
|
%if 0%{?suse_version} < 1220
|
|
|
|
--without-zlib \
|
|
|
|
%endif
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
2013-08-18 21:54:48 +02:00
|
|
|
%if 0%{?use_gtk3}
|
2014-08-14 00:18:19 +02:00
|
|
|
--with-gtk3=yes \
|
|
|
|
--with-gtk2=no \
|
|
|
|
%else
|
|
|
|
--with-gtk3=no \
|
|
|
|
--with-gtk2=yes \
|
2014-08-16 00:56:14 +02:00
|
|
|
%endif
|
2014-08-17 18:06:53 +02:00
|
|
|
%else
|
|
|
|
--with-gtk3=no \
|
|
|
|
--with-gtk2=no \
|
|
|
|
%endif # with gtk
|
2014-08-16 00:56:14 +02:00
|
|
|
%if %{with qt}
|
|
|
|
--with-qt=yes \
|
|
|
|
%else
|
|
|
|
--with-qt=no \
|
2012-12-18 17:30:11 +01:00
|
|
|
%endif
|
|
|
|
--with-ssl \
|
2014-09-18 00:49:46 +02:00
|
|
|
%if 0%{?use_gnutls}
|
2012-12-18 17:30:11 +01:00
|
|
|
--with-gnutls=yes \
|
2014-09-18 00:49:46 +02:00
|
|
|
%endif
|
2012-12-18 17:30:11 +01:00
|
|
|
--with-gcrypt=yes \
|
2015-05-23 15:28:44 +02:00
|
|
|
--with-plugins=%{_libdir}/%{name}/plugins/%{version} \
|
2015-06-21 20:04:20 +02:00
|
|
|
--with-pic=yes
|
2012-12-18 17:30:11 +01:00
|
|
|
|
2014-09-16 22:25:04 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
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
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
2010-12-08 18:31:25 +01:00
|
|
|
ln -fs wireshark %{buildroot}%{_bindir}/ethereal
|
2014-08-17 18:06:53 +02:00
|
|
|
%endif
|
2010-12-08 18:31:25 +01:00
|
|
|
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/
|
2013-06-05 23:48:12 +02:00
|
|
|
|
2015-04-09 13:43:48 +02:00
|
|
|
# install appdata file for AppStore integration
|
|
|
|
install -d -m0755 %{buildroot}%{_datadir}/appdata
|
|
|
|
install %{S:4} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
|
2013-06-05 23:48:12 +02:00
|
|
|
# -devel
|
2010-12-08 18:31:25 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_includedir}/wireshark
|
2013-06-05 23:48:12 +02:00
|
|
|
IDIR="${RPM_BUILD_ROOT}%{_includedir}/wireshark"
|
|
|
|
mkdir -p "${IDIR}/epan"
|
|
|
|
mkdir -p "${IDIR}/epan/crypt"
|
|
|
|
mkdir -p "${IDIR}/epan/ftypes"
|
|
|
|
mkdir -p "${IDIR}/epan/dfilter"
|
|
|
|
mkdir -p "${IDIR}/epan/dissectors"
|
2014-09-18 01:57:14 +02:00
|
|
|
mkdir -p "${IDIR}/epan/wmem"
|
2013-06-05 23:48:12 +02:00
|
|
|
mkdir -p "${IDIR}/wiretap"
|
|
|
|
mkdir -p "${IDIR}/wsutil"
|
|
|
|
install -m 644 color.h config.h register.h "${IDIR}/"
|
|
|
|
install -m 644 cfile.h file.h "${IDIR}/"
|
|
|
|
install -m 644 epan/*.h "${IDIR}/epan/"
|
|
|
|
install -m 644 epan/crypt/*.h "${IDIR}/epan/crypt"
|
|
|
|
install -m 644 epan/ftypes/*.h "${IDIR}/epan/ftypes"
|
|
|
|
install -m 644 epan/dfilter/*.h "${IDIR}/epan/dfilter"
|
|
|
|
install -m 644 epan/dissectors/*.h "${IDIR}/epan/dissectors"
|
2014-09-18 01:57:14 +02:00
|
|
|
install -m 644 epan/wmem/*.h "${IDIR}/epan/wmem"
|
2013-06-05 23:48:12 +02:00
|
|
|
install -m 644 wiretap/*.h "${IDIR}/wiretap"
|
|
|
|
install -m 644 wsutil/*.h "${IDIR}/wsutil"
|
2013-09-19 08:57:43 +02:00
|
|
|
install -m 644 ws_symbol_export.h "${IDIR}/"
|
2013-06-05 23:48:12 +02:00
|
|
|
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
2015-11-19 10:06:28 +01:00
|
|
|
install -D -m 0644 image/wsicon48.png %{buildroot}%{_datadir}/pixmaps/wireshark-gtk.png
|
|
|
|
install -D -m 0644 wireshark-gtk.desktop %{buildroot}%{_datadir}/applications/wireshark-gtk.desktop
|
2010-05-14 13:34:21 +02:00
|
|
|
%if 0%{?suse_version}
|
2015-11-19 10:06:28 +01:00
|
|
|
%suse_update_desktop_file %{name}-gtk
|
2010-05-14 13:34:21 +02:00
|
|
|
%endif
|
2014-08-17 18:06:53 +02:00
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2014-09-18 00:49:46 +02:00
|
|
|
%if %{with qt}
|
2015-11-19 10:06:28 +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
|
2014-09-18 00:49:46 +02:00
|
|
|
%if 0%{?suse_version}
|
2015-11-19 10:06:28 +01:00
|
|
|
%suse_update_desktop_file %{name}
|
2014-09-18 00:49:46 +02:00
|
|
|
%endif
|
|
|
|
%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-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/ethereal
|
|
|
|
%{_bindir}/tethereal
|
|
|
|
%{_bindir}/editcap
|
|
|
|
%{_bindir}/tshark
|
|
|
|
%{_bindir}/mergecap
|
2013-06-05 23:48:12 +02:00
|
|
|
%{_bindir}/reordercap
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/text2pcap
|
|
|
|
%{_bindir}/dftest
|
|
|
|
%{_bindir}/capinfos
|
2014-08-14 00:18:19 +02:00
|
|
|
%{_bindir}/captype
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/randpkt
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_bindir}/androiddump
|
|
|
|
%{_bindir}/idl2wrs
|
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/
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/wireshark.png
|
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/application-wireshark-doc.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/wireshark.svg
|
|
|
|
%{_datadir}/mime/packages/wireshark.xml
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/README.*
|
2013-06-05 23:48:12 +02:00
|
|
|
%{_includedir}/wireshark
|
|
|
|
%{_libdir}/lib*.so
|
2015-04-09 13:43:48 +02:00
|
|
|
%{_libdir}/pkgconfig/wireshark.pc
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
|
|
|
|
|
|
|
%files ui-gtk
|
|
|
|
%defattr(-,root,root)
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_bindir}/wireshark-gtk
|
2015-04-09 13:43:48 +02:00
|
|
|
%{_datadir}/appdata/wireshark.appdata.xml
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_datadir}/applications/wireshark-gtk.desktop
|
|
|
|
%{_datadir}/pixmaps/wireshark-gtk.png
|
2014-08-17 18:06:53 +02:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with qt}
|
|
|
|
|
|
|
|
%files ui-qt
|
|
|
|
%defattr(-,root,root)
|
2015-11-19 10:06:28 +01:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_bindir}/wireshark
|
|
|
|
%{_datadir}/applications/wireshark.desktop
|
|
|
|
%{_datadir}/pixmaps/wireshark.png
|
2014-08-17 18:06:53 +02:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2007-03-07 22:51:45 +01:00
|
|
|
%changelog
|