Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 944e5cf06e34479d8b143583d4f6c77c > files > 6

wireshark-1.12.7-1.mga5.src.rpm

%define Werror_cflags %{nil}

%define	major		5
%define wiretapmajor	4
%define wsutilmajor	4
%define filetapmajor	0
%define libname		%mklibname wireshark %{major}
%define libwiretap	%mklibname wiretap %{wiretapmajor}
%define libwsutil	%mklibname wsutil %{wsutilmajor}
%define libfiletap	%mklibname filetap %{filetapmajor}
%define libname_devel	%mklibname -d wireshark

Summary:	Network traffic analyzer
Name:		wireshark
Version:	1.12.7
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
Patch0:		wireshark_help_browser.patch
Patch4:		wireshark-plugindir.patch
Patch5:		wireshark-1.12.0-do-not-fail-on-chgrp-chmod.patch
# https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10442
Patch6:		wireshark-1.12.0-mga-i18n-desktop.patch
Requires:	%{name}-common = %{version}-%{release}
BuildRequires:	doxygen
BuildRequires:	glib2-devel
BuildRequires:	gtk+3-devel
BuildRequires:	pkgconfig(Qt5PrintSupport)
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

%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	common
Summary:	Network traffic analyzer
Group:		Monitoring
Requires:	dumpcap
Requires:	xdg-utils
Conflicts:	%{name} < 1.12.6-2

%description	common
Wireshark is a network traffic analyzer for Unix-ish operating systems.
This package contains files needed by the Wireshark Graphical User Interface.

%package	gtk
Summary:	Network traffic analyzer
Group:		Monitoring
Requires:	%{name}-common = %{version}-%{release}

%description	gtk
Wireshark is a network traffic analyzer for Unix-ish operating systems. It is
based on GTK+, 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	%{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	%{libfiletap}
Summary:	Packet-capture library for %{name}
Group:		System/Libraries

%description -n	%{libfiletap}
The filetap library is a packet-capture library currently under development
parallel to wireshark.

Filetap is used in wireshark for its ability to read multiple file types.

%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:	%{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
%patch0 -p0
%patch4 -p0 -b .plugindir
%patch5 -p1
%patch6 -p1

# README.urpmi
install -Dm644 %{SOURCE10} .

%build
autoreconf -fi
export PATH=$PATH:%{_libdir}/qt5/bin
%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-dumpcap-group=wireshark \
    --with-gnutls=yes \
    --with-gcrypt=yes \
    --with-geoip=yes \
    --with-krb5 \
    --with-adns=no \
    --with-gtk3=yes \
    --with-qt=yes \
    --with-libnl3 \
    --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
%makeinstall_std

# link to main executable
mv %{buildroot}%{_bindir}/wireshark %{buildroot}%{_bindir}/wireshark-gtk
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/
sed -e 's/Qt/GTK/' -e 's/Wireshark/Wireshark-GTK/' \
    -e 's/Exec=wireshark/Exec=wireshark-gtk/' \
    %{name}.desktop > %{buildroot}%{_datadir}/applications/%{name}-gtk.desktop

# 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

%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
%{_bindir}/%{name}
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}.desktop

%files common
%doc README.urpmi
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_datadir}/%{name}
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_mandir}/man1/%{name}.1*
%{_mandir}/man4/%{name}-filter.4*

%files gtk
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop

%files tools
%{_bindir}/capinfos
%{_bindir}/captype
%{_bindir}/dftest
%{_bindir}/editcap
%{_bindir}/mergecap
%{_bindir}/randpkt
%{_bindir}/reordercap
%{_bindir}/text2pcap
%{_mandir}/man1/capinfo*
%{_mandir}/man1/dftest*
%{_mandir}/man1/editcap*
%{_mandir}/man1/mergecap*
%{_mandir}/man1/randpkt*
%{_mandir}/man1/reordercap*
%{_mandir}/man1/text2pcap*

%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 %{libwsutil}
%{_libdir}/libwsutil.so.%{wsutilmajor}*

%files -n %{libfiletap}
%{_libdir}/libfiletap.so.%{filetapmajor}*

%files -n %{libname_devel}
%doc ChangeLog
%{_includedir}/wireshark
%{_libdir}/libwireshark.so
%{_libdir}/libwiretap.so
%{_libdir}/libwsutil.so
%{_libdir}/libfiletap.so


%changelog
* Wed Aug 12 2015 luigiwalser <luigiwalser> 1.12.7-1.mga5
+ Revision: 864134
- 1.12.7
- add gtk+3 build in wireshark-gtk subpackage
- 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