2 # - think of loosing dependency loop:
3 # Executing rpm --upgrade -vh --root /...
5 # error: removing libwiretap-1.2.4-1.i686 "Requires(auto): libwsutil.so.0" from tsort relations.
6 # error: libwiretap-1.2.4-1.i686 Requires(auto): libwsutil.so.0
7 # error: removing wireshark-common-1.2.4-1.i686 "Requires: libwiretap = 1.2.4-1" from tsort relations.
8 # error: wireshark-common-1.2.4-1.i686 Requires: libwiretap = 1.2.4-1
10 # error: removing libwiretap-1.2.3-1.i686 "Requires: libwiretap = 1.2.3-1" from tsort relations.
11 # error: libwiretap-1.2.3-1.i686 Requires: libwiretap = 1.2.3-1
12 # error: removing wireshark-common-1.2.3-1.i686 "Requires(auto): libwsutil.so.0" from tsort relations.
13 # error: wireshark-common-1.2.3-1.i686 Requires(auto): libwsutil.so.0
16 %bcond_without kerberos5 # build without Kerberos V support
17 %bcond_without snmp # build without snmp support
19 Summary: Network traffic and protocol analyzer
20 Summary(es.UTF-8): Analizador de tráfico de red
21 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych
22 Summary(pt_BR.UTF-8): Analisador de tráfego de rede
23 Summary(ru.UTF-8): Анализатор сетевого траффика
24 Summary(uk.UTF-8): Аналізатор мережевого трафіку
30 Source0: http://www.wireshark.org/download/src/%{name}-%{version}rc1.tar.bz2
31 # Source0-md5: ca5ee30ed798900142d9cd4d81637b58
32 Patch0: %{name}-Werror.patch
33 Patch1: %{name}-gcc43.patch
34 Patch2: %{name}-ac.patch
35 Patch3: %{name}-desktop.patch
36 URL: http://www.wireshark.org/
37 BuildRequires: autoconf >= 2.52
38 BuildRequires: automake
40 BuildRequires: elfutils-devel
42 BuildRequires: gnutls-devel >= 1.0.0
43 BuildRequires: gtk+2-devel >= 1:2.0.0
44 %{?with_kerberos5:BuildRequires: heimdal-devel}
45 BuildRequires: libcap-devel
46 BuildRequires: libgcrypt-devel >= 1.1.42
47 BuildRequires: libpcap-devel >= 2:1.0.0-4
48 BuildRequires: libsmi-devel
49 BuildRequires: libtool
50 BuildRequires: libxslt-progs
51 BuildRequires: lua51-devel
52 %{?with_snmp:BuildRequires: net-snmp-devel}
53 BuildRequires: pcre-devel
54 BuildRequires: perl-tools-pod
55 BuildRequires: pkgconfig
56 BuildRequires: portaudio-devel
57 BuildRequires: sed >= 4.0
58 BuildRequires: zlib-devel
59 Requires: %{name}-common = %{version}-%{release}
60 Requires: libpcap >= 0.4
62 Provides: ethereal-gnome
64 Obsoletes: ethereal-gnome
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 Wireshark is the name for powerful graphical network sniffer, traffic
69 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
70 capture and interactively browse the contents of network frames with
71 vast knowledge of more than 100 network protocols. Wireshark has
72 severeal useful features, including a rich display filter language,
73 the ability to view the ASCII contents of a TCP connection and plug-in
76 %description -l es.UTF-8
77 Analizador de tráfico de red.
79 %description -l pl.UTF-8
80 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
81 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
82 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
83 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
84 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
85 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
88 %description -l pt_BR.UTF-8
89 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
91 %description -l ru.UTF-8
92 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
93 базируется на GTK+ и libpcap.
95 %description -l uk.UTF-8
96 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
97 базується на GTK+ та libpcap.
100 Summary: Network traffic and protocol analyzer - common files
101 Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki
103 Requires: libwiretap = %{version}-%{release}
104 Provides: %{name}-tools
105 Provides: ethereal-common
106 Obsoletes: ethereal-common
107 Obsoletes: wireshark-tools
110 Wireshark is the name for powerful graphical network sniffer, traffic
111 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
112 capture and interactively browse the contents of network frames with
113 vast knowledge of more than 100 network protocols. Wireshark has
114 severeal useful features, including a rich display filter language,
115 the ability to view the ASCII contents of a TCP connection and plug-in
118 This package provides set of tools for manipulating capture files. It
120 - capinfo - prints informatio about binary capture files,
121 - dftest - shows display filter byte-code,
122 - editcap - edit and/or translate the format of capture files,
123 - idl2eth - corba IDL to Wireshark Plugin Generator,
124 - mergecap - merges two capture files into one,
125 - text2cap - generate a capture file from an ASCII hexdump of packets.
127 %description common -l es.UTF-8
128 Analizador de tráfico de red.
130 %description common -l pl.UTF-8
131 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
132 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
133 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
134 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
135 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
136 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
139 Pakiet ten dostarcza także zestaw narzędzi do obróbki plików z
140 przechwyconymi pakietami, obejmujący:
141 - capinfo - do wyświetlania informacji o binarnych plikach zrzutu,
142 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
143 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
144 - idl2eth - do konwersji Corba IDL do wtyczek Wireshark,
145 - mergecap - do łączenia dwóch plików w jeden,
146 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
149 %description common -l pt_BR.UTF-8
150 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
152 %description common -l ru.UTF-8
153 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
154 базируется на GTK+ и libpcap.
156 %description common -l uk.UTF-8
157 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
158 базується на GTK+ та libpcap.
160 %package -n twireshark
161 Summary: Text-mode network traffic and protocol analyzer
162 Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych
163 Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer)
165 Requires: %{name}-common = %{version}-%{release}
166 Requires: libpcap >= 0.4
170 %description -n twireshark
171 Twireshark is a network protocol analyzer. It lets you capture packet
172 data from a live network, or read packets from a previously saved
173 capture file, either printing a decoded form of those packets to the
174 standard output or writing the packets to a file. Twireshark's native
175 capture file format is libpcap format, which is also the format used
176 by tcpdump and various other tools.
178 %description -n twireshark -l pl.UTF-8
179 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
180 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
181 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
182 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
183 tetherala jest format libpcap, tak więc jest on kompatybilny z
184 tcpdumpem i innymi podobnymi narzędziami.
186 %description -n twireshark -l pt_BR.UTF-8
187 Esta é uma versão para modo texto do analisador de tráfego de rede
190 %package -n libwiretap
191 Summary: Packet capture and analysis library
192 Summary(pl.UTF-8): Biblioteka do przechwytywania i analizy pakietów
195 %description -n libwiretap
196 Wiretap is a library that is being developed as a future replacement
197 for libpcap, the current standard Unix library for packet capturing.
199 %description -n libwiretap -l pl.UTF-8
200 Biblioteka Wiretap rozwijana jest jako przyszły następca biblioteki
201 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
203 %package -n libwiretap-devel
204 Summary: Header files for libwiretap packet capture library
205 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwiretap do przechwytywania pakietów
206 Group: Development/Libraries
207 Requires: gtk+2-devel >= 2.0.0
208 Requires: libwiretap = %{version}-%{release}
210 %description -n libwiretap-devel
211 Header files for libwiretap packet capture library.
213 %description -n libwiretap-devel -l pl.UTF-8
214 Pliki nagłówkowe biblioteki libwiretap służącej do przechwytywania
218 %setup -q -n %{name}-%{version}rc1
219 cp wireshark.desktop wireshark-kde.desktop
224 sed -i -e 's/lua5\.1/lua51/g' acinclude.m4
225 find -name Makefile.am | xargs sed -i -e 's/-Werror//g'
229 %{__aclocal} -I aclocal-fallback
237 %if %{with kerberos5}
241 %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \
247 rm -rf $RPM_BUILD_ROOT
248 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
251 DESTDIR=$RPM_BUILD_ROOT
253 cp -a image/hi48-app-wireshark.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
254 cp -a wireshark-kde.desktop $RPM_BUILD_ROOT%{_desktopdir}
256 cp -a wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
258 # plugins *.la are useless - *.so are loaded through gmodule
259 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
261 # no headers installed for this library
262 rm -f $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
265 rm -rf $RPM_BUILD_ROOT
267 %post common -p /sbin/ldconfig
268 %postun common -p /sbin/ldconfig
270 %post -n libwiretap -p /sbin/ldconfig
271 %postun -n libwiretap -p /sbin/ldconfig
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/wireshark
276 %dir %{_libdir}/%{name}
277 %dir %{_libdir}/%{name}/plugins
278 %dir %{_libdir}/%{name}/plugins/%{version}*
279 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
281 %{_desktopdir}/*.desktop
283 %{_mandir}/man1/wireshark.1*
286 %defattr(644,root,root,755)
287 %doc AUTHORS* ChangeLog NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
288 %attr(755,root,root) %{_bindir}/capinfos
289 %attr(755,root,root) %{_bindir}/dftest
290 %attr(755,root,root) %{_bindir}/dumpcap
291 %attr(755,root,root) %{_bindir}/editcap
292 %attr(755,root,root) %{_bindir}/idl2wrs
293 %attr(755,root,root) %{_bindir}/mergecap
294 %attr(755,root,root) %{_bindir}/randpkt
295 %attr(755,root,root) %{_bindir}/rawshark
296 %attr(755,root,root) %{_bindir}/text2pcap
297 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
298 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.0
299 %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.*
300 %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.0
301 %{_mandir}/man1/capinfos.1*
302 %{_mandir}/man1/dumpcap.1*
303 %{_mandir}/man1/editcap.1*
304 %{_mandir}/man1/idl2wrs.1*
305 %{_mandir}/man1/mergecap.1*
306 %{_mandir}/man1/rawshark.1*
307 %{_mandir}/man1/text2pcap.1*
308 %{_mandir}/man4/wireshark-filter.4*
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_bindir}/tshark
313 %{_mandir}/man1/tshark*
316 %defattr(644,root,root,755)
317 %doc wiretap/{README*,AUTHORS}
318 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
319 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.0
321 %files -n libwiretap-devel
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libwiretap.so
324 %attr(755,root,root) %{_libdir}/libwsutil.so
325 %{_libdir}/libwiretap.la
326 %{_libdir}/libwsutil.la
327 %{_includedir}/wiretap