#
# Conditional build:
-%bcond_without libsmi # Build without SMI support
-
+%bcond_without libsmi # Build without SMI support
+%bcond_with drop_priv # Breaks "-w" option
+#
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: 4.2.0
-Release: 3
+Version: 4.5.1
+Release: 1
Epoch: 1
License: BSD
Group: Networking/Utilities
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: 0296d4c487c3a156879783643704bd39
+# Source0-md5: 973a2513d0076e34aa9da7e15ed98e1b
Patch0: libpcap-m4.patch
-Patch1: %{name}-ppi.patch
URL: http://www.tcpdump.org/
-BuildRequires: autoconf
-BuildRequires: libpcap-devel >= 2:1.2.0
+BuildRequires: autoconf >= 2.61
+BuildRequires: libcap-ng-devel
+BuildRequires: libpcap-devel >= 2:1.5.1
%{?with_libsmi:BuildRequires: libsmi-devel}
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: rpmbuild(macros) >= 1.202
-Requires: libpcap >= 2:1.2.0
+Requires: libpcap >= 2:1.5.1
Provides: user(tcpdump)
Requires(postun): /usr/sbin/userdel
Requires(pre): /bin/id
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
%build
%{__autoconf}
%configure \
CFLAGS="-I. %{rpmcflags} %{rpmcppflags}" \
%{?with_smi:--with-smi} \
- --enable-ipv6 \
+%if %{with drop_priv}
--with-user=tcpdump \
- --with-chroot=/usr/share/empty
+ --with-chroot=/usr/share/empty \
+%endif
+ --enable-ipv6 \
+ --with-crypto
%{__make}
%install
%files
%defattr(644,root,root,755)
-%doc CHANGES CREDITS LICENSE README
+%doc CHANGES CREDITS LICENSE README.md
%attr(755,root,root) %{_sbindir}/tcpdump
%{_mandir}/man1/tcpdump.1*