%define Werror_cflags %{nil} %define major 8 %define wiretapmajor 6 %define wscodecsmajor 1 %define wsutilmajor 7 %define libname %mklibname wireshark %{major} %define libwiretap %mklibname wiretap %{wiretapmajor} %define libwscodecs %mklibname wscodecs %{wscodecsmajor} %define libwsutil %mklibname wsutil %{wsutilmajor} %define libname_devel %mklibname -d wireshark Summary: Network traffic analyzer Name: wireshark Version: 2.2.15 Release: %mkrel 1 License: GPLv2+ and GPLv3 Group: Monitoring URL: http://www.wireshark.org Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2 Source10: README.urpmi Patch5: wireshark-1.12.0-do-not-fail-on-chgrp-chmod.patch Requires: dumpcap Requires: xdg-utils BuildRequires: doxygen BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5MultimediaWidgets) BuildRequires: pkgconfig(Qt5Help) BuildRequires: krb5-devel BuildRequires: libcap-devel BuildRequires: libelf-devel BuildRequires: libpcap-devel >= 0.7.2 BuildRequires: libsmi-devel BuildRequires: openssl-devel BuildRequires: pcre-devel BuildRequires: lua5.2-devel BuildRequires: portaudio-devel BuildRequires: libgcrypt-devel >= 1.1.92 BuildRequires: libgnutls-devel >= 1.2.0 BuildRequires: pkgconfig(libnl-3.0) BuildRequires: zlib-devel BuildRequires: bison BuildRequires: flex BuildRequires: geoip-devel BuildRequires: libtool Obsoletes: wireshark-gtk < 2.0.0 Obsoletes: wireshark-common < 2.0.0 Conflicts: wireshark-common < 2.0.0 %description Wireshark is a network traffic analyzer for Unix-ish operating systems. It is based on Qt, a graphical user interface library, and libpcap, a packet capture and filtering library. %package -n %{libname} Summary: Network traffic and protocol analyzer libraries Group: System/Libraries Conflicts: %{_lib}wireshark3 < 1.10.1 %description -n %{libname} Wireshark is a network traffic analyzer for Unix-ish operating systems. It is based on Qt, a graphical user interface library, and libpcap, a packet capture and filtering library. %package -n %{libwiretap} Summary: Packet-capture library for %{name} Group: System/Libraries Conflicts: %{_lib}wireshark3 < 1.10.1 %description -n %{libwiretap} The wiretap library is a packet-capture library currently under development parallel to wireshark. Wiretap is used in wireshark for its ability to read multiple file types. %package -n %{libwscodecs} Summary: Network packet dissection codecs library Group: System/Libraries %description -n %{libwscodecs} The libwscodecs library provides a codecs interface for wireshark. %package -n %{libwsutil} Summary: Network packet dissection utilities library Group: System/Libraries Conflicts: %{_lib}wireshark3 < 1.10.1 %description -n %{libwsutil} The libwsutil library provides utility functions for wireshark. %package -n %{libname_devel} Summary: Development files for %{name} Group: Development/Other Provides: lib%{name}-devel = %{version}-%{release} Provides: wireshark-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: %{libwiretap} = %{version}-%{release} Requires: %{libwscodecs} = %{version}-%{release} Requires: %{libwsutil} = %{version}-%{release} %description -n %{libname_devel} This package contains files used for development with %{name}. %package tools Summary: Tools for manipulating capture files Group: Monitoring %description tools Set of tools for manipulating capture files. Contains: - editcap - Edit and/or translate the format of capture files - mergecap - Merges two capture files into one - text2cap - Generate a capture file from an ASCII hexdump of packets %package -n tshark Summary: Text-mode network traffic and protocol analyzer Group: Monitoring Requires: dumpcap %description -n tshark Tshark is a network protocol analyzer. It lets you capture packet data from a live network, or read packets from a previously saved capture file, either printing a decoded form of those packets to the standard output or writing the packets to a file. Twireshark's native capture file format is libpcap format, which is also the format used by tcpdump and various other tools. %package -n rawshark Summary: Dump and analyze raw libpcap data Group: Monitoring %description -n rawshark Rawshark reads a stream of packets from a file or pipe, and prints a line describing its output, followed by a set of matching fields for each packet on stdout. %package -n dumpcap Summary: Network traffic dump tool Group: Monitoring %description -n dumpcap Dumpcap is a network traffic dump tool. It lets you capture packet data from a live network and write the packets to a file. Many wireshark utilities require it. %prep %setup -q %patch5 -p1 # README.urpmi install -Dm644 %{SOURCE10} . %build ./autogen.sh export PATH=$PATH:%{_qt5_bindir} export CFLAGS="%{optflags} -fPIC" export CXXFLAGS="%{optflags} -fPIC" %configure2_5x \ --disable-static \ --disable-warnings-as-errors \ --enable-warnings-as-errors=no \ --disable-usr-local \ --enable-wireshark \ --enable-packet-editor \ --enable-tshark \ --enable-editcap \ --enable-capinfos \ --enable-mergecap \ --enable-text2pcap \ --enable-dftest \ --enable-randpkt \ --enable-airpcap \ --enable-dumpcap \ --enable-rawshark \ --enable-ipv6 \ --enable-setuid-install \ --with-gnutls=yes \ --with-gcrypt=yes \ --with-geoip=yes \ --with-krb5 \ --with-adns=no \ --with-gtk3=no \ --with-qt=yes \ --with-libnl=3 \ --with-libsmi=%{_prefix} \ --with-pcap=%{_prefix} \ --with-zlib=%{_prefix} \ --with-lua=%{_prefix} \ --with-portaudio=%{_prefix} \ --with-libcap=%{_prefix} \ --with-ssl=%{_prefix} \ --with-plugins=%{_libdir}/%{name} %make %install %make_install # link to main executable mv %{buildroot}%{_bindir}/wireshark %{buildroot}%{_bindir}/wireshark-qt ln -s wireshark-qt %{buildroot}%{_bindir}/wireshark # icons install -Dpm0644 image/wsicon16.png %{buildroot}%{_miconsdir}/%{name}.png install -Dpm0644 image/wsicon32.png %{buildroot}%{_iconsdir}/%{name}.png install -Dpm0644 image/wsicon48.png %{buildroot}%{_liconsdir}/%{name}.png # XDG menu install -d %{buildroot}%{_datadir}/applications/ install -m 644 %{name}.desktop %{buildroot}%{_datadir}/applications/ # remove uneeded files find %{buildroot} -name "*.la" -delete # install includes mkdir -p %{buildroot}%{_includedir}/wireshark for include in `find epan -type f -name '*.h'`; do mkdir -p %{buildroot}%{_includedir}/wireshark/`dirname $include` install -m 0644 $include %{buildroot}%{_includedir}/wireshark/`dirname $include` done # remaining include files install -m 0644 *.h %{buildroot}%{_includedir}/wireshark mkdir -p %{buildroot}%{_includedir}/wireshark/wiretap install -m 0644 wiretap/*.h %{buildroot}%{_includedir}/wireshark/wiretap mkdir -p %{buildroot}%{_includedir}/wireshark/codecs install -m 0644 codecs/*.h %{buildroot}%{_includedir}/wireshark/codecs mkdir -p %{buildroot}%{_includedir}/wireshark/wsutil install -m 0644 wsutil/*.h %{buildroot}%{_includedir}/wireshark/wsutil chmod a+r %{buildroot}%{_bindir}/dumpcap # pkg-config support install -d %{buildroot}%{_libdir}/pkgconfig/ cat > %{buildroot}%{_libdir}/pkgconfig/wireshark.pc << EOF prefix=%{_prefix} exec_prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir}/wireshark plugindir=%{_libdir}/wireshark Name: wireshark Description: wireshark network packet dissection library Version: %{version} Requires: Libs: -L\${libdir} -lwireshark Cflags: -I\${includedir} EOF %pre -n dumpcap if ! getent group wireshark > /dev/null ;then %{_sbindir}/groupadd -r -f wireshark fi %files -n dumpcap %attr(4750, root, wireshark) %{_bindir}/dumpcap %{_mandir}/man1/dumpcap.1* %files %doc README.urpmi %{_bindir}/%{name} %{_bindir}/%{name}-qt %dir %{_libdir}/%{name} %{_libdir}/%{name}/*.so %{_datadir}/%{name} %{_iconsdir}/*.png %{_miconsdir}/*.png %{_liconsdir}/*.png %{_iconsdir}/hicolor/*/*/*.png %{_iconsdir}/hicolor/*/*/*.svg %{_mandir}/man1/%{name}.1* %{_mandir}/man4/%{name}-filter.4* %{_datadir}/applications/*.desktop %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/mime/packages/%{name}.xml %files tools %{_bindir}/capinfos %{_bindir}/captype %{_bindir}/dftest %{_bindir}/editcap %{_bindir}/idl2wrs %{_bindir}/mergecap %{_bindir}/randpkt %{_bindir}/reordercap %{_bindir}/text2pcap %{_libdir}/%{name}/extcap/androiddump %{_libdir}/%{name}/extcap/randpktdump %{_mandir}/man1/androiddump* %{_mandir}/man1/capinfo* %{_mandir}/man1/dftest* %{_mandir}/man1/editcap* %{_mandir}/man1/mergecap* %{_mandir}/man1/randpkt* %{_mandir}/man1/reordercap* %{_mandir}/man1/text2pcap* %{_mandir}/man4/extcap* %files -n tshark %doc README.urpmi %{_bindir}/tshark %{_mandir}/man1/tshark* %files -n rawshark %{_bindir}/rawshark %{_mandir}/man1/rawshark.1* %files -n %{libname} %doc AUTHORS NEWS README{,.[lv]*} doc/{randpkt.txt,README.*} %{_libdir}/libwireshark.so.%{major}* %files -n %{libwiretap} %{_libdir}/libwiretap.so.%{wiretapmajor}* %files -n %{libwscodecs} %{_libdir}/libwscodecs.so.%{wscodecsmajor}* %files -n %{libwsutil} %{_libdir}/libwsutil.so.%{wsutilmajor}* %files -n %{libname_devel} %doc ChangeLog %{_includedir}/wireshark %{_libdir}/libwireshark.so %{_libdir}/libwiretap.so %{_libdir}/libwscodecs.so %{_libdir}/libwsutil.so %{_libdir}/pkgconfig/*.pc %changelog * Wed May 23 2018 shlomif <shlomif> 2.2.15-1.mga6 (not released yet) + Revision: 1231898 - New version 2.2.15 ( MGA#23080 ). + luigiwalser <luigiwalser> - 2.2.14 - 2.2.13 - 2.2.12 - 2.2.11 - 2.2.10 - 2.2.9 - 2.2.8 * Fri Jun 02 2017 luigiwalser <luigiwalser> 2.2.7-1.mga6 + Revision: 1105779 - 2.2.7 * Fri Apr 14 2017 luigiwalser <luigiwalser> 2.2.6-1.mga6 + Revision: 1096549 - 2.2.6 * Sat Mar 04 2017 luigiwalser <luigiwalser> 2.2.5-1.mga6 + Revision: 1088695 - 2.2.5 * Tue Jan 24 2017 luigiwalser <luigiwalser> 2.2.4-1.mga6 + Revision: 1083294 - 2.2.4 * Thu Dec 15 2016 luigiwalser <luigiwalser> 2.2.3-1.mga6 + Revision: 1075289 - 2.2.3 * Thu Nov 17 2016 luigiwalser <luigiwalser> 2.2.2-1.mga6 + Revision: 1068078 - 2.2.2 * Wed Oct 05 2016 luigiwalser <luigiwalser> 2.2.1-1.mga6 + Revision: 1058925 - 2.2.1 * Fri Sep 09 2016 luigiwalser <luigiwalser> 2.2.0-1.mga6 + Revision: 1050919 - 2.2.0 - remove patch 0 (no longer relevant) - remove patch 4 (configure argument should make it unnecessary) - add libwscodecs subpackage (major is 1) - libwireshark major is now 8 - libwiretap major is now 6 - libwsutil major is now 7 * Thu Jul 28 2016 luigiwalser <luigiwalser> 2.0.5-1.mga6 + Revision: 1043827 - 2.0.5 * Wed Jun 08 2016 luigiwalser <luigiwalser> 2.0.4-1.mga6 + Revision: 1020842 - 2.0.4 * Mon Apr 25 2016 luigiwalser <luigiwalser> 2.0.3-1.mga6 + Revision: 1006113 - 2.0.3 * Fri Mar 04 2016 oden <oden> 2.0.2-2.mga6 + Revision: 985731 - fix devel stuff a bit + luigiwalser <luigiwalser> - do not call 'chgrp wireshark dumpcap' during build as it does not work and %%attr sets the group ownership in the files list just fine - make dumpcap readable in the buildroot so deps can be extracted (mga#17865) * Tue Mar 01 2016 luigiwalser <luigiwalser> 2.0.2-1.mga6 + Revision: 981156 - 2.0.2 * Mon Jan 11 2016 luigiwalser <luigiwalser> 2.0.1-2.mga6 + Revision: 921846 - rebuild for gnutls * Wed Dec 30 2015 luigiwalser <luigiwalser> 2.0.1-1.mga6 + Revision: 917012 - 2.0.1 * Thu Nov 19 2015 fwang <fwang> 2.0.0-1.mga6 + Revision: 904128 - 2.0.0 final * Mon Nov 02 2015 luigiwalser <luigiwalser> 2.0.0-0.rc2.3.mga6 + Revision: 897437 - libwireshark major is now 6 - libwiretap major is now 5 - libwsutil major is now 6 - 2.0.0rc2 - remove upstreamed patch 1 * Tue Sep 15 2015 fwang <fwang> 1.99.9-1.mga6 + Revision: 879539 - use upstream patch to detect fpic for qt5 - drop merged patch - 1.99.9 - rebuild for new libgcrypt * Wed Aug 12 2015 luigiwalser <luigiwalser> 1.99.8-1.mga6 + Revision: 864132 - 1.99.8 * Sat Jul 25 2015 luigiwalser <luigiwalser> 1.99.7-2.mga6 + Revision: 857146 - fix upgrade from mga5 as of 1.12.6-2 * Fri Jul 24 2015 luigiwalser <luigiwalser> 1.99.7-1.mga6 + Revision: 857023 - 1.99.7 - remove upstreamed i18n patch (desktop file category patch still needed) - libfiletap is gone - all library majors reset to 0 - rediff patch 4 * Thu Jun 18 2015 luigiwalser <luigiwalser> 1.12.6-1.mga6 + Revision: 823179 - 1.12.6 * Wed May 13 2015 luigiwalser <luigiwalser> 1.12.5-1.mga5 + Revision: 821993 - 1.12.5 * Thu Mar 05 2015 luigiwalser <luigiwalser> 1.12.4-1.mga5 + Revision: 817759 - 1.12.4 * Thu Jan 08 2015 luigiwalser <luigiwalser> 1.12.3-1.mga5 + Revision: 809270 - 1.12.3 * Thu Nov 13 2014 luigiwalser <luigiwalser> 1.12.2-1.mga5 + Revision: 796811 - 1.12.2 * Wed Oct 15 2014 umeabot <umeabot> 1.12.1-2.mga5 + Revision: 750522 - Second Mageia 5 Mass Rebuild * Fri Sep 19 2014 alexl <alexl> 1.12.1-1.mga5 + Revision: 697377 - added missing requires for xdg-open (from wireshark_help_browser.patch) + luigiwalser <luigiwalser> - 1.12.1 + umeabot <umeabot> - Mageia 5 Mass Rebuild * Wed Sep 03 2014 luigiwalser <luigiwalser> 1.12.0-3.mga5 + Revision: 671513 - fix category in upstream desktop file * Wed Sep 03 2014 alexl <alexl> 1.12.0-2.mga5 + Revision: 671499 - used own desktop file from sources - updated translations for desktop file * Fri Aug 01 2014 luigiwalser <luigiwalser> 1.12.0-1.mga5 + Revision: 659137 - 1.12.0 - libwireshark major is now 5 - libwiretap major is now 4 - libwsutil major is now 4 - add subpackage for new libfiletap library - add patch to fix regression in make install (failing on chgrp) - main GUI is now Qt-based - build Qt5 version of GUI - add new captype command to files list * Fri Aug 01 2014 luigiwalser <luigiwalser> 1.10.9-1.mga5 + Revision: 658921 - 1.10.9 * Sun Jun 29 2014 tv <tv> 1.10.8-2.mga5 + Revision: 641016 - rebuild with lua-5.2 * Fri Jun 13 2014 luigiwalser <luigiwalser> 1.10.8-1.mga5 + Revision: 635978 - 1.10.8 * Wed Apr 23 2014 luigiwalser <luigiwalser> 1.10.7-1.mga5 + Revision: 617517 - 1.10.7 * Sat Mar 08 2014 luigiwalser <luigiwalser> 1.10.6-1.mga5 + Revision: 601122 - 1.10.6 * Fri Dec 20 2013 luigiwalser <luigiwalser> 1.10.5-1.mga4 + Revision: 559209 - 1.10.5 * Wed Dec 18 2013 luigiwalser <luigiwalser> 1.10.4-1.mga4 + Revision: 558488 - 1.10.4 * Tue Nov 05 2013 guillomovitch <guillomovitch> 1.10.3-1.mga4 + Revision: 549552 - new version 1.10.3 + umeabot <umeabot> - Mageia 4 Mass Rebuild * Wed Sep 11 2013 fwang <fwang> 1.10.2-1.mga4 + Revision: 477516 - update libmajor - drop deprecated flags - new version 1.10.2 * Sat Jul 27 2013 wally <wally> 1.10.1-2.mga4 + Revision: 458808 - add conflicts to ensure splitted libs are installed * Sat Jul 27 2013 wally <wally> 1.10.1-1.mga4 + Revision: 458803 - split libraries to a separate pkgs as majors differs - redo pod fix patch (P10) + luigiwalser <luigiwalser> - 1.10.1 - remove upstreamed pod patches (P9) * Sun Jun 16 2013 wally <wally> 1.10.0-1.mga4 + Revision: 443622 - build with libnl3 - new libmajor 3 - add P10 to fix documentation build (originally from upstream svn) + tv <tv> - patch9: fix documentation build error (FC) - drop signatures file - new release - compile against gtk+3 - drop patch 1 (similar change upstream) - rediff patches * Sat May 18 2013 luigiwalser <luigiwalser> 1.8.7-1.mga4 + Revision: 413518 - remove automake 1.13 patch (fixed upstream) - 1.8.7 * Thu Mar 07 2013 luigiwalser <luigiwalser> 1.8.6-1.mga3 + Revision: 401598 - 1.8.6 * Wed Jan 30 2013 luigiwalser <luigiwalser> 1.8.5-1.mga3 + Revision: 393525 - 1.8.5 * Mon Jan 14 2013 umeabot <umeabot> 1.8.4-5.mga3 + Revision: 385717 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 03 2013 cjw <cjw> 1.8.4-4.mga3 + Revision: 337904 - patch6: fix build with automake 1.13 * Wed Dec 19 2012 wally <wally> 1.8.4-3.mga3 + Revision: 332816 - add README.urpmi about capturing packets (based on README.debian) - allow non-root users capture packets only if they're members of wireshark group - create wireshark group for dumpcap * Sat Dec 01 2012 wally <wally> 1.8.4-2.mga3 + Revision: 324195 - install dumpcap setuid root as upstream suggests (to allow to start wireshark as normal user) - drop run-as-root hacks - drop .la files - clean .spec a bit * Thu Nov 29 2012 luigiwalser <luigiwalser> 1.8.4-1.mga3 + Revision: 322929 - 1.8.4 * Wed Oct 03 2012 luigiwalser <luigiwalser> 1.8.3-1.mga3 + Revision: 302296 - 1.8.3 * Thu Aug 16 2012 luigiwalser <luigiwalser> 1.8.2-1.mga3 + Revision: 281455 - 1.8.2 * Thu Aug 09 2012 luigiwalser <luigiwalser> 1.8.1-1.mga3 + Revision: 280178 - 1.8.1 (fixes CVE-2012-4048 and CVE-2012-4049) - fix library major number - add patches from mdv to fix plugin directory and building with gnutls3 * Mon Jul 09 2012 guillomovitch <guillomovitch> 1.8.0-1.mga3 + Revision: 269054 - new version - drop plugins patch: no need to change directory name - data files are not configuration files + doktor5000 <doktor5000> - new security/bugfix release 1.6.8 o Infinite and large loops in ANSI MAP, BACapp, Bluetooth HCI, IEEE 802.3, LTP, and R3 dissectors have been fixed. Discovered by Laurent Butti (http://www.wireshark.org/security/wnpa-sec-2012-08.html [CVE-2012-2392]) o The DIAMETER dissector could try to allocate memory improperly and crash (http://www.wireshark.org/security/wnpa-sec-2012-09.html [CVE-2012-2393]) o Wireshark could crash on SPARC processors due to misaligned memory. Discovered by Klaus Heckelmann (http://www.wireshark.org/security/wnpa-sec-2012-10.html [CVE-2012-2394]) o fixes 12 various other bugs (not security-related) * Mon Apr 16 2012 doktor5000 <doktor5000> 1.6.7-1.mga2 + Revision: 231110 - new version 1.6.7 o fixes a bug with Malformed Packets H263-1996 [RFC2190] (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6996) o fixes a crash when trying to open an rpcap: URL (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6922) * Wed Mar 28 2012 guillomovitch <guillomovitch> 1.6.6-1.mga2 + Revision: 227240 - new version * Wed Jan 11 2012 guillomovitch <guillomovitch> 1.6.5-1.mga2 + Revision: 194997 - new version + fwang <fwang> - new version 1.6.4 * Sat Nov 05 2011 fwang <fwang> 1.6.3-1.mga2 + Revision: 163253 - new version 1.6.3 * Fri Oct 14 2011 doktor5000 <doktor5000> 1.6.2-2.mga2 + Revision: 155240 - added improve_lua_error_messages.patch, improves error messages when calling disabled lua functions when run as root, partial fix for (mga#2352) - added skip_disabled_function_when_running_as_root.patch, skips disabled dofile function call when run as root, removes error message (mga#2352) * Fri Sep 09 2011 fwang <fwang> 1.6.2-1.mga2 + Revision: 141703 - new version 1.6.2 - rebuild forne new gnutls - new version 1.6.1 + ahmad <ahmad> - Replace libgeoip-devel with geoip-devel * Wed Jul 06 2011 dams <dams> 1.6.0-1.mga2 + Revision: 119324 - update to 1.6.0 - clean spec file * Wed Apr 27 2011 wally <wally> 1.4.6-2.mga1 + Revision: 92025 - fix desktop file names (mga#954) - drop buildroot definition * Wed Apr 20 2011 pterjan <pterjan> 1.4.6-1.mga1 + Revision: 88879 - Update to 1.4.6 + ennael <ennael> - clean spec file * Fri Mar 04 2011 pterjan <pterjan> 1.4.4-1.mga1 + Revision: 64182 - Drop plenty of old stuff - imported package wireshark