已开启
enable rdma support #40
AtomGit-Bot创建于 2025年1月20日
enable rdma support #40
已开启
从refs/pull/40/head合入到master
共 1 个文件变更+8-5
| @@ -1,7 +1,7 @@ | |||
| 1 | Name: libpcap | 1 | Name: libpcap |
| 2 | Epoch: 14 | 2 | Epoch: 14 |
| 3 | Version: 1.10.5 | 3 | Version: 1.10.5 |
| 4 | -Release: 2 | 4 | +Release: 3 |
| 5 | Summary: A system-independent interface for user-level packet capture | 5 | Summary: A system-independent interface for user-level packet capture |
| 6 | License: BSD-3-Clause | 6 | License: BSD-3-Clause |
| 7 | URL: https://www.tcpdump.org | 7 | URL: https://www.tcpdump.org |
| @@ -11,15 +11,21 @@ Patch0: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch | |||
| 11 | Patch1: pcap-config-mitigate-multilib-conflict.patch | 11 | Patch1: pcap-config-mitigate-multilib-conflict.patch |
| 12 | Patch2: libpcap-Add-sw64-architecture.patch | 12 | Patch2: libpcap-Add-sw64-architecture.patch |
| 13 | 13 | ||
| 14 | +%global enable_rdma 1 | ||
| 15 | + | ||
| 14 | BuildRequires: make bison flex gcc glibc-kernheaders >= 2.2.0 | 16 | BuildRequires: make bison flex gcc glibc-kernheaders >= 2.2.0 |
| 15 | 17 | ||
| 16 | %ifnarch i686 | 18 | %ifnarch i686 |
| 17 | BuildRequires: bluez-libs-devel | 19 | BuildRequires: bluez-libs-devel |
| 18 | %endif | 20 | %endif |
| 19 | 21 | ||
| 22 | +%if %{enable_rdma} | ||
| 23 | +BuildRequires: rdma-core-devel | ||
| 24 | +%endif | ||
| 25 | + | ||
| 20 | %description | 26 | %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 |
| 23 | network traffic capture. | 29 | network traffic capture. |
| 24 | 30 | ||
| 25 | %package devel | 31 | %package devel |
| @@ -36,11 +42,15 @@ header files for libpcap | |||
| 36 | 42 | ||
| 37 | %build | 43 | %build |
| 38 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" | 44 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
| 45 | +%if %{enable_rdma} | ||
| 46 | +%configure | ||