Enabling rdma support in libpcap
This commit is contained in:
parent
5f6e166f4a
commit
99163ae31c
13
libpcap.spec
13
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 <michalruprich@gmail.com> - 14:1.9.1-4
|
||||
- Enabling rdma support in libpcap
|
||||
|
||||
* Mon Feb 24 2020 Michal Ruprich <mruprich@redhat.com> - 14:1.9.1-3
|
||||
- libpcap should print an error on wrong IPv4 address
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user