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