3 %bcond_with gtk1 # builds gtk+1 (not gtk+2) based ethereal binary
4 %bcond_without snmp # builds without snmp support
6 Summary: Network traffic and protocol analyzer
7 Summary(es): Analizador de tráfico de red
8 Summary(pl): Analizator ruchu i protoko³ów sieciowych
9 Summary(pt_BR): Analisador de tráfego de rede
10 Summary(ru): áÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ
11 Summary(uk): áÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ
17 Source0: http://www.ethereal.com/distribution/all-versions/%{name}-%{version}.tar.bz2
18 # Source0-md5: 6902272eb5304f57db76bf91abe453d1
19 Source1: %{name}.desktop
20 Source2: %{name}.su-start-script
21 URL: http://www.ethereal.com/
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: libelf-devel
27 BuildRequires: gtk+-devel >= 1.2
29 BuildRequires: gtk+2-devel
31 BuildRequires: libpcap-devel >= 0.4
32 BuildRequires: libtool
33 BuildRequires: openssl-devel >= 0.9.6m
34 BuildRequires: perl-devel
35 %{!?_without_snmp:BuildRequires: ucd-snmp-devel}
36 BuildRequires: zlib-devel
37 Requires: libpcap >= 0.4
38 Requires: %{name}-common = %{version}
39 Requires: pango-modules
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Obsoletes: ethereal-gnome
43 %define _prefix /usr/X11R6
44 %define _mandir /usr/X11R6/man
45 %define _desktopdir %{_applnkdir}/Network/Misc
48 Ethereal 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. Ethereal 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 Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
61 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
62 Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci
63 ramek oraz ponad stu protoko³ów sieciowych. Ethereal 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 Ethereal é um analisador de protocolo de rede baseado no GTK+.
72 Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
73 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
76 Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ 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
85 Ethereal is the name for powerful graphical network sniffer, traffic
86 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
87 capture and interactively browse the contents of network frames with
88 vast knowledge of more than 100 network protocols. Ethereal has
89 severeal useful features, including a rich display filter language,
90 the ability to view the ASCII contents of a TCP connection and plug-in
93 %description common -l es
94 Analizador de tráfico de red.
96 %description common -l pl
97 Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
98 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
99 Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci
100 ramek oraz ponad stu protoko³ów sieciowych. Ethereal posiada wiele
101 u¿ytecznych cech, takich jak rozbudowany jêzyk filtrów wy¶wietlania,
102 mo¿liwo¶æ ogl±dania przebiegu sesji TCP oraz mo¿liwo¶æ do³±czania
105 %description common -l pt_BR
106 O Ethereal é um analisador de protocolo de rede baseado no GTK+.
108 %description common -l ru
109 Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
110 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
112 %description common -l uk
113 Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ Unix-ÐÏĦÂÎÉÈ ïó. ÷¦Î
114 ÂÁÚÕ¤ÔØÓÑ ÎÁ GTK+ ÔÁ libpcap.
117 Summary: Tools for manipulating capture files
118 Summary(pl): Narzêdzia do obróbki plików z przechwyconymi pakietami sieciowymi
120 Requires: %{name}-common = %{version}
123 Set of tools for manipulating capture files. Contains:
124 - editcap - Edit and/or translate the format of capture files
125 - mergecap - Merges two capture files into one
126 - text2cap - Generate a capture file from an ASCII hexdump of packets
128 %description tools -l pl
129 Zestaw narzêdzi do obróbki plików z przechwyconymi pakietami. Zawiera:
130 - editcap - do edycji plików i t³umaczenia ich na inne formaty,
131 - mergecap - do ³±czenia dwóch plików w jeden,
132 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
135 %package -n tethereal
136 Summary: Text-mode network traffic and protocol analyzer
137 Summary(pl): Tekstowy analizator ruchu i protoko³ów sieciowych
138 Summary(pt_BR): Analisador modo texto de tráfego de rede (sniffer)
140 Requires: %{name}-common = %{version}
141 Requires: libpcap >= 0.4
143 %description -n tethereal
144 Tethereal is a network protocol analyzer. It lets you capture packet
145 data from a live network, or read packets from a previously saved
146 capture file, either printing a decoded form of those packets to the
147 standard output or writing the packets to a file. Tethereal's native
148 capture file format is libpcap format, which is also the format used
149 by tcpdump and various other tools.
151 %description -n tethereal -l pl
152 Tethereal jest analizatorem protoko³ów sieciowych. Pozwala na
153 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
154 Zdekodowany wynik (a tethereal zna ponad 100 rozmaitych protoko³ów
155 sieciowych!) jest wy¶wietlony na ekranie. Natywnym formatem plików
156 tetherala jest format libpcap, tak wiêc jest on kompatybilny z
157 tcpdumpem i innymi podobnymi narzêdziami.
159 %description -n tethereal -l pt_BR
160 Esta é uma versão para modo texto do analisador de tráfego de rede
163 %package -n libwiretap-devel
164 Summary: Packet capture library
165 Summary(pl): Biblioteka do przechwytywania pakietów
166 Group: Development/Libraries
168 Requires: gtk+-devel >= 1.2
170 Requires: gtk+2-devel
173 %description -n libwiretap-devel
174 Wiretap is a library that is being developed as a future replacement for
175 libpcap, the current standard Unix library for packet capturing.
177 %description -n libwiretap-devel -l pl
178 Biblioteka rozwijana jako przysz³y nastepca biblioteki libpcap, obecnie
179 standardu przechwytywania pakietów w systemach Unix.
187 %{__aclocal} -I aclocal-fallback
192 %{__aclocal} -I ../aclocal-fallback
194 # don't use --force here
195 automake -a -c --foreign
197 %{__aclocal} -I ../aclocal-fallback
199 # don't use --force here
200 automake -a -c --foreign
205 %{!?with_gtk1:--enable-gtk2} \
206 --with-plugindir=%{_libdir}/%{name} \
207 %{!?with_snmp:--without-net-snmp --without-ucdsnmp}
212 rm -rf $RPM_BUILD_ROOT
213 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
216 DESTDIR=$RPM_BUILD_ROOT
218 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
219 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su
220 install image/ethereal48x48-trans.png \
221 $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
223 # plugins *.la are useless - *.so are loaded through gmodule
224 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}/*.la
226 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
229 rm -rf $RPM_BUILD_ROOT
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_bindir}/ethereal
234 %attr(755,root,root) %{_bindir}/%{name}_su
235 %dir %{_libdir}/%{name}
236 %dir %{_libdir}/%{name}/plugins
237 %dir %{_libdir}/%{name}/plugins/%{version}
238 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}/*.so
242 %{_mandir}/man1/ethereal.1*
245 %defattr(644,root,root,755)
246 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
247 %{_mandir}/man4/ethereal-filter.4*
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_bindir}/dftest
252 %attr(755,root,root) %{_bindir}/editcap
253 %attr(755,root,root) %{_bindir}/idl2eth
254 %attr(755,root,root) %{_bindir}/mergecap
255 %attr(755,root,root) %{_bindir}/text2pcap
256 %attr(755,root,root) %{_bindir}/randpkt
257 %{_mandir}/man1/editcap*
258 %{_mandir}/man1/idl2eth*
259 %{_mandir}/man1/mergecap*
260 %{_mandir}/man1/text2pcap*
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/tethereal
265 %{_mandir}/man1/tethereal*
267 %files -n libwiretap-devel
268 %defattr(644,root,root,755)
269 %doc wiretap/{README*,AUTHORS,NEWS,ChangeLog}
270 %{_includedir}/wiretap