# # Conditional build: %bcond_with gtk1 # builds gtk+1 (not gtk+2) based ethereal binary %bcond_without krb5 # builds without kerberos5 support (via heimdal) %bcond_without snmp # builds without snmp support # Summary: Network traffic and protocol analyzer Summary(es): Analizador de tráfico de red Summary(pl): Analizator ruchu i protoko³ów sieciowych Summary(pt_BR): Analisador de tráfego de rede Summary(ru): áÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ Summary(uk): áÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ Name: ethereal Version: 0.10.6 Release: 0.1 License: GPL Group: Networking Source0: ftp://ftp.ethereal.com/pub/ethereal/all-versions/%{name}-%{version}.tar.bz2 # Source0-md5: 722a2529c3a19b5b81c825bca444baea Source1: %{name}.desktop Source2: %{name}.su-start-script URL: http://www.ethereal.com/ BuildRequires: adns-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: elfutils-devel BuildRequires: flex %if %{with gtk1} BuildRequires: gtk+-devel >= 1.2 %else BuildRequires: gtk+2-devel >= 2.0.0 %endif %{?with_krb5:BuildRequires: heimdal-devel} BuildRequires: libpcap-devel >= 0.4 BuildRequires: libtool %{?with_snmp:BuildRequires: net-snmp-devel} BuildRequires: openssl-devel >= 0.9.7d BuildRequires: perl-devel BuildRequires: zlib-devel Requires: %{name}-common = %{version}-%{release} Requires: libpcap >= 0.4 Obsoletes: ethereal-gnome BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Ethereal is the name for powerful graphical network sniffer, traffic and protocol analyzer based on GTK+ and libpcap libraries. It lets you capture and interactively browse the contents of network frames with vast knowledge of more than 100 network protocols. Ethereal has severeal useful features, including a rich display filter language, the ability to view the ASCII contents of a TCP connection and plug-in capabilities. %description -l es Analizador de tráfico de red. %description -l pl Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap. Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci ramek oraz ponad stu protoko³ów sieciowych. Ethereal posiada wiele u¿ytecznych cech, takich jak rozbudowany jêzyk filtrów wy¶wietlania, mo¿liwo¶æ ogl±dania przebiegu sesji TCP oraz mo¿liwo¶æ do³±czania wtyczek (plug-ins). %description -l pt_BR O Ethereal é um analisador de protocolo de rede baseado no GTK+. %description -l ru Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap. %description -l uk Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ Unix-ÐÏĦÂÎÉÈ ïó. ÷¦Î ÂÁÚÕ¤ÔØÓÑ ÎÁ GTK+ ÔÁ libpcap. %package common Summary: Network traffic and protocol analyzer - common files Summary(pl): Analizator ruchu i protoko³ów sieciowych - wspólne pliki Group: Networking Requires: libwiretap = %{version}-%{release} %description common Ethereal is the name for powerful graphical network sniffer, traffic and protocol analyzer based on GTK+ and libpcap libraries. It lets you capture and interactively browse the contents of network frames with vast knowledge of more than 100 network protocols. Ethereal has severeal useful features, including a rich display filter language, the ability to view the ASCII contents of a TCP connection and plug-in capabilities. %description common -l es Analizador de tráfico de red. %description common -l pl Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap. Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci ramek oraz ponad stu protoko³ów sieciowych. Ethereal posiada wiele u¿ytecznych cech, takich jak rozbudowany jêzyk filtrów wy¶wietlania, mo¿liwo¶æ ogl±dania przebiegu sesji TCP oraz mo¿liwo¶æ do³±czania wtyczek (plug-ins). %description common -l pt_BR O Ethereal é um analisador de protocolo de rede baseado no GTK+. %description common -l ru Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap. %description common -l uk Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ Unix-ÐÏĦÂÎÉÈ ïó. ÷¦Î ÂÁÚÕ¤ÔØÓÑ ÎÁ GTK+ ÔÁ libpcap. %package tools Summary: Tools for manipulating capture files Summary(pl): Narzêdzia do obróbki plików z przechwyconymi pakietami sieciowymi Group: Networking Requires: %{name}-common = %{version}-%{release} %description tools Set of tools for manipulating capture files. Contains: - editcap - Edit and/or translate the format of capture files - mergecap - Merges two capture files into one - text2cap - Generate a capture file from an ASCII hexdump of packets %description tools -l pl Zestaw narzêdzi do obróbki plików z przechwyconymi pakietami. Zawiera: - editcap - do edycji plików i t³umaczenia ich na inne formaty, - mergecap - do ³±czenia dwóch plików w jeden, - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII pakietów. %package -n tethereal Summary: Text-mode network traffic and protocol analyzer Summary(pl): Tekstowy analizator ruchu i protoko³ów sieciowych Summary(pt_BR): Analisador modo texto de tráfego de rede (sniffer) Group: Networking Requires: %{name}-common = %{version}-%{release} Requires: libpcap >= 0.4 %description -n tethereal Tethereal is a network protocol analyzer. It lets you capture packet data from a live network, or read packets from a previously saved capture file, either printing a decoded form of those packets to the standard output or writing the packets to a file. Tethereal's native capture file format is libpcap format, which is also the format used by tcpdump and various other tools. %description -n tethereal -l pl Tethereal jest analizatorem protoko³ów sieciowych. Pozwala na przechwytywanie pakietów z sieci lub wczytywanie danych z pliku. Zdekodowany wynik (a tethereal zna ponad 100 rozmaitych protoko³ów sieciowych!) jest wy¶wietlony na ekranie. Natywnym formatem plików tetherala jest format libpcap, tak wiêc jest on kompatybilny z tcpdumpem i innymi podobnymi narzêdziami. %description -n tethereal -l pt_BR Esta é uma versão para modo texto do analisador de tráfego de rede Ethereal. %package -n libwiretap Summary: Packet capture and analysis library Summary(pl): Biblioteka do przechwytywania i analizy pakietów Group: Libraries %description -n libwiretap Wiretap is a library that is being developed as a future replacement for libpcap, the current standard Unix library for packet capturing. %description -n libwiretap -l pl Biblioteka Wiretap rozwijana jest jako przysz³y nastepca biblioteki libpcap, obecnie standardu przechwytywania pakietów w systemach Unix. %package -n libwiretap-devel Summary: Header files for libwiretap packet capture library Summary(pl): Pliki nag³ówkowe biblioteki libwiretap do przechwytywania pakietów Group: Development/Libraries Requires: libwiretap = %{version}-%{release} %if %{with gtk1} Requires: gtk+-devel >= 1.2 %else Requires: gtk+2-devel >= 2.0.0 %endif %description -n libwiretap-devel Header files for libwiretap packet capture library. %description -n libwiretap-devel -l pl Pliki nag³ówkowe biblioteki libwiretap s³u¿±cej do przechwytywania pakietów. %prep %setup -q %build %{__libtoolize} %{__aclocal} -I aclocal-fallback %{__autoconf} %{__automake} cd wiretap %{__aclocal} -I ../aclocal-fallback %{__autoconf} # don't use --force here automake -a -c --foreign cd .. %configure \ --enable-randpkt \ --enable-dftest \ --enable-threads \ %{!?with_gtk1:--enable-gtk2} \ %{?with_krb5:--with-krb5} \ %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \ --with-plugindir=%{_libdir}/%{name} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su install image/ethereal48x48-trans.png \ $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap # plugins *.la are useless - *.so are loaded through gmodule rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}/*.la # no headers installed for this library rm -f $RPM_BUILD_ROOT%{_libdir}/libethereal.{so,la} %clean rm -rf $RPM_BUILD_ROOT %post common -p /sbin/ldconfig %postun common -p /sbin/ldconfig %post -n libwiretap -p /sbin/ldconfig %postun -n libwiretap -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/ethereal %attr(755,root,root) %{_bindir}/%{name}_su %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/plugins %dir %{_libdir}/%{name}/plugins/%{version} %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}/*.so %{_datadir}/%{name} %{_desktopdir}/* %{_pixmapsdir}/* %{_mandir}/man1/ethereal.1* %files common %defattr(644,root,root,755) %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*} %attr(755,root,root) %{_libdir}/libethereal.so.*.*.* %{_mandir}/man4/ethereal-filter.4* %files tools %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/dftest %attr(755,root,root) %{_bindir}/editcap %attr(755,root,root) %{_bindir}/idl2eth %attr(755,root,root) %{_bindir}/mergecap %attr(755,root,root) %{_bindir}/text2pcap %attr(755,root,root) %{_bindir}/randpkt %{_mandir}/man1/editcap* %{_mandir}/man1/idl2eth* %{_mandir}/man1/mergecap* %{_mandir}/man1/text2pcap* %files -n tethereal %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/tethereal %{_mandir}/man1/tethereal* %files -n libwiretap %defattr(644,root,root,755) %doc wiretap/{README*,AUTHORS,NEWS,ChangeLog} %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.* %files -n libwiretap-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libwiretap.so %{_libdir}/libwiretap.la %{_includedir}/wiretap