3 %bcond_with gtk1 # build gtk+1 (not gtk+2) based wireshark binary
4 %bcond_without kerberos5 # build without Kerberos V support
5 %bcond_without snmp # build without snmp support
7 Summary: Network traffic and protocol analyzer
8 Summary(es.UTF-8): Analizador de tráfico de red
9 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych
10 Summary(pt_BR.UTF-8): Analisador de tráfego de rede
11 Summary(ru.UTF-8): Анализатор сетевого траффика
12 Summary(uk.UTF-8): Аналізатор мережевого трафіку
18 Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
19 # Source0-md5: ef04dfac3e7acc4a9cb2b107dd2a2f8a
20 Source1: %{name}.desktop
21 Source2: %{name}.su-start-script
22 Patch0: %{name}-0.99.5-hip-base05.patch
23 Patch1: %{name}-as_needed.patch
24 Patch2: %{name}-Werror.patch
25 URL: http://www.wireshark.org/
26 BuildRequires: adns-devel
27 BuildRequires: autoconf >= 2.52
28 BuildRequires: automake
29 BuildRequires: elfutils-devel
31 BuildRequires: gnutls-devel >= 1.0.0
33 BuildRequires: gtk+-devel >= 1.2
35 BuildRequires: gtk+2-devel >= 1:2.0.0
37 %{?with_kerberos5:BuildRequires: krb5-devel}
38 BuildRequires: libgcrypt-devel >= 1.1.42
39 BuildRequires: libpcap-devel >= 0.4
40 BuildRequires: libtool
41 BuildRequires: libxslt-progs
42 BuildRequires: lua51-devel
43 %{?with_snmp:BuildRequires: net-snmp-devel}
44 BuildRequires: pcre-devel
45 BuildRequires: perl-devel
46 BuildRequires: pkgconfig
47 BuildRequires: portaudio-devel
48 BuildRequires: zlib-devel
49 Requires: %{name}-common = %{version}-%{release}
50 Requires: %{name}-tools = %{version}-%{release}
51 Requires: libpcap >= 0.4
54 Provides: ethereal-gnome
56 Obsoletes: ethereal-gnome
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 Wireshark is the name for powerful graphical network sniffer, traffic
61 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
62 capture and interactively browse the contents of network frames with
63 vast knowledge of more than 100 network protocols. Wireshark has
64 severeal useful features, including a rich display filter language,
65 the ability to view the ASCII contents of a TCP connection and plug-in
68 %description -l es.UTF-8
69 Analizador de tráfico de red.
71 %description -l pl.UTF-8
72 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
73 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
74 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
75 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
76 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
77 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
80 %description -l pt_BR.UTF-8
81 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
83 %description -l ru.UTF-8
84 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
85 базируется на GTK+ и libpcap.
87 %description -l uk.UTF-8
88 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
89 базується на GTK+ та libpcap.
92 Summary: Network traffic and protocol analyzer - common files
93 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki
95 Requires: libwiretap = %{version}-%{release}
96 Provides: ethereal-common
97 Obsoletes: ethereal-common
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 %description common -l es.UTF-8
109 Analizador de tráfico de red.
111 %description common -l pl.UTF-8
112 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
113 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
114 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
115 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
116 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
117 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
120 %description common -l pt_BR.UTF-8
121 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
123 %description common -l ru.UTF-8
124 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
125 базируется на GTK+ и libpcap.
127 %description common -l uk.UTF-8
128 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
129 базується на GTK+ та libpcap.
132 Summary: Tools for manipulating capture files
133 Summary(pl.UTF-8): Narzędzia do obróbki plików z przechwyconymi pakietami sieciowymi
135 Requires: %{name}-common = %{version}-%{release}
136 Provides: ethereal-tools
137 Obsoletes: ethereal-tools
140 Set of tools for manipulating capture files. Contains:
141 - capinfo - prints informatio about binary capture files,
142 - dftest - shows display filter byte-code,
143 - editcap - edit and/or translate the format of capture files,
144 - idl2eth - corba IDL to Wireshark Plugin Generator,
145 - mergecap - merges two capture files into one,
146 - text2cap - generate a capture file from an ASCII hexdump of packets.
148 %description tools -l pl.UTF-8
149 Zestaw narzędzi do obróbki plików z przechwyconymi pakietami. Zawiera:
150 - capinfo - wyświetla informacje o binarnych plikach zrzutu,
151 - dftest - pokazuje byte-code filtrów wyświetlania,
152 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
153 - idl2eth - konwerter Corba IDL do pluginów Wireshark,
154 - mergecap - do łączenia dwóch plików w jeden,
155 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
158 %package -n twireshark
159 Summary: Text-mode network traffic and protocol analyzer
160 Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych
161 Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer)
163 Requires: %{name}-common = %{version}-%{release}
164 Requires: libpcap >= 0.4
168 %description -n twireshark
169 Twireshark is a network protocol analyzer. It lets you capture packet
170 data from a live network, or read packets from a previously saved
171 capture file, either printing a decoded form of those packets to the
172 standard output or writing the packets to a file. Twireshark's native
173 capture file format is libpcap format, which is also the format used
174 by tcpdump and various other tools.
176 %description -n twireshark -l pl.UTF-8
177 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
178 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
179 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
180 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
181 tetherala jest format libpcap, tak więc jest on kompatybilny z
182 tcpdumpem i innymi podobnymi narzędziami.
184 %description -n twireshark -l pt_BR.UTF-8
185 Esta é uma versão para modo texto do analisador de tráfego de rede
188 %package -n libwiretap
189 Summary: Packet capture and analysis library
190 Summary(pl.UTF-8): Biblioteka do przechwytywania i analizy pakietów
193 %description -n libwiretap
194 Wiretap is a library that is being developed as a future replacement
195 for libpcap, the current standard Unix library for packet capturing.
197 %description -n libwiretap -l pl.UTF-8
198 Biblioteka Wiretap rozwijana jest jako przyszły następca biblioteki
199 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
201 %package -n libwiretap-devel
202 Summary: Header files for libwiretap packet capture library
203 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwiretap do przechwytywania pakietów
204 Group: Development/Libraries
205 Requires: libwiretap = %{version}-%{release}
207 Requires: gtk+-devel >= 1.2
209 Requires: gtk+2-devel >= 2.0.0
212 %description -n libwiretap-devel
213 Header files for libwiretap packet capture library.
215 %description -n libwiretap-devel -l pl.UTF-8
216 Pliki nagłówkowe biblioteki libwiretap służącej do przechwytywania
224 perl -pi -e 's/lua5\.1/lua51/g' acinclude.m4
225 find -name Makefile.am | xargs perl -pi -e 's/-Werror//g'
229 %{__aclocal} -I aclocal-fallback
233 %{__aclocal} -I ../aclocal-fallback
235 # don't use --force here
242 %{!?with_gtk1:--enable-gtk2} \
243 %if %{with kerberos5}
247 %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \
249 --with-plugindir=%{_libdir}/%{name}
254 rm -rf $RPM_BUILD_ROOT
255 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
258 DESTDIR=$RPM_BUILD_ROOT
260 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
261 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su
262 install image/hi48-app-wireshark.png \
263 $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
265 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
267 # plugins *.la are useless - *.so are loaded through gmodule
268 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
270 # no headers installed for this library
271 rm -f $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
274 rm -rf $RPM_BUILD_ROOT
276 %post common -p /sbin/ldconfig
277 %postun common -p /sbin/ldconfig
279 %post -n libwiretap -p /sbin/ldconfig
280 %postun -n libwiretap -p /sbin/ldconfig
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_bindir}/wireshark
285 %attr(755,root,root) %{_bindir}/%{name}_su
286 %dir %{_libdir}/%{name}
287 %dir %{_libdir}/%{name}/plugins
288 %dir %{_libdir}/%{name}/plugins/%{version}*
289 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
291 %{_desktopdir}/*.desktop
293 %{_mandir}/man1/wireshark.1*
296 %defattr(644,root,root,755)
297 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
298 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
299 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.0
300 %{_mandir}/man4/wireshark-filter.4*
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_bindir}/capinfos
305 %attr(755,root,root) %{_bindir}/dftest
306 %attr(755,root,root) %{_bindir}/dumpcap
307 %attr(755,root,root) %{_bindir}/editcap
308 %attr(755,root,root) %{_bindir}/idl2wrs
309 %attr(755,root,root) %{_bindir}/mergecap
310 %attr(755,root,root) %{_bindir}/text2pcap
311 %attr(755,root,root) %{_bindir}/randpkt
312 %{_mandir}/man1/capinfo*
313 %{_mandir}/man1/dumpcap*
314 %{_mandir}/man1/editcap*
315 %{_mandir}/man1/idl2wrs*
316 %{_mandir}/man1/mergecap*
317 %{_mandir}/man1/text2pcap*
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_bindir}/tshark
322 %{_mandir}/man1/tshark*
325 %defattr(644,root,root,755)
326 %doc wiretap/{README*,AUTHORS,NEWS,ChangeLog}
327 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
328 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.0
330 %files -n libwiretap-devel
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/libwiretap.so
333 %{_libdir}/libwiretap.la
334 %{_includedir}/wiretap