From 99163ae31cb27dedbbc425ebe051449713ac8ca1 Mon Sep 17 00:00:00 2001 From: Michal Ruprich Date: May 18 2020 10:43:47 +0000 Subject: Enabling rdma support in libpcap --- diff --git a/libpcap.spec b/libpcap.spec index ed1e248..d4f0ae1 100644 --- a/libpcap.spec +++ b/libpcap.spec @@ -1,7 +1,7 @@ Name: libpcap Epoch: 14 Version: 1.9.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A system-independent interface for user-level packet capture License: BSD with advertising URL: http://www.tcpdump.org @@ -12,6 +12,10 @@ BuildRequires: flex BuildRequires: gcc BuildRequires: git BuildRequires: glibc-kernheaders >= 2.2.0 +#rdma-core-devel not available on arm +%ifnarch %{arm} +BuildRequires: rdma-core-devel +%endif Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz @@ -58,7 +62,11 @@ sed -i -e 's|-fpic|-fPIC|g' configure %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +%ifarch %{arm} %configure +%else +%configure --enable-rdma +%endif make %{?_smp_mflags} %install @@ -84,6 +92,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a %{_mandir}/man5/pcap*.5* %changelog +* Fri May 15 2020 Michal Ruprich - 14:1.9.1-4 +- Enabling rdma support in libpcap + * Mon Feb 24 2020 Michal Ruprich - 14:1.9.1-3 - libpcap should print an error on wrong IPv4 address