3 # - use policykit to gain root
4 # - use %caps when rpm supports it: %attr(750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_sbindir}/dumpcap
7 %bcond_without gtk3 # build without GTK+3 support
8 %bcond_without kerberos5 # build without Kerberos V support
9 %bcond_without snmp # build without snmp support
10 %bcond_without qt # build without Qt support
12 Summary: Network traffic and protocol analyzer
13 Summary(es.UTF-8): Analizador de tráfico de red
14 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych
15 Summary(pt_BR.UTF-8): Analisador de tráfego de rede
16 Summary(ru.UTF-8): Анализатор сетевого траффика
17 Summary(uk.UTF-8): Аналізатор мережевого трафіку
22 Group: Networking/Utilities
23 Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
24 # Source0-md5: acfa156fd35cb66c867b1ace992e4b5b
25 Patch0: %{name}-Werror.patch
26 Patch1: %{name}-gcc43.patch
27 Patch2: %{name}-ac.patch
28 Patch3: %{name}-desktop.patch
29 URL: http://www.wireshark.org/
30 BuildRequires: GeoIP-devel
31 BuildRequires: asciidoc
32 BuildRequires: autoconf >= 2.60
33 BuildRequires: automake >= 1:1.9
35 BuildRequires: c-ares-devel
36 BuildRequires: doxygen
38 BuildRequires: glib2-devel >= 1:2.14.0
39 BuildRequires: gnutls-devel >= 1.2.0
40 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.12.0}
41 %{?with_gtk3:BuildRequires: gtk+3-devel}
42 %{?with_kerberos5:BuildRequires: heimdal-devel}
43 BuildRequires: libcap-devel
44 BuildRequires: libgcrypt-devel >= 1.1.92
45 BuildRequires: libnl-devel >= 3.2
46 BuildRequires: libpcap-devel >= 2:1.0.0-4
47 BuildRequires: libsmi-devel
48 BuildRequires: libtool
49 BuildRequires: libxslt-progs
50 BuildRequires: lua52-devel
51 %{?with_snmp:BuildRequires: net-snmp-devel}
52 %{?with_kerberos5:BuildRequires: openssl-devel}
53 BuildRequires: perl-tools-pod
54 BuildRequires: pkgconfig
55 BuildRequires: portaudio-devel
57 BuildRequires: QtCore-devel >= 4.6.0
58 BuildRequires: qt4-build
60 BuildRequires: sed >= 4.0
61 BuildRequires: zlib-devel
62 Requires: %{name}-common = %{version}-%{release}
63 Requires: gtk+2 >= 2:2.12.0
64 Requires: libpcap >= 0.4
66 Provides: ethereal-gnome
68 Obsoletes: ethereal-gnome
69 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 Wireshark is the name for powerful graphical network sniffer, traffic
73 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
74 capture and interactively browse the contents of network frames with
75 vast knowledge of more than 100 network protocols. Wireshark has
76 severeal useful features, including a rich display filter language,
77 the ability to view the ASCII contents of a TCP connection and plug-in
80 %description -l es.UTF-8
81 Analizador de tráfico de red.
83 %description -l pl.UTF-8
84 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
85 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
86 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
87 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
88 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
89 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
92 %description -l pt_BR.UTF-8
93 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
95 %description -l ru.UTF-8
96 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
97 базируется на GTK+ и libpcap.
99 %description -l uk.UTF-8
100 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
101 базується на GTK+ та libpcap.
104 Summary: Network traffic and protocol analyzer - common files
105 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki
107 Requires: libwiretap = %{version}-%{release}
108 Provides: %{name}-tools
109 Provides: ethereal-common
110 Provides: group(wireshark)
111 Obsoletes: ethereal-common
112 Obsoletes: wireshark-tools
113 Requires(post,postun): /sbin/ldconfig
114 Requires(post,postun): /sbin/setcap
117 Wireshark is the name for powerful graphical network sniffer, traffic
118 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
119 capture and interactively browse the contents of network frames with
120 vast knowledge of more than 100 network protocols. Wireshark has
121 severeal useful features, including a rich display filter language,
122 the ability to view the ASCII contents of a TCP connection and plug-in
125 This package provides set of tools for manipulating capture files. It
127 - capinfos - prints informatio about binary capture files,
128 - captype - prints the file types of capture files,
129 - dftest - shows display filter byte-code,
130 - dumpcap - dumps network traffic to a file,
131 - editcap - edit and/or translate the format of capture files,
132 - mergecap - merges two capture files into one,
133 - randpkt - generates libpcap trace file full of random packets,
134 - rawshark - dumps and analyzes raw libpcap data,
135 - text2cap - generate a capture file from an ASCII hexdump of packets.
137 %description common -l es.UTF-8
138 Analizador de tráfico de red.
140 %description common -l pl.UTF-8
141 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
142 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
143 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
144 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
145 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
146 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
149 Pakiet ten dostarcza także zestaw narzędzi do obróbki plików z
150 przechwyconymi pakietami, obejmujący:
151 - capinfos - do wyświetlania informacji o binarnych plikach zrzutu,
152 - captype - do wyświetlania rodzaju plików zrzutu,
153 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
154 - dumpcap - do zrzucania ruchu sieciowego do pliku,
155 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
156 - mergecap - do łączenia dwóch plików w jeden,
157 - randpkt - do generowania plikow cap z losowymi danymi,
158 - rawshark - do obróbki plików cap,
159 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
162 %description common -l pt_BR.UTF-8
163 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
165 %description common -l ru.UTF-8
166 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
167 базируется на GTK+ и libpcap.
169 %description common -l uk.UTF-8
170 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
171 базується на GTK+ та libpcap.
174 Summary: Qt-based network traffic and protocol analyzer
175 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych oparty na Qt
179 An initial port to Qt (aka QtShark).
181 %description qt -l pl.UTF-8
182 Wstępna wersja analizatora wireshark oparta na Qt (znana też pod
185 %package -n twireshark
186 Summary: Text-mode network traffic and protocol analyzer
187 Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych
188 Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer)
190 Requires: %{name}-common = %{version}-%{release}
191 Requires: libpcap >= 0.4
195 %description -n twireshark
196 Twireshark is a network protocol analyzer. It lets you capture packet
197 data from a live network, or read packets from a previously saved
198 capture file, either printing a decoded form of those packets to the
199 standard output or writing the packets to a file. Twireshark's native
200 capture file format is libpcap format, which is also the format used
201 by tcpdump and various other tools.
203 %description -n twireshark -l pl.UTF-8
204 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
205 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
206 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
207 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
208 tetherala jest format libpcap, tak więc jest on kompatybilny z
209 tcpdumpem i innymi podobnymi narzędziami.
211 %description -n twireshark -l pt_BR.UTF-8
212 Esta é uma versão para modo texto do analisador de tráfego de rede
215 %package -n libwiretap
216 Summary: Packet capture and analysis library
217 Summary(pl.UTF-8): Biblioteka do przechwytywania i analizy pakietów
219 Requires: glib2 >= 1:2.22.0
220 Requires: libnl >= 3.2
222 %description -n libwiretap
223 Wiretap is a library that is being developed as a future replacement
224 for libpcap, the current standard Unix library for packet capturing.
226 %description -n libwiretap -l pl.UTF-8
227 Biblioteka Wiretap rozwijana jest jako przyszły następca biblioteki
228 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
230 %package -n libwiretap-devel
231 Summary: Header files for libwiretap packet capture library
232 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwiretap do przechwytywania pakietów
233 Group: Development/Libraries
234 Requires: glib2-devel >= 1:2.14.0
235 Requires: libnl-devel >= 3.2
236 Requires: libwiretap = %{version}-%{release}
238 %description -n libwiretap-devel
239 Header files for libwiretap packet capture library.
241 %description -n libwiretap-devel -l pl.UTF-8
242 Pliki nagłówkowe biblioteki libwiretap służącej do przechwytywania
251 find -name Makefile.am | xargs sed -i -e 's/-Werror//g'
255 %{__aclocal} -I aclocal-fallback
260 --enable-packet-editor \
262 --disable-silent-rules \
263 --disable-usr-local \
264 %{?with_gtk3:--with-gtk3 --without-gtk2}%{!?with_gtk3:--with-gtk2 --without-gtk3} \
265 %{?with_qt:--with-qt}%{!?with_qt:--without-qt} \
267 %if %{with kerberos5}
271 %{!?with_snmp:--without-net-snmp --without-ucdsnmp}
276 rm -rf $RPM_BUILD_ROOT
277 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
280 DESTDIR=$RPM_BUILD_ROOT
282 cp -p image/hi48-app-wireshark.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
283 cp -p wireshark.desktop $RPM_BUILD_ROOT%{_desktopdir}
285 cp -a wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
287 # plugins *.la are useless - *.so are loaded through gmodule
288 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
290 # no headers installed for this library
291 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
294 rm -rf $RPM_BUILD_ROOT
297 %groupadd -P %{name}-common -g 104 wireshark
301 /sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' %{_bindir}/dumpcap
306 if [ "$1" = "0" ]; then
307 %groupremove wireshark
310 %post -n libwiretap -p /sbin/ldconfig
311 %postun -n libwiretap -p /sbin/ldconfig
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_bindir}/wireshark
316 %dir %{_libdir}/%{name}
317 %dir %{_libdir}/%{name}/plugins
318 %dir %{_libdir}/%{name}/plugins/%{version}*
319 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
321 %{_desktopdir}/%{name}.desktop
322 %{_pixmapsdir}/%{name}.png
323 %{_mandir}/man1/wireshark.1*
326 %defattr(644,root,root,755)
327 %doc AUTHORS* ChangeLog NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
328 %attr(755,root,root) %{_bindir}/capinfos
329 %attr(755,root,root) %{_bindir}/captype
330 %attr(755,root,root) %{_bindir}/dftest
331 %attr(750,root,wireshark) %{_bindir}/dumpcap
332 %attr(755,root,root) %{_bindir}/editcap
333 %attr(755,root,root) %{_bindir}/mergecap
334 %attr(755,root,root) %{_bindir}/randpkt
335 %attr(755,root,root) %{_bindir}/rawshark
336 %attr(755,root,root) %{_bindir}/reordercap
337 %attr(755,root,root) %{_bindir}/text2pcap
338 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
339 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.5
340 %{_mandir}/man1/capinfos.1*
341 %{_mandir}/man1/dftest.1*
342 %{_mandir}/man1/dumpcap.1*
343 %{_mandir}/man1/editcap.1*
344 %{_mandir}/man1/mergecap.1*
345 %{_mandir}/man1/rawshark.1*
346 %{_mandir}/man1/randpkt.1*
347 %{_mandir}/man1/reordercap.1*
348 %{_mandir}/man1/text2pcap.1*
349 %{_mandir}/man4/wireshark-filter.4*
353 %attr(755,root,root) %{_bindir}/wireshark-qt
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_bindir}/tshark
359 %{_mandir}/man1/tshark*.1*
362 %defattr(644,root,root,755)
363 %doc wiretap/{README*,AUTHORS}
364 %attr(755,root,root) %{_libdir}/libfiletap.so.*.*.*
365 %attr(755,root,root) %ghost %{_libdir}/libfiletap.so.0
366 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
367 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.4
368 %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.*
369 %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.4
371 %files -n libwiretap-devel
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/libfiletap.so
374 %attr(755,root,root) %{_libdir}/libwiretap.so
375 %attr(755,root,root) %{_libdir}/libwsutil.so
376 %{_libdir}/libfiletap.la
377 %{_libdir}/libwiretap.la
378 %{_libdir}/libwsutil.la
379 %{_includedir}/wiretap