2 # - use policykit to gain root
3 # - use %caps when rpm supports it: %attr(750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_sbindir}/dumpcap
6 %bcond_without kerberos5 # Kerberos V support
7 %bcond_without snmp # SNMP support
8 %bcond_without gui # without QT GUI
10 %define branch_ver 3.4
11 Summary: Network traffic and protocol analyzer
12 Summary(es.UTF-8): Analizador de tráfico de red
13 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych
14 Summary(pt_BR.UTF-8): Analisador de tráfego de rede
15 Summary(ru.UTF-8): Анализатор сетевого траффика
16 Summary(uk.UTF-8): Аналізатор мережевого трафіку
21 Group: Networking/Utilities
22 Source0: https://www.wireshark.org/download/src/%{name}-%{version}.tar.xz
23 # Source0-md5: b97e9d97fc8d77f514d5b92a2cf045f1
24 URL: https://www.wireshark.org/
25 BuildRequires: bcg729-devel
27 BuildRequires: cmake >= 3.5
28 BuildRequires: c-ares-devel >= 1.5.0
29 BuildRequires: doxygen
31 BuildRequires: gcc >= 5:3.2
32 BuildRequires: gettext-tools
33 BuildRequires: glib2-devel >= 1:2.32
34 BuildRequires: gnutls-devel >= 3.2.0
35 %{?with_kerberos5:BuildRequires: heimdal-devel}
36 BuildRequires: libbrotli-devel
37 BuildRequires: libcap-devel
38 BuildRequires: libgcrypt-devel >= 1.4.2
39 BuildRequires: libmaxminddb-devel
40 BuildRequires: libnl-devel >= 3.2
41 BuildRequires: libpcap-devel >= 2:1.0.0-4
42 BuildRequires: libssh-devel >= 0.6.0
43 BuildRequires: libsmi-devel
44 BuildRequires: libstdc++-devel >= 6:4.7
45 BuildRequires: libtool >= 2:2.2.2
46 BuildRequires: libxml2-devel >= 2.0
47 BuildRequires: libxslt-progs
48 BuildRequires: lua52-devel
49 BuildRequires: lz4-devel
50 BuildRequires: minizip-devel
51 %{?with_snmp:BuildRequires: net-snmp-devel}
52 BuildRequires: nghttp2-devel
53 BuildRequires: perl-tools-pod
54 BuildRequires: pkgconfig >= 1:0.7
55 BuildRequires: python3 >= 1:3.4
56 BuildRequires: rpmbuild(macros) >= 1.527
57 BuildRequires: ruby-asciidoctor >= 1.5
58 %{?with_gui:BuildRequires: sbc-devel >= 1.0}
59 BuildRequires: sed >= 4.0
60 %{?with_gui:BuildRequires: speexdsp-devel}
61 BuildRequires: snappy-devel
62 BuildRequires: spandsp-devel
63 BuildRequires: systemd-devel
64 BuildRequires: tar >= 1:1.22
67 BuildRequires: zstd-devel >= 1.0.0
68 BuildRequires: zlib-devel
70 BuildRequires: Qt5Core-devel >= 5.2
71 BuildRequires: Qt5Multimedia-devel >= 5.2
72 BuildRequires: Qt5PrintSupport-devel >= 5.2
73 BuildRequires: Qt5Svg-devel >= 5.2
74 BuildRequires: Qt5Widgets-devel >= 5.2
75 BuildRequires: libstdc++-devel >= 6:5
76 BuildRequires: qt5-build >= 5.2
77 BuildRequires: qt5-linguist >= 5.2
79 Requires(post,postun): gtk-update-icon-cache
80 Requires(post,postun): shared-mime-info
81 Requires: gdk-pixbuf2 >= 2.26
82 Requires: hicolor-icon-theme
85 Provides: ethereal-gnome
87 Obsoletes: ethereal-gnome
88 Obsoletes: wireshark-gui-common
89 Obsoletes: wireshark-qt
90 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
93 Wireshark is the name for powerful graphical network sniffer, traffic
94 and protocol analyzer based on QT and libpcap libraries. It lets you
95 capture and interactively browse the contents of network frames with
96 vast knowledge of more than 100 network protocols. Wireshark has
97 severeal useful features, including a rich display filter language,
98 the ability to view the ASCII contents of a TCP connection and plug-in
101 %description -l es.UTF-8
102 Analizador de tráfico de red.
104 %description -l pl.UTF-8
105 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
106 protokołów sieciowych opartym na bibliotekach QT oraz libpcap.
107 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
108 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
109 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
110 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
113 %description -l pt_BR.UTF-8
114 O Wireshark é um analisador de protocolo de rede baseado no QT.
116 %description -l ru.UTF-8
117 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
118 базируется на QT и libpcap.
120 %description -l uk.UTF-8
121 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
122 базується на QT та libpcap.
125 Summary: Network traffic and protocol analyzer - common files
126 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki
128 Requires(post,postun): /sbin/setcap
129 Requires: %{name}-libs = %{version}-%{release}
130 Requires: gnutls >= 3.1.10
131 Requires: libpcap >= 0.4
132 Requires: libssh >= 0.6.0
133 Provides: ethereal-common
134 Provides: group(wireshark)
135 Provides: wireshark-tools
136 Obsoletes: ethereal-common
137 Obsoletes: wireshark-tools
140 Wireshark is the name for powerful graphical network sniffer, traffic
141 and protocol analyzer based on QT and libpcap libraries. It lets you
142 capture and interactively browse the contents of network frames with
143 vast knowledge of more than 100 network protocols. Wireshark has
144 severeal useful features, including a rich display filter language,
145 the ability to view the ASCII contents of a TCP connection and plug-in
148 This package provides the shared library, plugins, data and a set of
149 tools for manipulating capture files. It contains:
150 - capinfos - prints informatio about binary capture files,
151 - captype - prints the file types of capture files,
152 - dftest - shows display filter byte-code,
153 - dumpcap - dumps network traffic to a file,
154 - editcap - edit and/or translate the format of capture files,
155 - mergecap - merges two capture files into one,
156 - randpkt - generates libpcap trace file full of random packets,
157 - rawshark - dumps and analyzes raw libpcap data,
158 - text2cap - generate a capture file from an ASCII hexdump of packets.
160 %description common -l es.UTF-8
161 Analizador de tráfico de red.
163 %description common -l pl.UTF-8
164 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
165 protokołów sieciowych opartym na bibliotekach QT oraz libpcap.
166 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
167 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
168 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
169 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
172 Ten pakiet ten zawiera bibliotekę współdzieloną, wtyczki, dane oraz
173 zestaw narzędzi do obróbki plików z przechwyconymi pakietami,
175 - capinfos - do wyświetlania informacji o binarnych plikach zrzutu,
176 - captype - do wyświetlania rodzaju plików zrzutu,
177 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
178 - dumpcap - do zrzucania ruchu sieciowego do pliku,
179 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
180 - mergecap - do łączenia dwóch plików w jeden,
181 - randpkt - do generowania plikow cap z losowymi danymi,
182 - rawshark - do obróbki plików cap,
183 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
186 %description common -l pt_BR.UTF-8
187 O Wireshark é um analisador de protocolo de rede baseado no QT.
189 %description common -l ru.UTF-8
190 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
191 базируется на QT и libpcap.
193 %description common -l uk.UTF-8
194 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
195 базується на QT та libpcap.
197 %package -n twireshark
198 Summary: Text-mode network traffic and protocol analyzer
199 Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych
200 Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer)
202 Requires: %{name}-common = %{version}-%{release}
203 Requires: libpcap >= 0.4
207 %description -n twireshark
208 Twireshark is a network protocol analyzer. It lets you capture packet
209 data from a live network, or read packets from a previously saved
210 capture file, either printing a decoded form of those packets to the
211 standard output or writing the packets to a file. Twireshark's native
212 capture file format is libpcap format, which is also the format used
213 by tcpdump and various other tools.
215 %description -n twireshark -l pl.UTF-8
216 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
217 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
218 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
219 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
220 tetherala jest format libpcap, tak więc jest on kompatybilny z
221 tcpdumpem i innymi podobnymi narzędziami.
223 %description -n twireshark -l pt_BR.UTF-8
224 Esta é uma versão para modo texto do analisador de tráfego de rede
228 Summary: Wireshark packet capture and dissection libraries
229 Summary(pl.UTF-8): Biblioteki Wiresharka do przechwytywania i sekcji pakietów
231 Requires: glib2 >= 1:2.32
232 Requires: libgcrypt >= 1.4.2
233 Requires: libnl >= 3.2
234 Obsoletes: libwiretap < 2.4.0
237 Wireshark packet capture and dissection libraries.
239 %description libs -l pl.UTF-8
240 Biblioteki Wiresharka do przechwytywania i sekcji pakietów.
243 Summary: Header files for Wireshark libraries
244 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wiresharka
245 Group: Development/Libraries
246 Requires: %{name}-libs = %{version}-%{release}
247 Requires: glib2-devel >= 1:2.32
248 Requires: libgcrypt-devel >= 1.4.2
249 Requires: libnl-devel >= 3.2
250 Obsoletes: libwiretap-devel < 2.4.0
253 Header files for Wireshark libraries.
255 %description devel -l pl.UTF-8
256 Pliki nagłówkowe bibliotek Wiresharka.
265 -DBUILD_androiddump=ON \
266 -DBUILD_corbaidl2wrs=ON \
267 -DBUILD_dcerpcidl2wrs=ON \
268 -DBUILD_mmdbresolve=ON \
269 -DBUILD_randpktdump=ON \
270 -DBUILD_tfshark=OFF \
271 -DBUILD_wireshark=ON \
272 -DCMAKE_INSTALL_DATADIR:PATH=share/wireshark \
273 -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
274 -DDISABLE_WERROR=ON \
276 -DENABLE_NETLINK=ON \
277 -DENABLE_PLUGINS=ON \
278 -DENABLE_PORTAUDIO=ON \
285 rm -rf $RPM_BUILD_ROOT
287 %{__make} -C build install \
288 DESTDIR=$RPM_BUILD_ROOT
290 # used by installed headers, but not installed by cmake
291 cp -p build/config.h $RPM_BUILD_ROOT%{_includedir}/wireshark
293 %{__rm} $RPM_BUILD_ROOT%{_docdir}/*.html
296 rm -rf $RPM_BUILD_ROOT
299 %update_icon_cache hicolor
300 %update_mime_database
303 %update_icon_cache hicolor
304 %update_mime_database
307 %groupadd -P %{name}-common -g 104 wireshark
310 /sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' %{_bindir}/dumpcap
314 if [ "$1" = "0" ]; then
315 %groupremove wireshark
318 %post libs -p /sbin/ldconfig
319 %postun libs -p /sbin/ldconfig
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/wireshark
325 %{_desktopdir}/wireshark.desktop
327 %{_datadir}/appdata/wireshark.appdata.xml
328 %{_datadir}/mime/packages/wireshark.xml
329 %{_iconsdir}/hicolor/16x16/apps/%{name}.png
330 %{_iconsdir}/hicolor/16x16/mimetypes/application-%{name}-doc.png
331 %{_iconsdir}/hicolor/24x24/apps/%{name}.png
332 %{_iconsdir}/hicolor/24x24/mimetypes/application-%{name}-doc.png
333 %{_iconsdir}/hicolor/32x32/apps/%{name}.png
334 %{_iconsdir}/hicolor/32x32/mimetypes/application-%{name}-doc.png
335 %{_iconsdir}/hicolor/48x48/apps/%{name}.png
336 %{_iconsdir}/hicolor/48x48/mimetypes/application-%{name}-doc.png
337 %{_iconsdir}/hicolor/64x64/apps/%{name}.png
338 %{_iconsdir}/hicolor/64x64/mimetypes/application-%{name}-doc.png
339 %{_iconsdir}/hicolor/128x128/apps/%{name}.png
340 %{_iconsdir}/hicolor/128x128/mimetypes/application-%{name}-doc.png
341 %{_iconsdir}/hicolor/256x256/apps/%{name}.png
342 %{_iconsdir}/hicolor/256x256/mimetypes/application-%{name}-doc.png
343 %{_iconsdir}/hicolor/scalable/apps/%{name}.svg
344 %{_mandir}/man1/wireshark.1*
348 %defattr(644,root,root,755)
349 %doc AUTHORS* ChangeLog NEWS README.md README.linux doc/README.*
350 %dir %{_libdir}/%{name}/extcap
351 %dir %{_libdir}/%{name}/plugins
352 %dir %{_libdir}/%{name}/plugins/%{branch_ver}
353 %dir %{_libdir}/%{name}/plugins/%{branch_ver}/codecs
354 %dir %{_libdir}/%{name}/plugins/%{branch_ver}/epan
355 %dir %{_libdir}/%{name}/plugins/%{branch_ver}/wiretap
356 %attr(755,root,root) %{_libdir}/%{name}/extcap/androiddump
357 %attr(755,root,root) %{_libdir}/%{name}/extcap/ciscodump
358 %attr(755,root,root) %{_libdir}/%{name}/extcap/dpauxmon
359 %attr(755,root,root) %{_libdir}/%{name}/extcap/randpktdump
360 %attr(755,root,root) %{_libdir}/%{name}/extcap/sshdump
361 %attr(755,root,root) %{_libdir}/%{name}/extcap/sdjournal
362 %attr(755,root,root) %{_libdir}/%{name}/extcap/udpdump
363 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{branch_ver}/codecs/*.so
364 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{branch_ver}/epan/*.so
365 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{branch_ver}/wiretap/*.so
366 %attr(755,root,root) %{_bindir}/capinfos
367 %attr(755,root,root) %{_bindir}/captype
368 %attr(750,root,wireshark) %{_bindir}/dumpcap
369 %attr(755,root,root) %{_bindir}/editcap
370 %attr(755,root,root) %{_bindir}/idl2wrs
371 %attr(755,root,root) %{_bindir}/mergecap
372 %attr(755,root,root) %{_bindir}/mmdbresolve
373 %attr(755,root,root) %{_bindir}/randpkt
374 %attr(755,root,root) %{_bindir}/rawshark
375 %attr(755,root,root) %{_bindir}/reordercap
376 %attr(755,root,root) %{_bindir}/sharkd
377 %attr(755,root,root) %{_bindir}/text2pcap
378 %{_mandir}/man1/androiddump.1*
379 %{_mandir}/man1/capinfos.1*
380 %{_mandir}/man1/captype.1*
381 %{_mandir}/man1/ciscodump.1*
382 %{_mandir}/man1/dftest.1*
383 %{_mandir}/man1/dpauxmon.1*
384 %{_mandir}/man1/dumpcap.1*
385 %{_mandir}/man1/editcap.1*
386 %{_mandir}/man1/idl2wrs.1*
387 %{_mandir}/man1/mergecap.1*
388 %{_mandir}/man1/mmdbresolve.1*
389 %{_mandir}/man1/rawshark.1*
390 %{_mandir}/man1/randpkt.1*
391 %{_mandir}/man1/randpktdump.1*
392 %{_mandir}/man1/reordercap.1*
393 %{_mandir}/man1/sdjournal.1*
394 %{_mandir}/man1/sshdump.1*
395 %{_mandir}/man1/text2pcap.1*
396 %{_mandir}/man1/udpdump.1*
397 %{_mandir}/man4/extcap.4*
398 %{_mandir}/man4/wireshark-filter.4*
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/tshark
403 %{_mandir}/man1/tshark*.1*
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
408 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.14
409 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
410 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.11
411 %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.*
412 %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.12
413 %dir %{_libdir}/%{name}
416 %defattr(644,root,root,755)
417 %doc wiretap/{README,README.airmagnet}
418 %attr(755,root,root) %{_libdir}/libwireshark.so
419 %attr(755,root,root) %{_libdir}/libwiretap.so
420 %attr(755,root,root) %{_libdir}/libwsutil.so
421 %{_includedir}/wireshark
422 %{_pkgconfigdir}/wireshark.pc
423 %{_libdir}/%{name}/cmake