#
# Conditional build:
%bcond_without libsmi # Build without SMI support
-#
+
Summary: dumps packets that are sent or received over a network interface
Summary(de.UTF-8): deponiert Pakete, die über eine Netzwerkschnittstelle gesandt oder empfangen werden
Summary(es.UTF-8): Enseña los paquetes que son enviados o recibidos a través de una interface de red
Summary(tr.UTF-8): Bir ağ arabirimi üzerinden gelen ya da giden paketleri listeler
Summary(uk.UTF-8): Інструмент для моніторингу мережевого трафіку
Name: tcpdump
-Version: 3.9.5
-Release: 1
+Version: 4.1.1
+Release: 2
Epoch: 1
License: BSD
Group: Applications/Networking
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: 2135e7b1f09af0eaf66d2af822bed44a
+# Source0-md5: d0dd58bbd6cd36795e05c6f1f74420b0
+Patch0: libpcap-m4.patch
+Patch1: %{name}-ac.patch
URL: http://www.tcpdump.org/
-BuildRequires: automake
-BuildRequires: libpcap-devel >= 2:0.9.5
+BuildRequires: autoconf
+BuildRequires: libpcap-devel >= 2:1.0.0
%{?with_libsmi:BuildRequires: libsmi-devel}
BuildRequires: openssl-devel >= 0.9.7d
-# beware of tar 1.13.9[12] madness (tarball contains tcpdump-3.8.3/./* paths)
-BuildRequires: tar >= 1:1.13.93
-Requires: libpcap >= 2:0.9.5
+Requires: libpcap >= 2:1.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
-cp -f /usr/share/automake/config.* .
+%{__autoconf}
%configure \
--enable-ipv6
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_sbindir}/tcpdump.%{version}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES CREDITS LICENSE README TODO
+%doc CHANGES CREDITS LICENSE README
%attr(755,root,root) %{_sbindir}/tcpdump
-%{_mandir}/man1/*
+%{_mandir}/man1/tcpdump.1*