%define name ethereal %define version 0.10.3 %define release 0.1.91mdk %define prefix %{_prefix} %define build_92 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.2 ];then echo 1; else echo 0; fi) %define build_91 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.1 ];then echo 1; else echo 0; fi) Summary: Network traffic analyzer Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Monitoring URL: http://www.ethereal.com Source: %{name}-%{version}.tar.bz2 Source1: %{name} Source2: %{name}-16.png Source3: %{name}-32.png Requires: gtk+ >= 1.2 Requires: libpcap >= 0.7.2 #Requires: libnet-snmp50 %if %{build_92} Requires: net-snmp-mibs Requires: net-snmp-utils %else Requires: libsnmp0 %endif BuildRequires: glib-devel BuildRequires: gtk+2-devel BuildRequires: libelf-devel BuildRequires: openssl-devel BuildRequires: libpcap-devel >= 0.7.2 %if %{build_92} BuildRequires: net-snmp-devel %else BuildRequires: ucd-snmp-devel %endif #BuildRequires: zlib-devel >= 1.1.4 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Ethereal is a network traffic analyzer for Unix-ish operating systems. It is based on GTK+, a graphical user interface library, and libpcap, a packet capture and filtering library. %prep %setup -q %build %configure \ --disable-usr-local \ --disable-static \ --enable-gtk2 \ --enable-dftest \ --enable-randpkt \ --with-net-snmp=%{_prefix} \ --without-ucdsnmp %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} #make DESTDIR=$RPM_BUILD_ROOT install %makeinstall_std transform="" # menu mkdir -p $RPM_BUILD_ROOT%{_libdir}/menu install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_menudir} # icon mkdir -p $RPM_BUILD_ROOT%{_miconsdir} install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png %post %{update_menus} %postun %{clean_menus} %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING INSTALL NEWS README* doc/* %attr(755,root,root) %{_bindir}/* %config(noreplace) %attr(644,root,root) %{_datadir}/%{name}/manuf %config(noreplace) %attr(644,root,root) %{_datadir}/%{name}/diameter/* %dir %{_datadir}/%{name}/help %{_datadir}/%{name}/help/* %attr(644,root,root) %{_mandir}/*/* %{_libdir}/* %{_iconsdir}/*.png %{_miconsdir}/*.png %changelog * Fri Mar 26 2004 Vincent Danen <vdanen@mandrakesoft.com> 0.10.3-0.1.91mdk - security update for 9.1 fixes CAN-2004-0176, CAN-2004-0365 * Wed Jan 07 2004 Vincent Danen <vdanen@mandrakesoft.com> 0.10.0a-0.1.91mdk - security update for 9.2/9.1 fixes CAN-2003-1012, CAN-2003-1013 * Mon Dec 08 2003 Vincent Danen <vdanen@mandrakesoft.com> 0.9.16-2.1.91mdk - security update for 9.2/9.1 fixes CAN-2003-0925, CAN-2003-0926, CAN-2003-0927 * Mon Dec 08 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.16-2mdk - fix explicit-lib-dependency * Wed Nov 05 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.16-1mdk - 0.9.16 * Fri Jun 27 2003 Stefan van der Eijk <stefan@eijk.nu> 0.9.13-1mdk - 0.9.13 * Fri May 09 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.12-1mdk - 0.9.12 (security fixes) - fix requires and buildrequires - misc spec file fixes * Mon Apr 28 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.11-2mdk - adjust buildrequires * Wed Apr 23 2003 Vincent Danen <vdanen@mandrakesoft.com> 0.9.11-1mdk - 0.9.11 (security fixes) - BuildRequires: libpcap-devel - diameter and manuf files have been moved to /usr/share/ethereal from /etc * Thu Feb 06 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.9-1mdk - 0.9.9 * Thu Jan 09 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-1mdk - 0.9.8 * Wed Oct 02 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9.7-1mdk - 0.9.7 * Tue Aug 27 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9.6-2mdk - adjust buildrequires * Fri Aug 23 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.6-1mdk - new version - misc spec file fixes * Tue Apr 09 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9.3-1mdk - 0.9.3 * Tue Mar 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9.2-1mdk - 0.9.2 * Tue Feb 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9.1-1mdk - 0.9.1 * Thu Jan 31 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.8.20-3mdk - xpm -> png icons - don't overwrite config files * Wed Oct 24 2001 Vincent Saugey <vince@mandrakesoft.com> 0.8.20-2mdk - Replace require ucd-snmp by libsnmp0 * Wed Oct 17 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.20-1mdk - 0.8.20 * Wed Sep 05 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.19-1mdk - updated to 0.8.19. * Thu Jul 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.18-1mdk - updated to 0.8.18 * Thu Apr 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.17-1mdk - updated to 0.8.17 * Wed Mar 07 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.16-1mdk - updated to 0.8.16 - disable snmp * Tue Nov 21 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.8.14-1mdk - updated to 0.8.14 * Fri Oct 27 2000 Vincent Saugey <vince@mandrakesoft.com> 0.8.13-1mdk - Up to 0.8.13 - Fix menu entry (not more ':' at end of icons name) * Fri Aug 25 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.8.11-2mdk - added BuildRequires. - added tethereal, editcap binaries. - added doc dir to docs. * Fri Aug 25 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.8.11-1mdk - update to v0.8.11 * Wed Jul 12 2000 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.8.10-1mdk - v0.8.10 - menu entry - changed group * Tue Dec 30 1999 Lenny Cartier <lenny@mandrakesoft.com> - new in contribs - bz2 archive - specfile adaptations