已开启
enable rdma support #40
AtomGit-Bot创建于 2025年1月20日
enable rdma support #40
已开启
AtomGit-Bot创建于 2025年1月20日
从refs/pull/40/head合入到master
共 1 个文件变更+8-5
@@ -1,7 +1,7 @@
1Name: libpcap1Name: libpcap
2Epoch: 142Epoch: 14
3Version: 1.10.53Version: 1.10.5
4-Release: 24+Release: 3
5Summary: A system-independent interface for user-level packet capture5Summary: A system-independent interface for user-level packet capture
6License: BSD-3-Clause6License: BSD-3-Clause
7URL: https://www.tcpdump.org7URL: https://www.tcpdump.org
@@ -11,15 +11,21 @@ Patch0: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
11Patch1: pcap-config-mitigate-multilib-conflict.patch11Patch1: pcap-config-mitigate-multilib-conflict.patch
12Patch2: libpcap-Add-sw64-architecture.patch12Patch2: libpcap-Add-sw64-architecture.patch
13 13 
14+%global enable_rdma 1
15+ 
14BuildRequires: make bison flex gcc glibc-kernheaders >= 2.2.016BuildRequires: make bison flex gcc glibc-kernheaders >= 2.2.0
15 17 
16%ifnarch i68618%ifnarch i686
17BuildRequires: bluez-libs-devel19BuildRequires: bluez-libs-devel
18%endif20%endif
19 21 
22+%if %{enable_rdma}
23+BuildRequires: rdma-core-devel
24+%endif
25+ 
20%description26%description
21-This is the official web site of tcpdump, a powerful command-line 27+This is the official web site of tcpdump, a powerful command-line
22-packet analyzer; and libpcap, a portable C/C++ library for 28+packet analyzer; and libpcap, a portable C/C++ library for
23network traffic capture.29network traffic capture.
24 30 
25%package devel31%package devel
@@ -36,11 +42,15 @@ header files for libpcap
36 42 
37%build43%build
38export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"44export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
45+%if %{enable_rdma}
46+%configure