New upstream version 2.4.5
Contains fixes for CVE-2018-7419, CVE-2018-7418, CVE-2018-7417, CVE-2018-7420, CVE-2018-7320, CVE-2018-7336, CVE-2018-7337, CVE-2018-7334, CVE-2018-7335, CVE-2018-6836, CVE-2018-5335, CVE-2018-5334, CVE-2017-6014, CVE-2017-9616, CVE-2017-9617, CVE-2017-9766 Removed GTK+ based GUI (rhbz#1486203) Corrected LDFLAGS in spec (rhbz#1548665) Alternatives are no longer needed (rhbz#1533701)
This commit is contained in:
parent
72cc96c031
commit
3f69e3fe60
4
sources
4
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (wireshark-2.4.4.tar.xz) = b6625f860a10e10babd686820680a5e169594f171e7e176fc96325255ec096481da2e8a0fdff10b42cead82011740714a4331003dda0d48bf3b419da37834bdc
|
SHA512 (wireshark-2.4.5.tar.xz) = 2f2c201d6b8a37dcbe03bc9affbf97d632d8e40e4fe5b3a3e79cbd5cfbeb5b9111919850546ccae355fcb042def3456438eb1c4d73f7d56d373e7898311b42f3
|
||||||
SHA512 (SIGNATURES-2.4.4.txt) = 9587938c2ad2ebc9b15fbdcecf2191805368b1ed1ad6a64d3a41638bb617a059e963cb83a032a73d6ba7c63c86554fcd3d49b312847561eeeaf42f980b5576be
|
SHA512 (SIGNATURES-2.4.5.txt) = c3ad37cde73232aff3a0f00046894caccb7dca2bcd707c9d9f3bb0315bace72eb33417252abe5fecefb036ddb26b946fbde826e85b2a866fcce1f5872d395737
|
||||||
|
162
wireshark.spec
162
wireshark.spec
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
Summary: Network traffic analyzer
|
Summary: Network traffic analyzer
|
||||||
Name: wireshark
|
Name: wireshark
|
||||||
Version: 2.4.4
|
Version: 2.4.5
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
@ -15,7 +15,6 @@ Source0: https://wireshark.org/download/src/%{name}-%{version}.tar.xz
|
|||||||
Source1: https://www.wireshark.org/download/src/all-versions/SIGNATURES-%{version}.txt
|
Source1: https://www.wireshark.org/download/src/all-versions/SIGNATURES-%{version}.txt
|
||||||
Source2: 90-wireshark-usbmon.rules
|
Source2: 90-wireshark-usbmon.rules
|
||||||
|
|
||||||
Requires: %{name}-cli = %{epoch}:%{version}-%{release}
|
|
||||||
# Fedora-specific
|
# Fedora-specific
|
||||||
%if %{with_lua}
|
%if %{with_lua}
|
||||||
Patch1: wireshark-0001-enable-Lua-support.patch
|
Patch1: wireshark-0001-enable-Lua-support.patch
|
||||||
@ -31,6 +30,19 @@ Patch5: wireshark-0005-Fix-paths-in-a-wireshark.desktop-file.patch
|
|||||||
# Fedora-specific
|
# Fedora-specific
|
||||||
Patch6: wireshark-0006-Move-tmp-to-var-tmp.patch
|
Patch6: wireshark-0006-Move-tmp-to-var-tmp.patch
|
||||||
|
|
||||||
|
#install tshark together with wireshark GUI
|
||||||
|
Requires: %{name}-cli = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
Requires: xdg-utils
|
||||||
|
Requires: hicolor-icon-theme
|
||||||
|
%if %{with_portaudio}
|
||||||
|
Requires: portaudio
|
||||||
|
BuildRequires: portaudio-devel
|
||||||
|
%endif
|
||||||
|
%if %{with_GeoIP}
|
||||||
|
Requires: GeoIP
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: bzip2-devel
|
BuildRequires: bzip2-devel
|
||||||
BuildRequires: c-ares-devel
|
BuildRequires: c-ares-devel
|
||||||
BuildRequires: elfutils-devel
|
BuildRequires: elfutils-devel
|
||||||
@ -71,16 +83,6 @@ Buildrequires: git
|
|||||||
Buildrequires: python2-devel
|
Buildrequires: python2-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Metapackage with installs %{name}-cli and %{name}-qt.
|
|
||||||
|
|
||||||
%package cli
|
|
||||||
Summary: Network traffic analyzer
|
|
||||||
Group: Applications/Internet
|
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
||||||
Requires(pre): shadow-utils
|
|
||||||
Requires(post): systemd-udev
|
|
||||||
|
|
||||||
%description cli
|
|
||||||
Wireshark allows you to examine protocol data stored in files or as it is
|
Wireshark allows you to examine protocol data stored in files or as it is
|
||||||
captured from wired or wireless (WiFi or Bluetooth) networks, USB devices,
|
captured from wired or wireless (WiFi or Bluetooth) networks, USB devices,
|
||||||
and many other sources. It supports dozens of protocol capture file formats
|
and many other sources. It supports dozens of protocol capture file formats
|
||||||
@ -91,54 +93,17 @@ and the ability to reassemble multiple protocol packets in order to, for
|
|||||||
example, view a complete TCP stream, save the contents of a file which was
|
example, view a complete TCP stream, save the contents of a file which was
|
||||||
transferred over HTTP or CIFS, or play back an RTP audio stream.
|
transferred over HTTP or CIFS, or play back an RTP audio stream.
|
||||||
|
|
||||||
|
%package cli
|
||||||
|
Summary: Network traffic analyzer
|
||||||
|
Group: Applications/Internet
|
||||||
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
|
Requires(pre): shadow-utils
|
||||||
|
Requires(post): systemd-udev
|
||||||
|
|
||||||
|
%description cli
|
||||||
This package contains command-line utilities, plugins, and documentation for
|
This package contains command-line utilities, plugins, and documentation for
|
||||||
Wireshark.
|
Wireshark.
|
||||||
|
|
||||||
%package qt
|
|
||||||
Summary: Wireshark's Qt-based GUI
|
|
||||||
Group: Applications/Internet
|
|
||||||
Requires: %{name}-cli = %{epoch}:%{version}-%{release}
|
|
||||||
Requires: xdg-utils
|
|
||||||
Requires: hicolor-icon-theme
|
|
||||||
%if %{with_portaudio}
|
|
||||||
Requires: portaudio
|
|
||||||
BuildRequires: portaudio-devel
|
|
||||||
%endif
|
|
||||||
%if %{with_GeoIP}
|
|
||||||
Requires: GeoIP
|
|
||||||
%endif
|
|
||||||
Requires(post): /usr/sbin/update-alternatives
|
|
||||||
Requires(postun): /usr/sbin/update-alternatives
|
|
||||||
|
|
||||||
%description qt
|
|
||||||
This package contains the Qt Wireshark GUI and desktop integration files.
|
|
||||||
|
|
||||||
%package gtk
|
|
||||||
Summary: Wireshark's GTK+-based GUI
|
|
||||||
Group: Applications/Internet
|
|
||||||
|
|
||||||
Requires: %{name}-cli = %{epoch}:%{version}-%{release}
|
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
||||||
# This package used to be called wireshark-gnome.
|
|
||||||
Provides: wireshark-gnome = %{version}-%{release}
|
|
||||||
Obsoletes: wireshark-gnome < 2.0.0
|
|
||||||
%if %{with_portaudio}
|
|
||||||
Requires: portaudio
|
|
||||||
BuildRequires: portaudio-devel
|
|
||||||
%endif
|
|
||||||
%if %{with_GeoIP}
|
|
||||||
Requires: GeoIP
|
|
||||||
%endif
|
|
||||||
Requires: xdg-utils
|
|
||||||
Requires: hicolor-icon-theme
|
|
||||||
BuildRequires: desktop-file-utils
|
|
||||||
Requires(post): desktop-file-utils
|
|
||||||
Requires(post): /usr/sbin/update-alternatives
|
|
||||||
Requires(postun): /usr/sbin/update-alternatives
|
|
||||||
|
|
||||||
%description gtk
|
|
||||||
This package contains the GTK+ Wireshark GUI and desktop integration files.
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development headers and libraries for wireshark
|
Summary: Development headers and libraries for wireshark
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -164,7 +129,7 @@ export PIECFLAGS="-fpie -fPIC"
|
|||||||
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector-strong/-fstack-protector-all}
|
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector-strong/-fstack-protector-all}
|
||||||
export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE"
|
export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE"
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE"
|
export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS $PIECFLAGS -D_LARGEFILE64_SOURCE"
|
||||||
export LDFLAGS="$LDFLAGS -pie -fPIC"
|
export LDFLAGS="$RPM_OPT_FLAGS $LDFLAGS -pie -fPIC"
|
||||||
|
|
||||||
autoreconf -ivf
|
autoreconf -ivf
|
||||||
|
|
||||||
@ -173,7 +138,6 @@ autoreconf -ivf
|
|||||||
--with-libsmi \
|
--with-libsmi \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
--with-pic \
|
--with-pic \
|
||||||
--with-gtk=3 \
|
|
||||||
--with-qt=5 \
|
--with-qt=5 \
|
||||||
%if %{with_lua}
|
%if %{with_lua}
|
||||||
--with-lua \
|
--with-lua \
|
||||||
@ -211,7 +175,6 @@ mkdir -p %{buildroot}%{python2_sitearch}
|
|||||||
install -m 644 tools/wireshark_be.py tools/wireshark_gen.py %{buildroot}%{python2_sitearch}
|
install -m 644 tools/wireshark_be.py tools/wireshark_gen.py %{buildroot}%{python2_sitearch}
|
||||||
|
|
||||||
desktop-file-validate %{buildroot}%{_datadir}/applications/wireshark.desktop
|
desktop-file-validate %{buildroot}%{_datadir}/applications/wireshark.desktop
|
||||||
desktop-file-validate %{buildroot}%{_datadir}/applications/wireshark-gtk.desktop
|
|
||||||
|
|
||||||
#install devel files (inspired by debian/wireshark-dev.header-files)
|
#install devel files (inspired by debian/wireshark-dev.header-files)
|
||||||
install -d -m 0755 %{buildroot}%{_includedir}/wireshark
|
install -d -m 0755 %{buildroot}%{_includedir}/wireshark
|
||||||
@ -239,9 +202,6 @@ install -m 644 wsutil/*.h "${IDIR}/wsutil"
|
|||||||
install -m 644 ws_diag_control.h "${IDIR}/"
|
install -m 644 ws_diag_control.h "${IDIR}/"
|
||||||
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}
|
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}
|
||||||
|
|
||||||
# Change the program name for 'alternatives'
|
|
||||||
mv %{buildroot}%{_bindir}/wireshark %{buildroot}%{_bindir}/wireshark-qt
|
|
||||||
|
|
||||||
touch %{buildroot}%{_bindir}/%{name}
|
touch %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
# Remove libtool archives and static libs
|
# Remove libtool archives and static libs
|
||||||
@ -250,54 +210,27 @@ find %{buildroot} -type f -name "*.la" -delete
|
|||||||
# Remove idl2wrs
|
# Remove idl2wrs
|
||||||
rm -f %{buildroot}%{_bindir}/idl2wrs
|
rm -f %{buildroot}%{_bindir}/idl2wrs
|
||||||
|
|
||||||
|
#remove wireshark-gtk.desktop file since it is still installed in the makefile
|
||||||
|
rm -f %{buildroot}%{_datadir}/applications/wireshark-gtk.desktop
|
||||||
|
|
||||||
%pre cli
|
%pre cli
|
||||||
getent group wireshark >/dev/null || groupadd -r wireshark
|
getent group wireshark >/dev/null || groupadd -r wireshark
|
||||||
getent group usbmon >/dev/null || groupadd -r usbmon
|
getent group usbmon >/dev/null || groupadd -r usbmon
|
||||||
|
|
||||||
# If we have a pre-alternatives wireshark binary out there, get rid of it.
|
|
||||||
# (With 'alternatives' %{_bindir}/wireshark should be a symlink.)
|
|
||||||
%pre gtk
|
|
||||||
if [ -f %{_bindir}/wireshark ]; then
|
|
||||||
rm -f %{_bindir}/wireshark
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If we have a pre-alternatives wireshark binary out there, get rid of it.
|
|
||||||
# (With 'alternatives' %{_bindir}/wireshark should be a symlink.)
|
|
||||||
%pre qt
|
|
||||||
if [ -f %{_bindir}/wireshark ]; then
|
|
||||||
rm -f %{_bindir}/wireshark
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post cli
|
%post cli
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/usr/bin/udevadm trigger --subsystem-match=usbmon
|
/usr/bin/udevadm trigger --subsystem-match=usbmon
|
||||||
|
|
||||||
%post gtk
|
|
||||||
/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
|
|
||||||
%{name} %{_bindir}/wireshark-gtk 10
|
|
||||||
|
|
||||||
%post qt
|
|
||||||
/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
|
|
||||||
%{name} %{_bindir}/wireshark-qt 50
|
|
||||||
|
|
||||||
%triggerin -- wireshark < 2.2.6-4
|
|
||||||
/usr/sbin/update-alternatives --remove-all %{name} &> /dev/null || :
|
|
||||||
# This one was used as a workaround during f26 devel phase
|
|
||||||
/usr/sbin/update-alternatives --remove-all %{name}-gui &> /dev/null || :
|
|
||||||
|
|
||||||
%postun cli -p /sbin/ldconfig
|
%postun cli -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun gtk
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
/usr/sbin/update-alternatives --remove %{name} %{_bindir}/wireshark-gtk
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun qt
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
/usr/sbin/update-alternatives --remove %{name} %{_bindir}/wireshark-qt
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%{_datadir}/appdata/%{name}.appdata.xml
|
||||||
|
%{_datadir}/applications/wireshark.desktop
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
%{_datadir}/icons/hicolor/*/mimetypes/*
|
||||||
|
%{_datadir}/mime/packages/wireshark.xml
|
||||||
|
%{_bindir}/wireshark
|
||||||
|
%{_mandir}/man1/wireshark.*
|
||||||
|
|
||||||
%files cli
|
%files cli
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -344,26 +277,6 @@ fi
|
|||||||
%config(noreplace) %{_datadir}/wireshark/init.lua
|
%config(noreplace) %{_datadir}/wireshark/init.lua
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files gtk
|
|
||||||
%{_datadir}/appdata/%{name}.appdata.xml
|
|
||||||
%{_datadir}/applications/wireshark-gtk.desktop
|
|
||||||
%{_datadir}/icons/hicolor/*/apps/*
|
|
||||||
%{_datadir}/icons/hicolor/*/mimetypes/*
|
|
||||||
%{_datadir}/mime/packages/wireshark.xml
|
|
||||||
%{_bindir}/wireshark-gtk
|
|
||||||
%{_mandir}/man1/wireshark.*
|
|
||||||
%ghost %{_bindir}/wireshark
|
|
||||||
|
|
||||||
%files qt
|
|
||||||
%{_datadir}/appdata/%{name}.appdata.xml
|
|
||||||
%{_datadir}/applications/wireshark.desktop
|
|
||||||
%{_datadir}/icons/hicolor/*/apps/*
|
|
||||||
%{_datadir}/icons/hicolor/*/mimetypes/*
|
|
||||||
%{_datadir}/mime/packages/wireshark.xml
|
|
||||||
%{_bindir}/wireshark-qt
|
|
||||||
%{_mandir}/man1/wireshark.*
|
|
||||||
%ghost %{_bindir}/wireshark
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc doc/README.* ChangeLog
|
%doc doc/README.* ChangeLog
|
||||||
%{_includedir}/wireshark
|
%{_includedir}/wireshark
|
||||||
@ -371,6 +284,13 @@ fi
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 09 2018 Michal Ruprich <mruprich@redhat.com> - 1:2.4.5-1
|
||||||
|
- New upstream version 2.4.5
|
||||||
|
- Contains fixes for CVE-2018-7419, CVE-2018-7418, CVE-2018-7417, CVE-2018-7420, CVE-2018-7320, CVE-2018-7336, CVE-2018-7337, CVE-2018-7334, CVE-2018-7335, CVE-2018-6836, CVE-2018-5335, CVE-2018-5334, CVE-2017-6014, CVE-2017-9616, CVE-2017-9617, CVE-2017-9766
|
||||||
|
- Removed GTK+ based GUI (rhbz#1486203)
|
||||||
|
- Corrected LDFLAGS in spec (rhbz#1548665)
|
||||||
|
- Alternatives are no longer needed (rhbz#1533701)
|
||||||
|
|
||||||
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:2.4.4-2
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:2.4.4-2
|
||||||
- Escape macros in %%changelog
|
- Escape macros in %%changelog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user