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
|
|
|
#
|
2018-01-12 21:05:50 +01:00
|
|
|
# Copyright (c) 2018 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
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
# define libraries
|
2018-05-07 20:50:00 +02:00
|
|
|
%define libutil libwsutil9
|
|
|
|
%define libwire libwireshark11
|
|
|
|
%define libtap libwiretap8
|
|
|
|
%define libcodecs libwscodecs0
|
2017-01-03 17:35:05 +01:00
|
|
|
# disable caps
|
2010-12-17 17:39:23 +01:00
|
|
|
%define use_caps 0
|
2017-01-03 17:35:05 +01:00
|
|
|
# Enable new Qt gui on new releases and build old GTK2 gui on old releases
|
|
|
|
%if 0%{?suse_version} > 1140
|
2017-02-18 13:03:51 +01:00
|
|
|
%bcond_without gnutls
|
2014-08-16 00:56:14 +02:00
|
|
|
%bcond_without qt
|
2017-01-03 17:35:05 +01:00
|
|
|
%bcond_with gtk
|
|
|
|
%bcond_without geoip
|
|
|
|
%else
|
2017-02-18 13:03:51 +01:00
|
|
|
%bcond_with gnutls
|
2017-01-03 17:35:05 +01:00
|
|
|
%bcond_with qt
|
|
|
|
%bcond_without gtk
|
|
|
|
%bcond_with geoip
|
2015-11-19 10:06:28 +01:00
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
Name: wireshark
|
2018-05-07 20:50:00 +02:00
|
|
|
Version: 2.6.0
|
2012-04-01 15:51:52 +02:00
|
|
|
Release: 0
|
2007-01-16 00:41:20 +01:00
|
|
|
Summary: A Network Traffic Analyser
|
2017-07-27 10:22:12 +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/
|
2017-07-27 10:15:59 +02:00
|
|
|
Source: https://www.wireshark.org/download/src/%{name}-%{version}.tar.xz
|
2013-03-09 13:35:17 +01:00
|
|
|
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
|
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
|
2018-05-07 20:50:00 +02:00
|
|
|
#
|
2013-06-05 23:48:12 +02:00
|
|
|
Patch4: wireshark-1.10.0-enable_lua.patch
|
2017-01-03 17:35:05 +01:00
|
|
|
# for patch7 wireshark-1.12.6-fix-QT-PIC-PIE.patch
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2017-01-03 17:35:05 +01:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: hicolor-icon-theme
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcares-devel
|
2017-07-27 10:15:59 +02:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.4.2
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libsmi-devel
|
2017-01-03 17:35:05 +01:00
|
|
|
BuildRequires: libtool
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: net-snmp-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pcre-devel
|
2017-01-03 17:35:05 +01:00
|
|
|
BuildRequires: pkgconfig
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: portaudio-devel
|
|
|
|
BuildRequires: tcpd-devel
|
2017-01-03 17:35:05 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2009-06-17 15:51:24 +02:00
|
|
|
BuildRequires: zlib-devel
|
2017-01-03 17:35:05 +01:00
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
Requires(pre): shadow
|
|
|
|
Recommends: wireshark-ui = %{version}
|
2010-12-08 18:31:25 +01:00
|
|
|
Provides: ethereal = %{version}
|
|
|
|
Obsoletes: ethereal < %{version}
|
2017-02-18 13:03:51 +01:00
|
|
|
%if %{with gnutls}
|
|
|
|
BuildRequires: libgnutls-devel >= 2.12.0
|
|
|
|
%endif
|
2017-01-03 17:35:05 +01:00
|
|
|
%if !0%{use_caps}
|
|
|
|
Requires: xdg-utils
|
|
|
|
%else
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
Requires(pre): permissions
|
|
|
|
%endif
|
|
|
|
%if %{with geoip}
|
|
|
|
BuildRequires: GeoIP-devel
|
2010-10-06 23:05:22 +02:00
|
|
|
Recommends: GeoIP
|
2010-05-14 13:34:21 +02:00
|
|
|
%endif
|
2017-01-03 17:35:05 +01:00
|
|
|
%if 0%{?suse_version} > 1310
|
2015-12-11 04:17:45 +01:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
2017-01-03 17:35:05 +01:00
|
|
|
%endif
|
|
|
|
%if %{with gtk}
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: gtk2-devel >= 2.12.0
|
|
|
|
%endif
|
|
|
|
%if %{with qt}
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.0.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1320
|
2017-09-08 00:27:06 +02:00
|
|
|
BuildRequires: lua51-devel
|
2017-01-03 17:35:05 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: lua-devel
|
|
|
|
%endif
|
2017-07-27 10:22:12 +02:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
BuildRequires: xz
|
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%description
|
2017-08-28 02:21:16 +02:00
|
|
|
Wireshark is a network protocol analyzer. It allows examining data
|
|
|
|
from a live network or from a capture file on disk. You can
|
|
|
|
interactively browse the capture data, viewing summary and detailed
|
|
|
|
information for each packet. Wireshark has several features,
|
|
|
|
including a rich display filter language and the ability to view the
|
|
|
|
reconstructed stream of a TCP session.
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%package -n %{libutil}
|
|
|
|
Summary: Library for wireshark utilities
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libutil}
|
|
|
|
The libwsutil library provides utility functions for libwireshark.
|
|
|
|
|
|
|
|
%package -n %{libwire}
|
|
|
|
Summary: Network packet dissection library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libwire}
|
|
|
|
The libwireshark library provides the network packet dissection services
|
|
|
|
developed by the Wireshark project.
|
|
|
|
|
|
|
|
%package -n %{libtap}
|
|
|
|
Summary: Wireshark library for tapping
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libtap}
|
|
|
|
Wiretap, part of the Wireshark project, is a library that allows one to read
|
|
|
|
and write several packet capture file formats.
|
|
|
|
|
|
|
|
%package -n %{libcodecs}
|
|
|
|
Summary: Network packet dissection codecs library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libcodecs}
|
|
|
|
The libwscodecs library provides codec functions for libwireshark.
|
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
%package devel
|
|
|
|
Summary: A Network Traffic Analyser
|
2011-11-04 23:54:00 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-03 17:35:05 +01:00
|
|
|
Requires: %{libcodecs} = %{version}
|
|
|
|
Requires: %{libtap} = %{version}
|
|
|
|
Requires: %{libutil} = %{version}
|
|
|
|
Requires: %{libwire} = %{version}
|
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
|
2017-08-28 02:21:16 +02:00
|
|
|
Wireshark is a network protocol analyzer. It allows examining data
|
|
|
|
from a live network or from a capture file on disk.
|
2007-01-16 00:41:20 +01:00
|
|
|
|
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
|
2017-01-03 17:35:05 +01:00
|
|
|
This package contains the GTK+ UI of Wireshark.
|
2014-08-17 18:06:53 +02:00
|
|
|
%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}
|
2017-01-09 09:34:45 +01:00
|
|
|
# gtk is the deprecated ui so ensure its uninstall
|
|
|
|
Obsoletes: %{name}-ui-gtk
|
2014-08-17 18:06:53 +02:00
|
|
|
|
|
|
|
%description ui-qt
|
2017-01-03 17:35:05 +01:00
|
|
|
This package contains the Qt based UI for Wireshark.
|
2014-08-17 18:06:53 +02:00
|
|
|
%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.
|
2017-07-27 10:15:59 +02:00
|
|
|
echo "`grep %{name}-%{version}.tar.xz %{SOURCE2} | grep SHA1 | head -n1 | cut -d= -f2` %{SOURCE0}" | sha1sum -c
|
|
|
|
echo "`grep %{name}-%{version}.tar.xz %{SOURCE2} | grep SHA256 | head -n1 | cut -d= -f2` %{SOURCE0}" | sha256sum -c
|
2013-03-09 13:35:17 +01:00
|
|
|
|
2007-02-06 19:25:39 +01:00
|
|
|
%setup -q
|
2018-05-07 20:50:00 +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
|
2017-05-17 11:53:50 +02:00
|
|
|
# open capture files without root privileges bsc#1025714
|
|
|
|
for X in wireshark{,-gtk}.desktop; do
|
|
|
|
cp -pv $X ${X/wireshark/wireshark-file}
|
|
|
|
echo "NoDisplay=true" >> ${X/wireshark/wireshark-file}
|
|
|
|
done
|
|
|
|
sed -i '/^MimeType.*/d' wireshark{,-gtk}.desktop
|
2017-01-03 17:35:05 +01:00
|
|
|
# run as root if not using caps
|
2017-05-17 11:53:50 +02:00
|
|
|
sed -i 's!^Exec=wireshark!Exec=%{_bindir}/xdg-su -c %{_bindir}/wireshark!' wireshark{,-gtk}.desktop
|
2017-01-03 17:35:05 +01:00
|
|
|
%endif
|
2017-05-17 11:53:50 +02:00
|
|
|
sed -i 's/^Icon=wireshark.png$/Icon=wireshark/' wireshark*.desktop
|
2013-06-27 23:07:16 +02:00
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
%build
|
2017-01-03 17:35:05 +01:00
|
|
|
export CFLAGS="%{optflags} -fPIC"
|
|
|
|
export CXXFLAGS="%{optflags} -fPIC"
|
2015-01-05 20:49:19 +01:00
|
|
|
export LDFLAGS="-pie"
|
2015-04-28 09:10:21 +02:00
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%if %{with qt}
|
2015-04-28 09:10:21 +02:00
|
|
|
#XXX: buggy autoconf checks..
|
|
|
|
export PATH="%{_libdir}/qt5/bin:$PATH"
|
|
|
|
%endif
|
|
|
|
|
2012-12-18 17:30:11 +01:00
|
|
|
%configure \
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
2017-08-22 06:12:27 +02:00
|
|
|
--with-gtk=2 \
|
2014-08-16 00:56:14 +02:00
|
|
|
%endif
|
|
|
|
%if %{with qt}
|
|
|
|
--with-qt=yes \
|
|
|
|
%else
|
|
|
|
--with-qt=no \
|
2012-12-18 17:30:11 +01:00
|
|
|
%endif
|
|
|
|
--with-ssl \
|
2017-02-18 13:03:51 +01:00
|
|
|
%if %{with gnutls}
|
2012-12-18 17:30:11 +01:00
|
|
|
--with-gnutls=yes \
|
2017-02-18 13:03:51 +01:00
|
|
|
%else
|
|
|
|
--with-gnutls=no \
|
|
|
|
%endif
|
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
|
2017-02-18 13:03:51 +01:00
|
|
|
%make_install
|
2017-01-03 17:35:05 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
# Ethereal support (remove when SLE-11 is out of scope
|
2014-08-17 18:06:53 +02:00
|
|
|
%if %{with gtk}
|
2017-01-03 17:35:05 +01:00
|
|
|
ln -fs wireshark-gtk %{buildroot}%{_bindir}/ethereal
|
|
|
|
%endif
|
|
|
|
%if %{with qt}
|
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
|
2017-01-03 17:35:05 +01:00
|
|
|
|
2010-12-08 18:31:25 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}
|
|
|
|
install -d -m 0755 %{buildroot}%{_mandir}/man1/
|
2016-07-23 16:33:30 +02:00
|
|
|
# install separate appdata files corresponding to .desktop files for AppStore integration
|
2017-02-18 13:03:51 +01:00
|
|
|
%if %{with qt}
|
2015-04-09 13:43:48 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_datadir}/appdata
|
2016-09-05 16:53:32 +02:00
|
|
|
install -m644 wireshark.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
2016-07-23 16:33:30 +02:00
|
|
|
sed -i -e "/<description>/i \ \ \ \ <name>Wireshark (QT) Network Analyzer<\/name>" \
|
|
|
|
-e "/<description>/i \ \ \ \ <summary>QT interface for wireshark network traffic analyzer<\/summary>" \
|
|
|
|
%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
2017-02-18 13:03:51 +01:00
|
|
|
%else
|
|
|
|
rm -f %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
%endif
|
2015-04-09 13:43:48 +02:00
|
|
|
|
2013-06-05 23:48:12 +02:00
|
|
|
# -devel
|
2010-12-08 18:31:25 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_includedir}/wireshark
|
2017-01-03 17:35:05 +01:00
|
|
|
IDIR="%{buildroot}%{_includedir}/wireshark"
|
2013-06-05 23:48:12 +02:00
|
|
|
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"
|
2016-09-12 05:30:47 +02:00
|
|
|
install -m 644 *.h "${IDIR}/"
|
2013-06-05 23:48:12 +02:00
|
|
|
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"
|
|
|
|
|
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
|
2017-02-18 13:03:51 +01:00
|
|
|
%suse_update_desktop_file -n %{name}-gtk
|
2017-05-17 11:53:50 +02:00
|
|
|
%if ! %{use_caps}
|
|
|
|
install -D -m 0644 wireshark-file-gtk.desktop %{buildroot}%{_datadir}/applications/wireshark-file-gtk.desktop
|
|
|
|
%suse_update_desktop_file -n %{name}-file-gtk
|
|
|
|
%endif
|
2017-01-03 17:35:05 +01:00
|
|
|
%else
|
|
|
|
# sometimes the gtk.desktop gets autoinstalled by make_install
|
|
|
|
rm -f %{buildroot}%{_datadir}/applications/wireshark-gtk.desktop
|
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
|
|
|
|
%suse_update_desktop_file %{name}
|
2017-05-17 11:53:50 +02:00
|
|
|
%if ! %{use_caps}
|
|
|
|
install -D -m 0644 wireshark-file.desktop %{buildroot}%{_datadir}/applications/wireshark-file.desktop
|
|
|
|
%suse_update_desktop_file %{name}-file
|
|
|
|
%endif
|
2017-02-18 13:03:51 +01:00
|
|
|
%else
|
|
|
|
rm -f %{buildroot}%{_datadir}/applications/wireshark.desktop
|
2014-09-18 00:49:46 +02:00
|
|
|
%endif
|
2010-12-08 18:31:25 +01:00
|
|
|
|
2010-12-17 17:39:23 +01:00
|
|
|
%if %{use_caps}
|
2010-12-08 18:31:25 +01:00
|
|
|
%pre
|
2017-01-03 17:35:05 +01:00
|
|
|
getent group wireshark >/dev/null || groupadd -r wireshark
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%verifyscript
|
2017-02-18 13:03:51 +01:00
|
|
|
%{verify_permissions -e %{_bindir}/dumpcap}
|
2017-01-03 17:35:05 +01:00
|
|
|
%endif
|
2007-01-16 00:41:20 +01:00
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%post
|
|
|
|
%if %{use_caps}
|
|
|
|
%if 0%{?set_permissions:1} > 0
|
2017-02-18 13:03:51 +01:00
|
|
|
%set_permissions %{_bindir}/dumpcap
|
2017-01-03 17:35:05 +01:00
|
|
|
%else
|
|
|
|
%run_permissions
|
|
|
|
%endif
|
|
|
|
%endif # use_caps
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post -n %{libutil} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libutil} -p /sbin/ldconfig
|
|
|
|
%post -n %{libwire} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libwire} -p /sbin/ldconfig
|
|
|
|
%post -n %{libtap} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libtap} -p /sbin/ldconfig
|
|
|
|
%post -n %{libcodecs} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libcodecs} -p /sbin/ldconfig
|
2007-01-16 00:41:20 +01:00
|
|
|
|
|
|
|
%files
|
2018-05-07 20:50:00 +02:00
|
|
|
%doc AUTHORS COPYING NEWS README.md README.linux
|
2017-01-03 17:35:05 +01:00
|
|
|
%{_mandir}/man1/[^i]*
|
|
|
|
%{_mandir}/man4/*
|
2016-09-12 05:30:47 +02:00
|
|
|
%{_bindir}/capinfos
|
|
|
|
%{_bindir}/captype
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/editcap
|
2016-09-12 05:30:47 +02:00
|
|
|
%{_bindir}/idl2wrs
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/mergecap
|
2016-09-12 05:30:47 +02:00
|
|
|
%{_bindir}/randpkt
|
|
|
|
%{_bindir}/rawshark
|
2013-06-05 23:48:12 +02:00
|
|
|
%{_bindir}/reordercap
|
2018-05-07 20:50:00 +02:00
|
|
|
%{_bindir}/sharkd
|
2016-09-12 05:30:47 +02:00
|
|
|
%{_bindir}/tethereal
|
2010-12-08 18:31:25 +01:00
|
|
|
%{_bindir}/text2pcap
|
2016-09-12 05:30:47 +02:00
|
|
|
%{_bindir}/tshark
|
2010-12-17 17:39:23 +01:00
|
|
|
%if %{use_caps}
|
2017-01-03 17:35:05 +01:00
|
|
|
%verify(not mode caps) %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: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
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%files -n %{libutil}
|
|
|
|
%{_libdir}/libwsutil*.so.*
|
|
|
|
|
|
|
|
%files -n %{libwire}
|
|
|
|
%{_libdir}/libwireshark.so.*
|
|
|
|
|
|
|
|
%files -n %{libtap}
|
|
|
|
%{_libdir}/libwiretap.so.*
|
|
|
|
|
|
|
|
%files -n %{libcodecs}
|
|
|
|
%{_libdir}/libwscodecs.so.*
|
|
|
|
|
2007-01-16 00:41:20 +01:00
|
|
|
%files devel
|
|
|
|
%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
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_bindir}/wireshark-gtk
|
2017-01-03 17:35:05 +01:00
|
|
|
%{_bindir}/ethereal
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_datadir}/applications/wireshark-gtk.desktop
|
2017-05-17 11:53:50 +02:00
|
|
|
%if ! %{use_caps}
|
|
|
|
%{_datadir}/applications/wireshark-file-gtk.desktop
|
|
|
|
%endif
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_datadir}/pixmaps/wireshark-gtk.png
|
2014-08-17 18:06:53 +02:00
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%post ui-gtk
|
2017-02-18 13:03:51 +01:00
|
|
|
test -f %{_bindir}/update-mime-database && %{_bindir}/update-mime-database %{_datadir}/mime > /dev/null || :
|
|
|
|
test -f %{_bindir}/update-desktop-database && %{_bindir}/update-desktop-database > /dev/null || :
|
2017-01-03 17:35:05 +01:00
|
|
|
test -f /sbin/conf.d/SuSEconfig.gtk2 && SuSEconfig --module gtk2 > /dev/null || :
|
|
|
|
test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || :
|
|
|
|
|
|
|
|
%postun ui-gtk
|
2017-02-18 13:03:51 +01:00
|
|
|
test -f %{_bindir}/update-mime-database && %{_bindir}/update-mime-database %{_datadir}/mime > /dev/null || :
|
|
|
|
test -f %{_bindir}/update-desktop-database && %{_bindir}/update-desktop-database > /dev/null || :
|
2017-01-03 17:35:05 +01:00
|
|
|
test -f /sbin/conf.d/SuSEconfig.gtk2 && SuSEconfig --module gtk2 > /dev/null || :
|
|
|
|
test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || :
|
2014-08-17 18:06:53 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with qt}
|
|
|
|
%files ui-qt
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_bindir}/wireshark
|
2017-01-03 17:35:05 +01:00
|
|
|
%{_bindir}/ethereal
|
2016-07-23 16:33:30 +02:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/wireshark.appdata.xml
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_datadir}/applications/wireshark.desktop
|
2017-05-17 11:53:50 +02:00
|
|
|
%if ! %{use_caps}
|
|
|
|
%{_datadir}/applications/wireshark-file.desktop
|
|
|
|
%endif
|
2015-11-19 10:06:28 +01:00
|
|
|
%{_datadir}/pixmaps/wireshark.png
|
2014-08-17 18:06:53 +02:00
|
|
|
|
2017-01-03 17:35:05 +01:00
|
|
|
%post ui-qt
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun ui-qt
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2014-08-17 18:06:53 +02:00
|
|
|
%endif
|
|
|
|
|
2007-03-07 22:51:45 +01:00
|
|
|
%changelog
|