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 kerberos5 # build without Kerberos V support
8 %bcond_without snmp # build without snmp support
10 Summary: Network traffic and protocol analyzer
11 Summary(es.UTF-8): Analizador de tráfico de red
12 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych
13 Summary(pt_BR.UTF-8): Analisador de tráfego de rede
14 Summary(ru.UTF-8): Анализатор сетевого траффика
15 Summary(uk.UTF-8): Аналізатор мережевого трафіку
20 Group: Networking/Utilities
21 Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
22 # Source0-md5: d8915cf7555e2bbb699020a8736631e7
23 Patch0: %{name}-Werror.patch
24 Patch1: %{name}-gcc43.patch
25 Patch2: %{name}-ac.patch
26 Patch3: %{name}-desktop.patch
27 Patch4: %{name}-pod.patch
28 URL: http://www.wireshark.org/
29 BuildRequires: GeoIP-devel
30 BuildRequires: asciidoc
31 BuildRequires: autoconf >= 2.60
32 BuildRequires: automake >= 1:1.9
34 BuildRequires: c-ares-devel
35 BuildRequires: doxygen
37 BuildRequires: glib2-devel >= 1:2.14.0
38 BuildRequires: gnutls-devel >= 1.2.0
39 BuildRequires: gtk+2-devel >= 2:2.12.0
40 %{?with_kerberos5:BuildRequires: heimdal-devel}
41 BuildRequires: libcap-devel
42 BuildRequires: libgcrypt-devel >= 1.1.92
43 BuildRequires: libnl-devel >= 3.2
44 BuildRequires: libpcap-devel >= 2:1.0.0-4
45 BuildRequires: libsmi-devel
46 BuildRequires: libtool
47 BuildRequires: libxslt-progs
48 BuildRequires: lua52-devel
49 %{?with_snmp:BuildRequires: net-snmp-devel}
50 %{?with_kerberos5:BuildRequires: openssl-devel}
51 BuildRequires: perl-tools-pod
52 BuildRequires: pkgconfig
53 BuildRequires: portaudio-devel
54 BuildRequires: sed >= 4.0
55 BuildRequires: zlib-devel
56 Requires: %{name}-common = %{version}-%{release}
57 Requires: gtk+2 >= 2:2.12.0
58 Requires: libpcap >= 0.4
60 Provides: ethereal-gnome
62 Obsoletes: ethereal-gnome
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 Wireshark is the name for powerful graphical network sniffer, traffic
67 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
68 capture and interactively browse the contents of network frames with
69 vast knowledge of more than 100 network protocols. Wireshark has
70 severeal useful features, including a rich display filter language,
71 the ability to view the ASCII contents of a TCP connection and plug-in
74 %description -l es.UTF-8
75 Analizador de tráfico de red.
77 %description -l pl.UTF-8
78 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
79 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
80 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
81 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
82 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
83 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
86 %description -l pt_BR.UTF-8
87 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
89 %description -l ru.UTF-8
90 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
91 базируется на GTK+ и libpcap.
93 %description -l uk.UTF-8
94 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
95 базується на GTK+ та libpcap.
98 Summary: Network traffic and protocol analyzer - common files
99 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki
101 Requires: libwiretap = %{version}-%{release}
102 Provides: %{name}-tools
103 Provides: ethereal-common
104 Provides: group(wireshark)
105 Obsoletes: ethereal-common
106 Obsoletes: wireshark-tools
107 Requires(post,postun): /sbin/ldconfig
108 Requires(post,postun): /sbin/setcap
111 Wireshark is the name for powerful graphical network sniffer, traffic
112 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
113 capture and interactively browse the contents of network frames with
114 vast knowledge of more than 100 network protocols. Wireshark has
115 severeal useful features, including a rich display filter language,
116 the ability to view the ASCII contents of a TCP connection and plug-in
119 This package provides set of tools for manipulating capture files. It
121 - capinfo - prints informatio about binary capture files,
122 - dftest - shows display filter byte-code,
123 - dumpcap - dumps network traffic to a file,
124 - editcap - edit and/or translate the format of capture files,
125 - mergecap - merges two capture files into one,
126 - randpkt - generates libpcap trace file full of random packets,
127 - rawshark - dumps and analyzes raw libpcap data,
128 - text2cap - generate a capture file from an ASCII hexdump of packets.
130 %description common -l es.UTF-8
131 Analizador de tráfico de red.
133 %description common -l pl.UTF-8
134 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
135 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
136 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
137 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
138 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
139 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
142 Pakiet ten dostarcza także zestaw narzędzi do obróbki plików z
143 przechwyconymi pakietami, obejmujący:
144 - capinfo - do wyświetlania informacji o binarnych plikach zrzutu,
145 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
146 - dumpcap - do zrzucania ruchu sieciowego do pliku,
147 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
148 - mergecap - do łączenia dwóch plików w jeden,
149 - randpkt - do generowania plikow cap z losowymi danymi,
150 - rawshark - do obróbki plików cap,
151 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
154 %description common -l pt_BR.UTF-8
155 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
157 %description common -l ru.UTF-8
158 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
159 базируется на GTK+ и libpcap.
161 %description common -l uk.UTF-8
162 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
163 базується на GTK+ та libpcap.
165 %package -n twireshark
166 Summary: Text-mode network traffic and protocol analyzer
167 Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych
168 Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer)
170 Requires: %{name}-common = %{version}-%{release}
171 Requires: libpcap >= 0.4
175 %description -n twireshark
176 Twireshark is a network protocol analyzer. It lets you capture packet
177 data from a live network, or read packets from a previously saved
178 capture file, either printing a decoded form of those packets to the
179 standard output or writing the packets to a file. Twireshark's native
180 capture file format is libpcap format, which is also the format used
181 by tcpdump and various other tools.
183 %description -n twireshark -l pl.UTF-8
184 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
185 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
186 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
187 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
188 tetherala jest format libpcap, tak więc jest on kompatybilny z
189 tcpdumpem i innymi podobnymi narzędziami.
191 %description -n twireshark -l pt_BR.UTF-8
192 Esta é uma versão para modo texto do analisador de tráfego de rede
195 %package -n libwiretap
196 Summary: Packet capture and analysis library
197 Summary(pl.UTF-8): Biblioteka do przechwytywania i analizy pakietów
199 Requires: glib2 >= 1:2.14.0
200 Requires: libnl >= 3.2
202 %description -n libwiretap
203 Wiretap is a library that is being developed as a future replacement
204 for libpcap, the current standard Unix library for packet capturing.
206 %description -n libwiretap -l pl.UTF-8
207 Biblioteka Wiretap rozwijana jest jako przyszły następca biblioteki
208 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
210 %package -n libwiretap-devel
211 Summary: Header files for libwiretap packet capture library
212 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwiretap do przechwytywania pakietów
213 Group: Development/Libraries
214 Requires: glib2-devel >= 1:2.14.0
215 Requires: libnl-devel >= 3.2
216 Requires: libwiretap = %{version}-%{release}
218 %description -n libwiretap-devel
219 Header files for libwiretap packet capture library.
221 %description -n libwiretap-devel -l pl.UTF-8
222 Pliki nagłówkowe biblioteki libwiretap służącej do przechwytywania
232 find -name Makefile.am | xargs sed -i -e 's/-Werror//g'
236 %{__aclocal} -I aclocal-fallback
241 --enable-packet-editor \
243 --disable-silent-rules \
244 --disable-usr-local \
246 %if %{with kerberos5}
250 %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \
255 rm -rf $RPM_BUILD_ROOT
256 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
259 DESTDIR=$RPM_BUILD_ROOT
261 cp -p image/hi48-app-wireshark.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
262 cp -p wireshark.desktop $RPM_BUILD_ROOT%{_desktopdir}
264 cp -a wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
266 # plugins *.la are useless - *.so are loaded through gmodule
267 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
269 # no headers installed for this library
270 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
273 rm -rf $RPM_BUILD_ROOT
276 %groupadd -P %{name}-common -g 104 wireshark
280 /sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' %{_bindir}/dumpcap
285 if [ "$1" = "0" ]; then
286 %groupremove wireshark
289 %post -n libwiretap -p /sbin/ldconfig
290 %postun -n libwiretap -p /sbin/ldconfig
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_bindir}/wireshark
295 %dir %{_libdir}/%{name}
296 %dir %{_libdir}/%{name}/plugins
297 %dir %{_libdir}/%{name}/plugins/%{version}*
298 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
300 %{_desktopdir}/%{name}.desktop
301 %{_pixmapsdir}/%{name}.png
302 %{_mandir}/man1/wireshark.1*
305 %defattr(644,root,root,755)
306 %doc AUTHORS* ChangeLog NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
307 %attr(755,root,root) %{_bindir}/capinfos
308 %attr(755,root,root) %{_bindir}/dftest
309 %attr(750,root,wireshark) %{_bindir}/dumpcap
310 %attr(755,root,root) %{_bindir}/editcap
311 %attr(755,root,root) %{_bindir}/mergecap
312 %attr(755,root,root) %{_bindir}/randpkt
313 %attr(755,root,root) %{_bindir}/rawshark
314 %attr(755,root,root) %{_bindir}/reordercap
315 %attr(755,root,root) %{_bindir}/text2pcap
316 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
317 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.2
318 %{_mandir}/man1/capinfos.1*
319 %{_mandir}/man1/dftest.1*
320 %{_mandir}/man1/dumpcap.1*
321 %{_mandir}/man1/editcap.1*
322 %{_mandir}/man1/mergecap.1*
323 %{_mandir}/man1/rawshark.1*
324 %{_mandir}/man1/randpkt.1*
325 %{_mandir}/man1/reordercap.1*
326 %{_mandir}/man1/text2pcap.1*
327 %{_mandir}/man4/wireshark-filter.4*
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_bindir}/tshark
332 %{_mandir}/man1/tshark*.1*
335 %defattr(644,root,root,755)
336 %doc wiretap/{README*,AUTHORS}
337 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
338 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.3
339 %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.*
340 %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.3
342 %files -n libwiretap-devel
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libwiretap.so
345 %attr(755,root,root) %{_libdir}/libwsutil.so
346 %{_libdir}/libwiretap.la
347 %{_libdir}/libwsutil.la
348 %{_includedir}/wiretap