3 %bcond_without kerberos5 # build without Kerberos V support
4 %bcond_without snmp # build without snmp support
6 Summary: Network traffic and protocol analyzer
7 Summary(es.UTF-8): Analizador de tráfico de red
8 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych
9 Summary(pt_BR.UTF-8): Analisador de tráfego de rede
10 Summary(ru.UTF-8): Анализатор сетевого траффика
11 Summary(uk.UTF-8): Аналізатор мережевого трафіку
17 Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
18 # Source0-md5: bb5c09b8cffd461ced4d3251fddb217b
19 Source1: %{name}.desktop
20 Source2: %{name}.su-start-script
21 Patch0: %{name}-0.99.5-hip-base05.patch
22 Patch1: %{name}-as_needed.patch
23 Patch2: %{name}-Werror.patch
24 Patch3: %{name}-gcc43.patch
25 Patch4: %{name}-ac.patch
26 URL: http://www.wireshark.org/
27 BuildRequires: adns-devel
28 BuildRequires: autoconf >= 2.52
29 BuildRequires: automake
30 BuildRequires: elfutils-devel
32 BuildRequires: gnutls-devel >= 1.0.0
33 BuildRequires: gtk+2-devel >= 1:2.0.0
34 %{?with_kerberos5:BuildRequires: heimdal-devel}
35 BuildRequires: libcap-devel
36 BuildRequires: libgcrypt-devel >= 1.1.42
37 BuildRequires: libpcap-devel >= 2:1.0.0-4
38 BuildRequires: libsmi-devel
39 BuildRequires: libtool
40 BuildRequires: libxslt-progs
41 BuildRequires: lua51-devel
42 %{?with_snmp:BuildRequires: net-snmp-devel}
43 BuildRequires: pcre-devel
44 BuildRequires: perl-devel
45 BuildRequires: pkgconfig
46 BuildRequires: portaudio-devel
47 BuildRequires: zlib-devel
48 Requires: %{name}-common = %{version}-%{release}
49 Requires: libpcap >= 0.4
52 Provides: ethereal-gnome
54 Obsoletes: ethereal-gnome
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 Wireshark is the name for powerful graphical network sniffer, traffic
59 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
60 capture and interactively browse the contents of network frames with
61 vast knowledge of more than 100 network protocols. Wireshark has
62 severeal useful features, including a rich display filter language,
63 the ability to view the ASCII contents of a TCP connection and plug-in
66 %description -l es.UTF-8
67 Analizador de tráfico de red.
69 %description -l pl.UTF-8
70 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
71 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
72 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
73 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
74 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
75 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
78 %description -l pt_BR.UTF-8
79 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
81 %description -l ru.UTF-8
82 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
83 базируется на GTK+ и libpcap.
85 %description -l uk.UTF-8
86 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
87 базується на GTK+ та libpcap.
90 Summary: Network traffic and protocol analyzer - common files
91 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki
93 Requires: libwiretap = %{version}-%{release}
94 Provides: %{name}-tools
95 Provides: ethereal-common
96 Obsoletes: ethereal-common
97 Obsoletes: wireshark-tools
100 Wireshark is the name for powerful graphical network sniffer, traffic
101 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
102 capture and interactively browse the contents of network frames with
103 vast knowledge of more than 100 network protocols. Wireshark has
104 severeal useful features, including a rich display filter language,
105 the ability to view the ASCII contents of a TCP connection and plug-in
108 This package provides set of tools for manipulating capture files. It
110 - capinfo - prints informatio about binary capture files,
111 - dftest - shows display filter byte-code,
112 - editcap - edit and/or translate the format of capture files,
113 - idl2eth - corba IDL to Wireshark Plugin Generator,
114 - mergecap - merges two capture files into one,
115 - text2cap - generate a capture file from an ASCII hexdump of packets.
117 %description common -l es.UTF-8
118 Analizador de tráfico de red.
120 %description common -l pl.UTF-8
121 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
122 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
123 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
124 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
125 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
126 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
129 Pakiet ten dostarcza także zestaw narzędzi do obróbki plików z
130 przechwyconymi pakietami, obejmujący:
131 - capinfo - do wyświetlania informacji o binarnych plikach zrzutu,
132 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
133 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
134 - idl2eth - do konwersji Corba IDL do wtyczek Wireshark,
135 - mergecap - do łączenia dwóch plików w jeden,
136 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
139 %description common -l pt_BR.UTF-8
140 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
142 %description common -l ru.UTF-8
143 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
144 базируется на GTK+ и libpcap.
146 %description common -l uk.UTF-8
147 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
148 базується на GTK+ та libpcap.
150 %package -n twireshark
151 Summary: Text-mode network traffic and protocol analyzer
152 Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych
153 Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer)
155 Requires: %{name}-common = %{version}-%{release}
156 Requires: libpcap >= 0.4
160 %description -n twireshark
161 Twireshark is a network protocol analyzer. It lets you capture packet
162 data from a live network, or read packets from a previously saved
163 capture file, either printing a decoded form of those packets to the
164 standard output or writing the packets to a file. Twireshark's native
165 capture file format is libpcap format, which is also the format used
166 by tcpdump and various other tools.
168 %description -n twireshark -l pl.UTF-8
169 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
170 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
171 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
172 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
173 tetherala jest format libpcap, tak więc jest on kompatybilny z
174 tcpdumpem i innymi podobnymi narzędziami.
176 %description -n twireshark -l pt_BR.UTF-8
177 Esta é uma versão para modo texto do analisador de tráfego de rede
180 %package -n libwiretap
181 Summary: Packet capture and analysis library
182 Summary(pl.UTF-8): Biblioteka do przechwytywania i analizy pakietów
185 %description -n libwiretap
186 Wiretap is a library that is being developed as a future replacement
187 for libpcap, the current standard Unix library for packet capturing.
189 %description -n libwiretap -l pl.UTF-8
190 Biblioteka Wiretap rozwijana jest jako przyszły następca biblioteki
191 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
193 %package -n libwiretap-devel
194 Summary: Header files for libwiretap packet capture library
195 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwiretap do przechwytywania pakietów
196 Group: Development/Libraries
197 Requires: libwiretap = %{version}-%{release}
198 Requires: gtk+2-devel >= 2.0.0
200 %description -n libwiretap-devel
201 Header files for libwiretap packet capture library.
203 %description -n libwiretap-devel -l pl.UTF-8
204 Pliki nagłówkowe biblioteki libwiretap służącej do przechwytywania
214 perl -pi -e 's/lua5\.1/lua51/g' acinclude.m4
215 find -name Makefile.am | xargs perl -pi -e 's/-Werror//g'
219 %{__aclocal} -I aclocal-fallback
226 %if %{with kerberos5}
230 %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \
232 --with-plugindir=%{_libdir}/%{name}
237 rm -rf $RPM_BUILD_ROOT
238 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
241 DESTDIR=$RPM_BUILD_ROOT
243 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
244 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su
245 install image/hi48-app-wireshark.png \
246 $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
248 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
250 # plugins *.la are useless - *.so are loaded through gmodule
251 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
253 # no headers installed for this library
254 rm -f $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
257 rm -rf $RPM_BUILD_ROOT
259 %post common -p /sbin/ldconfig
260 %postun common -p /sbin/ldconfig
262 %post -n libwiretap -p /sbin/ldconfig
263 %postun -n libwiretap -p /sbin/ldconfig
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_bindir}/wireshark
268 %attr(755,root,root) %{_bindir}/%{name}_su
269 %dir %{_libdir}/%{name}
270 %dir %{_libdir}/%{name}/plugins
271 %dir %{_libdir}/%{name}/plugins/%{version}*
272 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
274 %{_desktopdir}/*.desktop
276 %{_mandir}/man1/wireshark.1*
279 %defattr(644,root,root,755)
280 %doc AUTHORS* ChangeLog NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
281 %attr(755,root,root) %{_bindir}/capinfos
282 %attr(755,root,root) %{_bindir}/dftest
283 %attr(755,root,root) %{_bindir}/dumpcap
284 %attr(755,root,root) %{_bindir}/editcap
285 %attr(755,root,root) %{_bindir}/idl2wrs
286 %attr(755,root,root) %{_bindir}/mergecap
287 %attr(755,root,root) %{_bindir}/randpkt
288 %attr(755,root,root) %{_bindir}/rawshark
289 %attr(755,root,root) %{_bindir}/text2pcap
290 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
291 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.0
292 %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.*
293 %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.0
294 %{_mandir}/man1/capinfos.1*
295 %{_mandir}/man1/dumpcap.1*
296 %{_mandir}/man1/editcap.1*
297 %{_mandir}/man1/idl2wrs.1*
298 %{_mandir}/man1/mergecap.1*
299 %{_mandir}/man1/rawshark.1*
300 %{_mandir}/man1/text2pcap.1*
301 %{_mandir}/man4/wireshark-filter.4*
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_bindir}/tshark
306 %{_mandir}/man1/tshark*
309 %defattr(644,root,root,755)
310 %doc wiretap/{README*,AUTHORS}
311 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.0
314 %files -n libwiretap-devel
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libwiretap.so
317 %{_libdir}/libwiretap.la
318 %{_libdir}/libwsutil.la
319 %{_includedir}/wiretap