3 %bcond_with gtk1 # build gtk+1 (not gtk+2) based wireshark binary
4 %bcond_without krb5 # build without kerberos5 support (via heimdal)
5 %bcond_without snmp # build without snmp support
7 Summary: Network traffic and protocol analyzer
8 Summary(es): Analizador de tráfico de red
9 Summary(pl): Analizator ruchu i protoko³ów sieciowych
10 Summary(pt_BR): Analisador de tráfego de rede
11 Summary(ru): áÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ
12 Summary(uk): áÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ
19 Source0: http://www.wireshark.org/download/prerelease/%{name}-%{version}%{_pre}.tar.gz
20 # Source0-md5: 3f3bfed8727cb24d41fd4f10f7b91d9f
21 Source1: %{name}.desktop
22 Source2: %{name}.su-start-script
23 URL: http://www.wireshark.org/
24 BuildRequires: adns-devel
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: elfutils-devel
30 BuildRequires: gtk+-devel >= 1.2
32 BuildRequires: gtk+2-devel >= 1:2.0.0
34 %{?with_krb5:BuildRequires: heimdal-devel >= 0.7}
35 BuildRequires: libpcap-devel >= 0.4
36 BuildRequires: libtool
37 %{?with_snmp:BuildRequires: net-snmp-devel}
38 BuildRequires: openssl-devel >= 0.9.7d
39 BuildRequires: perl-devel
40 BuildRequires: pkgconfig
41 BuildRequires: zlib-devel
42 Requires: %{name}-common = %{version}-%{release}
43 Requires: libpcap >= 0.4
44 Obsoletes: wireshark-gnome
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Wireshark is the name for powerful graphical network sniffer, traffic
49 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
50 capture and interactively browse the contents of network frames with
51 vast knowledge of more than 100 network protocols. Wireshark has
52 severeal useful features, including a rich display filter language,
53 the ability to view the ASCII contents of a TCP connection and plug-in
57 Analizador de tráfico de red.
60 Wireshark jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
61 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
62 Umo¿liwia on przechwytywanie oraz interaktywn± analizê zawarto¶ci
63 ramek oraz ponad stu protoko³ów sieciowych. Wireshark posiada wiele
64 u¿ytecznych cech, takich jak rozbudowany jêzyk filtrów wy¶wietlania,
65 mo¿liwo¶æ ogl±dania przebiegu sesji TCP oraz mo¿liwo¶æ do³±czania
69 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
72 Wireshark - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
73 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
76 Wireshark - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ Unix-ÐÏĦÂÎÉÈ ïó. ÷¦Î
77 ÂÁÚÕ¤ÔØÓÑ ÎÁ GTK+ ÔÁ libpcap.
80 Summary: Network traffic and protocol analyzer - common files
81 Summary(pl): Analizator ruchu i protoko³ów sieciowych - wspólne pliki
83 Requires: libwiretap = %{version}-%{release}
86 Wireshark is the name for powerful graphical network sniffer, traffic
87 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
88 capture and interactively browse the contents of network frames with
89 vast knowledge of more than 100 network protocols. Wireshark has
90 severeal useful features, including a rich display filter language,
91 the ability to view the ASCII contents of a TCP connection and plug-in
94 %description common -l es
95 Analizador de tráfico de red.
97 %description common -l pl
98 Wireshark jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
99 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
100 Umo¿liwia on przechwytywanie oraz interaktywn± analizê zawarto¶ci
101 ramek oraz ponad stu protoko³ów sieciowych. Wireshark posiada wiele
102 u¿ytecznych cech, takich jak rozbudowany jêzyk filtrów wy¶wietlania,
103 mo¿liwo¶æ ogl±dania przebiegu sesji TCP oraz mo¿liwo¶æ do³±czania
106 %description common -l pt_BR
107 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
109 %description common -l ru
110 Wireshark - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
111 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
113 %description common -l uk
114 Wireshark - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ Unix-ÐÏĦÂÎÉÈ ïó. ÷¦Î
115 ÂÁÚÕ¤ÔØÓÑ ÎÁ GTK+ ÔÁ libpcap.
118 Summary: Tools for manipulating capture files
119 Summary(pl): Narzêdzia do obróbki plików z przechwyconymi pakietami sieciowymi
121 Requires: %{name}-common = %{version}-%{release}
124 Set of tools for manipulating capture files. Contains:
125 - capinfo - prints informatio about binary capture files,
126 - dftest - shows display filter byte-code,
127 - editcap - edit and/or translate the format of capture files,
128 - idl2eth - corba IDL to Wireshark Plugin Generator,
129 - mergecap - merges two capture files into one,
130 - text2cap - generate a capture file from an ASCII hexdump of packets.
132 %description tools -l pl
133 Zestaw narzêdzi do obróbki plików z przechwyconymi pakietami. Zawiera:
134 - capinfo - wy¶wietla informacje o binarnych plikach zrzutu,
135 - dftest - pokazuje byte-code filtrów wy¶wietlania,
136 - editcap - do edycji plików i t³umaczenia ich na inne formaty,
137 - idl2eth - konwerter Corba IDL do pluginów Wireshark,
138 - mergecap - do ³±czenia dwóch plików w jeden,
139 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
142 %package -n twireshark
143 Summary: Text-mode network traffic and protocol analyzer
144 Summary(pl): Tekstowy analizator ruchu i protoko³ów sieciowych
145 Summary(pt_BR): Analisador modo texto de tráfego de rede (sniffer)
147 Requires: %{name}-common = %{version}-%{release}
148 Requires: libpcap >= 0.4
150 %description -n twireshark
151 Twireshark is a network protocol analyzer. It lets you capture packet
152 data from a live network, or read packets from a previously saved
153 capture file, either printing a decoded form of those packets to the
154 standard output or writing the packets to a file. Twireshark's native
155 capture file format is libpcap format, which is also the format used
156 by tcpdump and various other tools.
158 %description -n twireshark -l pl
159 Twireshark jest analizatorem protoko³ów sieciowych. Pozwala na
160 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
161 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protoko³ów
162 sieciowych!) jest wy¶wietlony na ekranie. Natywnym formatem plików
163 tetherala jest format libpcap, tak wiêc jest on kompatybilny z
164 tcpdumpem i innymi podobnymi narzêdziami.
166 %description -n twireshark -l pt_BR
167 Esta é uma versão para modo texto do analisador de tráfego de rede
170 %package -n libwiretap
171 Summary: Packet capture and analysis library
172 Summary(pl): Biblioteka do przechwytywania i analizy pakietów
175 %description -n libwiretap
176 Wiretap is a library that is being developed as a future replacement
177 for libpcap, the current standard Unix library for packet capturing.
179 %description -n libwiretap -l pl
180 Biblioteka Wiretap rozwijana jest jako przysz³y nastêpca biblioteki
181 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
183 %package -n libwiretap-devel
184 Summary: Header files for libwiretap packet capture library
185 Summary(pl): Pliki nag³ówkowe biblioteki libwiretap do przechwytywania pakietów
186 Group: Development/Libraries
187 Requires: libwiretap = %{version}-%{release}
189 Requires: gtk+-devel >= 1.2
191 Requires: gtk+2-devel >= 2.0.0
194 %description -n libwiretap-devel
195 Header files for libwiretap packet capture library.
197 %description -n libwiretap-devel -l pl
198 Pliki nag³ówkowe biblioteki libwiretap s³u¿±cej do przechwytywania
202 %setup -q -n %{name}-%{version}%{_pre}
206 %{__aclocal} -I aclocal-fallback
210 %{__aclocal} -I ../aclocal-fallback
212 # don't use --force here
213 automake -a -c --foreign
219 %{!?with_gtk1:--enable-gtk2} \
224 %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \
225 --with-plugindir=%{_libdir}/%{name}
230 rm -rf $RPM_BUILD_ROOT
231 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
234 DESTDIR=$RPM_BUILD_ROOT
236 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
237 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su
238 install image/hi48-app-wireshark.png \
239 $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
241 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
243 # plugins *.la are useless - *.so are loaded through gmodule
244 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
246 # no headers installed for this library
247 rm -f $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
250 rm -rf $RPM_BUILD_ROOT
252 %post common -p /sbin/ldconfig
253 %postun common -p /sbin/ldconfig
255 %post -n libwiretap -p /sbin/ldconfig
256 %postun -n libwiretap -p /sbin/ldconfig
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_bindir}/wireshark
261 %attr(755,root,root) %{_bindir}/%{name}_su
262 %dir %{_libdir}/%{name}
263 %dir %{_libdir}/%{name}/plugins
264 %dir %{_libdir}/%{name}/plugins/%{version}*
265 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
269 %{_mandir}/man1/wireshark.1*
272 %defattr(644,root,root,755)
273 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
274 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
275 %{_mandir}/man4/wireshark-filter.4*
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_bindir}/capinfos
280 %attr(755,root,root) %{_bindir}/dftest
281 %attr(755,root,root) %{_bindir}/dumpcap
282 %attr(755,root,root) %{_bindir}/editcap
283 %attr(755,root,root) %{_bindir}/idl2wrs
284 %attr(755,root,root) %{_bindir}/mergecap
285 %attr(755,root,root) %{_bindir}/text2pcap
286 %attr(755,root,root) %{_bindir}/randpkt
287 %{_mandir}/man1/capinfo*
288 %{_mandir}/man1/dumpcap*
289 %{_mandir}/man1/editcap*
290 %{_mandir}/man1/idl2wrs*
291 %{_mandir}/man1/mergecap*
292 %{_mandir}/man1/text2pcap*
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_bindir}/tshark
297 %{_mandir}/man1/tshark*
300 %defattr(644,root,root,755)
301 %doc wiretap/{README*,AUTHORS,NEWS,ChangeLog}
302 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
304 %files -n libwiretap-devel
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libwiretap.so
307 %{_libdir}/libwiretap.la
308 %{_includedir}/wiretap