2017-03-20 14:25:36 +01:00
|
|
|
#
|
2017-03-20 15:08:02 +01:00
|
|
|
# spec file for package rdma-core
|
|
|
|
#
|
2024-01-22 19:45:30 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-03-20 15:08:02 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-01 08:19:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-20 14:25:36 +01:00
|
|
|
#
|
|
|
|
|
2017-03-20 15:08:02 +01:00
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%bcond_without systemd
|
2018-12-13 17:11:38 +01:00
|
|
|
# Do not build static libs by default.
|
2019-05-13 10:44:12 +02:00
|
|
|
%define with_static 0
|
2019-12-11 12:32:28 +01:00
|
|
|
%if 0%{?sle_version} > 120400
|
2019-05-13 10:44:12 +02:00
|
|
|
%define with_pyverbs 1
|
2019-12-11 12:32:28 +01:00
|
|
|
%else
|
|
|
|
%define with_pyverbs 0
|
|
|
|
%endif
|
2018-12-13 17:11:38 +01:00
|
|
|
|
2022-03-10 10:58:05 +01:00
|
|
|
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150300
|
|
|
|
# systemd-rpm-macros is wrong in 15.3 and below
|
|
|
|
%define _modprobedir /lib/modprobe.d
|
|
|
|
%endif
|
|
|
|
|
2024-01-22 19:45:30 +01:00
|
|
|
%define git_ver .0.8847c327b89c
|
2017-03-20 14:25:36 +01:00
|
|
|
Name: rdma-core
|
2024-01-22 19:45:30 +01:00
|
|
|
Version: 49.1
|
2017-03-20 14:25:36 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: RDMA core userspace libraries and daemons
|
2021-02-17 13:21:43 +01:00
|
|
|
License: BSD-2-Clause OR GPL-2.0-only
|
2017-05-05 16:23:54 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%define efa_so_major 1
|
2017-03-20 14:25:36 +01:00
|
|
|
%define verbs_so_major 1
|
|
|
|
%define rdmacm_so_major 1
|
|
|
|
%define umad_so_major 3
|
2023-04-19 10:52:08 +02:00
|
|
|
%define mana_so_major 1
|
2017-08-23 14:21:21 +02:00
|
|
|
%define mlx4_so_major 1
|
2017-05-09 17:48:37 +02:00
|
|
|
%define mlx5_so_major 1
|
2019-09-27 09:18:23 +02:00
|
|
|
%define ibnetdisc_major 5
|
|
|
|
%define mad_major 5
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%define efa_lname libefa%{efa_so_major}
|
2017-03-20 14:25:36 +01:00
|
|
|
%define verbs_lname libibverbs%{verbs_so_major}
|
|
|
|
%define rdmacm_lname librdmacm%{rdmacm_so_major}
|
|
|
|
%define umad_lname libibumad%{umad_so_major}
|
2023-04-19 10:52:08 +02:00
|
|
|
%define mana_lname libmana%{mana_so_major}
|
2017-08-23 14:21:21 +02:00
|
|
|
%define mlx4_lname libmlx4-%{mlx4_so_major}
|
2017-05-09 17:48:37 +02:00
|
|
|
%define mlx5_lname libmlx5-%{mlx5_so_major}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2022-03-21 15:29:39 +01:00
|
|
|
%ifnarch s390 %arm
|
2017-08-23 14:21:21 +02:00
|
|
|
%define dma_coherent 1
|
|
|
|
%endif
|
|
|
|
|
2022-03-10 10:58:05 +01:00
|
|
|
%global modprobe_d_files 50-libmlx4.conf truescale.conf %{?dma_coherent:mlx4.conf}
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
# Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license
|
|
|
|
# providers/ipathverbs/ Dual licensed using a BSD license with an extra patent clause
|
|
|
|
# providers/rxe/ Incorporates code from ipathverbs and contains the patent clause
|
|
|
|
# providers/hfi1verbs Uses the 3 Clause BSD license
|
Accepting request 750977 from home:NMoreyChaisemartin:branches:science:HPC
- Update to rdma-core v26.1 (jsc#SLE-8388, jsc#SLE-8394, jsc#SLE-8463, jsc#SLE-8399,
jsc#SLE-8254, jsc#SLE-9840, jsc#SLE-9763, jsc#SLE-9925, jsc#SLE-9846, jsc#SLE-9913,
jsc#SLE-9729, jsc#SLE-8666)
OBS-URL: https://build.opensuse.org/request/show/750977
OBS-URL: https://build.opensuse.org/package/show/science:HPC/rdma-core?expand=0&rev=118
2019-11-26 10:47:17 +01:00
|
|
|
URL: https://github.com/linux-rdma/rdma-core
|
2017-08-23 14:21:21 +02:00
|
|
|
Source: rdma-core-%{version}%{git_ver}.tar.gz
|
2017-05-15 18:34:17 +02:00
|
|
|
Source1: baselibs.conf
|
2019-05-13 10:44:12 +02:00
|
|
|
Source2: post_download.sh
|
2018-06-14 18:06:49 +02:00
|
|
|
Source3: prebuilt-pandoc.tgz
|
2019-09-27 09:18:23 +02:00
|
|
|
Source4: rdma-core-rpmlintrc
|
2020-01-13 08:07:14 +01:00
|
|
|
Source5: gen-pandoc.sh
|
2020-10-05 15:28:56 +02:00
|
|
|
Source6: get_build.py
|
2023-08-04 09:54:16 +02:00
|
|
|
Patch0: disable-rdma-interface-renaming.patch
|
2024-02-14 14:32:23 +01:00
|
|
|
Patch1: kernel-boot-do-not-load-module-unsupported-on-s390.patch
|
2017-03-20 14:25:36 +01:00
|
|
|
BuildRequires: binutils
|
|
|
|
BuildRequires: cmake >= 2.8.11
|
|
|
|
BuildRequires: gcc
|
2022-09-14 08:20:09 +02:00
|
|
|
# perl is needed for the proper rpm macros
|
|
|
|
%if %{?suse_version} > 1550
|
|
|
|
BuildRequires: perl
|
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-11-28 17:39:19 +01:00
|
|
|
BuildRequires: python3-base
|
2017-08-23 14:21:21 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2017-07-07 12:06:39 +02:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2017-06-08 07:43:30 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2017-08-30 17:58:09 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2019-02-06 09:55:38 +01:00
|
|
|
%if %{with_pyverbs}
|
|
|
|
BuildRequires: python3-Cython
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif
|
2023-04-19 10:52:08 +02:00
|
|
|
%ifnarch s390 s390x
|
2019-11-10 15:38:30 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: valgrind-client-headers
|
|
|
|
%else
|
2017-03-20 14:25:36 +01:00
|
|
|
BuildRequires: valgrind-devel
|
|
|
|
%endif
|
2019-11-10 15:38:30 +01:00
|
|
|
%endif
|
2017-03-20 15:08:02 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2017-03-20 14:25:36 +01:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-route-3.0)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
Requires: kmod
|
|
|
|
Requires: systemd
|
2017-08-30 17:58:09 +02:00
|
|
|
Requires: udev
|
2021-12-03 08:28:51 +01:00
|
|
|
Recommends: rdma-ndd
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
# SUSE previously shipped rdma as a stand-alone
|
|
|
|
# package which we're supplanting here.
|
|
|
|
|
|
|
|
Provides: rdma = %{version}
|
|
|
|
Obsoletes: rdma < %{version}
|
2017-05-05 08:52:15 +02:00
|
|
|
Provides: ofed = %{version}
|
2017-05-05 08:55:20 +02:00
|
|
|
Obsoletes: ofed < %{version}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2017-11-28 17:39:19 +01:00
|
|
|
# Trickery to handle both SUSE OpenBuild System and Manual build
|
|
|
|
# In OBS, rdma-core must use curl-mini instead of curl to avoid
|
|
|
|
# a build dependency loop:
|
|
|
|
# rdma-core -> cmake -> curl -> ... -> boost -> rdma-core
|
|
|
|
# Thus we force a BuildRequires to curl-mini which as no impact
|
|
|
|
# as it is not used during the build.
|
|
|
|
# However curl-mini is not a published RPM. This would prevent any build
|
|
|
|
# outside of OBS. Thus we add a bcond to allow manual build.
|
|
|
|
# To force build without the use of curl-mini, --without=curlmini
|
|
|
|
# should be passed to rpmbuild
|
2017-12-04 12:30:47 +01:00
|
|
|
%bcond_without curlmini
|
2020-02-23 10:19:45 +01:00
|
|
|
%if 0%{?suse_version} >= 1330 && 0%{?suse_version} < 1550
|
2017-11-28 17:39:19 +01:00
|
|
|
%if %{with curlmini}
|
2017-08-07 11:04:31 +02:00
|
|
|
BuildRequires: curl-mini
|
|
|
|
%endif
|
2017-11-28 17:39:19 +01:00
|
|
|
%endif
|
2017-08-07 11:04:31 +02:00
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
# Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags
|
|
|
|
# which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style
|
|
|
|
# module libraries (eg ibacmp).
|
|
|
|
#%%define CMAKE_FLAGS -DCMAKE_MODULE_LINKER_FLAGS=""
|
|
|
|
|
|
|
|
# Since we recommend developers use Ninja, so should packagers, for consistency.
|
|
|
|
%define CMAKE_FLAGS %{nil}
|
|
|
|
%if 0%{?suse_version} >= 1300
|
|
|
|
BuildRequires: ninja
|
|
|
|
%define CMAKE_FLAGS -GNinja
|
|
|
|
%define make_jobs ninja -v %{?_smp_mflags}
|
|
|
|
%define cmake_install DESTDIR=%{buildroot} ninja install
|
|
|
|
%else
|
|
|
|
# Fallback to make otherwise
|
|
|
|
BuildRequires: make
|
2020-08-18 12:16:26 +02:00
|
|
|
%define make_jobs make VERBOSE=1 %{?_smp_mflags}
|
2017-03-20 14:25:36 +01:00
|
|
|
%define cmake_install DESTDIR=%{buildroot} make install
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
RDMA core userspace infrastructure and documentation, including initialization
|
|
|
|
scripts, kernel driver-specific modprobe override configs, IPoIB network
|
|
|
|
scripts, dracut rules, and the rdma-ndd utility.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: RDMA core development libraries and headers
|
2017-03-21 09:32:09 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-03-20 14:25:36 +01:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2017-03-30 11:47:22 +02:00
|
|
|
|
|
|
|
Requires: %{rdmacm_lname} = %{version}-%{release}
|
2017-05-23 14:28:50 +02:00
|
|
|
Requires: %{umad_lname} = %{version}-%{release}
|
|
|
|
Requires: %{verbs_lname} = %{version}-%{release}
|
2018-01-19 18:10:00 +01:00
|
|
|
%if 0%{?dma_coherent}
|
2019-09-27 09:18:23 +02:00
|
|
|
Requires: %{efa_lname} = %{version}-%{release}
|
2023-04-19 10:52:08 +02:00
|
|
|
Requires: %{mana_lname} = %{version}-%{release}
|
2017-08-23 14:21:21 +02:00
|
|
|
Requires: %{mlx4_lname} = %{version}-%{release}
|
2017-05-09 17:48:37 +02:00
|
|
|
Requires: %{mlx5_lname} = %{version}-%{release}
|
|
|
|
%endif
|
2017-05-05 16:23:54 +02:00
|
|
|
Requires: rsocket = %{version}-%{release}
|
2017-03-30 11:47:22 +02:00
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
Provides: libibverbs-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libibverbs-devel < %{version}-%{release}
|
2017-03-30 11:47:22 +02:00
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
Provides: libibumad-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libibumad-devel < %{version}-%{release}
|
|
|
|
Provides: librdmacm-devel = %{version}-%{release}
|
2017-03-30 11:47:22 +02:00
|
|
|
|
2017-03-20 15:08:02 +01:00
|
|
|
Obsoletes: librdmacm-devel < %{version}-%{release}
|
2017-03-29 09:53:06 +02:00
|
|
|
#Requires: ibacm = %%{version}-%%{release}
|
2017-03-20 14:25:36 +01:00
|
|
|
Provides: ibacm-devel = %{version}-%{release}
|
|
|
|
Obsoletes: ibacm-devel < %{version}-%{release}
|
2018-12-13 17:11:38 +01:00
|
|
|
%if %{with_static}
|
|
|
|
# Since our pkg-config files include private references to these packages they
|
|
|
|
# need to have their .pc files installed too, even for dynamic linking, or
|
|
|
|
# pkg-config breaks.
|
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-route-3.0)
|
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
Requires: infiniband-diags = %{version}-%{release}
|
|
|
|
Provides: infiniband-diags-devel = %{version}-%{release}
|
|
|
|
Obsoletes: infiniband-diags-devel < %{version}-%{release}
|
|
|
|
Provides: libibmad-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libibmad-devel < %{version}
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%description devel
|
|
|
|
RDMA core development libraries and headers.
|
|
|
|
|
|
|
|
%package -n libibverbs
|
|
|
|
Summary: Library & drivers for direct userspace use of InfiniBand/iWARP/RoCE hardware
|
2017-05-05 16:23:54 +02:00
|
|
|
Group: System/Libraries
|
2017-03-20 14:25:36 +01:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2017-03-22 11:22:17 +01:00
|
|
|
Obsoletes: libcxgb4-rdmav2 < %{version}-%{release}
|
2019-09-27 09:18:23 +02:00
|
|
|
Obsoletes: libefa-rdmav2 < %{version}-%{release}
|
2017-03-22 11:22:17 +01:00
|
|
|
Obsoletes: libhfi1verbs-rdmav2 < %{version}-%{release}
|
|
|
|
Obsoletes: libipathverbs-rdmav2 < %{version}-%{release}
|
2023-04-19 10:52:08 +02:00
|
|
|
Obsoletes: libmana-rdmav2 < %{version}-%{release}
|
2017-03-22 11:22:17 +01:00
|
|
|
Obsoletes: libmlx4-rdmav2 < %{version}-%{release}
|
|
|
|
Obsoletes: libmlx5-rdmav2 < %{version}-%{release}
|
|
|
|
Obsoletes: libmthca-rdmav2 < %{version}-%{release}
|
|
|
|
Obsoletes: libocrdma-rdmav2 < %{version}-%{release}
|
|
|
|
Obsoletes: librxe-rdmav2 < %{version}-%{release}
|
2017-08-23 14:21:21 +02:00
|
|
|
%if 0%{?dma_coherent}
|
2019-09-27 09:18:23 +02:00
|
|
|
Requires: %{efa_lname} = %{version}-%{release}
|
2023-04-19 10:52:08 +02:00
|
|
|
Requires: %{mana_lname} = %{version}-%{release}
|
2017-08-23 14:21:21 +02:00
|
|
|
Requires: %{mlx4_lname} = %{version}-%{release}
|
2017-05-09 17:48:37 +02:00
|
|
|
Requires: %{mlx5_lname} = %{version}-%{release}
|
|
|
|
%endif
|
2020-08-18 12:16:26 +02:00
|
|
|
# Recommended packages for rxe
|
2018-10-25 12:47:56 +02:00
|
|
|
Recommends: iproute2
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n libibverbs
|
|
|
|
libibverbs is a library that allows userspace processes to use RDMA
|
|
|
|
"verbs" as described in the InfiniBand Architecture Specification and
|
|
|
|
the RDMA Protocol Verbs Specification. This includes direct hardware
|
|
|
|
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
|
|
|
|
fast path operations.
|
|
|
|
|
|
|
|
Device-specific plug-in ibverbs userspace drivers are included:
|
|
|
|
|
|
|
|
- libcxgb4: Chelsio T4 iWARP HCA
|
2019-09-27 09:18:23 +02:00
|
|
|
- libefa: Amazon Elastic Fabric Adapter
|
2017-03-20 14:25:36 +01:00
|
|
|
- libhfi1: Intel Omni-Path HFI
|
2017-08-23 14:21:21 +02:00
|
|
|
- libhns: HiSilicon Hip06 SoC
|
2017-03-20 14:25:36 +01:00
|
|
|
- libipathverbs: QLogic InfiniPath HCA
|
2021-12-03 08:28:51 +01:00
|
|
|
- libirdma: Intel Ethernet Connection RDMA
|
2023-04-19 10:52:08 +02:00
|
|
|
- libmana: Microsoft Azure Network Adapter
|
2017-03-20 14:25:36 +01:00
|
|
|
- libmlx4: Mellanox ConnectX-3 InfiniBand HCA
|
|
|
|
- libmlx5: Mellanox Connect-IB/X-4+ InfiniBand HCA
|
|
|
|
- libmthca: Mellanox InfiniBand HCA
|
|
|
|
- libocrdma: Emulex OneConnect RDMA/RoCE Device
|
2017-08-23 14:21:21 +02:00
|
|
|
- libqedr: QLogic QL4xxx RoCE HCA
|
2017-03-20 14:25:36 +01:00
|
|
|
- librxe: A software implementation of the RoCE protocol
|
2019-09-27 09:18:23 +02:00
|
|
|
- libsiw: A software implementation of the iWarp protocol
|
2017-08-23 14:21:21 +02:00
|
|
|
- libvmw_pvrdma: VMware paravirtual RDMA device
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%package -n %verbs_lname
|
|
|
|
Summary: Ibverbs runtime library
|
|
|
|
Group: System/Libraries
|
2017-06-07 15:21:44 +02:00
|
|
|
Requires: libibverbs = %{version}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n %verbs_lname
|
|
|
|
This package contains the ibverbs runtime library.
|
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%package -n %efa_lname
|
|
|
|
Summary: EFA runtime library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %efa_lname
|
|
|
|
This package contains the efa runtime library.
|
|
|
|
|
2023-04-19 10:52:08 +02:00
|
|
|
%package -n %mana_lname
|
|
|
|
Summary: MANA runtime library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %mana_lname
|
|
|
|
This package contains the mana runtime library.
|
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
%package -n %mlx4_lname
|
|
|
|
Summary: MLX4 runtime library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %mlx4_lname
|
|
|
|
This package contains the mlx4 runtime library.
|
|
|
|
|
2017-05-09 17:48:37 +02:00
|
|
|
%package -n %mlx5_lname
|
|
|
|
Summary: MLX5 runtime library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %mlx5_lname
|
|
|
|
This package contains the mlx5 runtime library.
|
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%package -n libibnetdisc%{ibnetdisc_major}
|
|
|
|
Summary: Infiniband Net Discovery runtime library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libibnetdisc%{ibnetdisc_major}
|
|
|
|
This package contains the Infiniband Net Discovery runtime library needed
|
|
|
|
mainly by infiniband-diags.
|
|
|
|
|
2017-03-21 09:32:09 +01:00
|
|
|
%package -n libibverbs-utils
|
2017-03-20 14:25:36 +01:00
|
|
|
Summary: Examples for the libibverbs library
|
2017-05-05 16:23:54 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2017-03-20 14:25:36 +01:00
|
|
|
Requires: libibverbs%{?_isa} = %{version}
|
|
|
|
|
|
|
|
%description -n libibverbs-utils
|
|
|
|
Useful libibverbs example programs such as ibv_devinfo, which
|
|
|
|
displays information about RDMA devices.
|
|
|
|
|
|
|
|
%package -n ibacm
|
|
|
|
Summary: InfiniBand Communication Manager Assistant
|
2017-05-05 16:23:54 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2017-08-23 14:21:21 +02:00
|
|
|
%{?systemd_requires}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}
|
2017-07-21 13:52:08 +02:00
|
|
|
Obsoletes: libibacmp1 < %{version}
|
2017-08-23 14:21:21 +02:00
|
|
|
Provides: libibacmp1 = %{version}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n ibacm
|
|
|
|
The ibacm daemon helps reduce the load of managing path record lookups on
|
|
|
|
large InfiniBand fabrics by providing a user space implementation of what
|
|
|
|
is functionally similar to an ARP cache. The use of ibacm, when properly
|
|
|
|
configured, can reduce the SA packet load of a large IB cluster from O(n^2)
|
|
|
|
to O(n). The ibacm daemon is started and normally runs in the background,
|
|
|
|
user applications need not know about this daemon as long as their app
|
|
|
|
uses librdmacm to handle connection bring up/tear down. The librdmacm
|
|
|
|
library knows how to talk directly to the ibacm daemon to retrieve data.
|
2017-03-29 09:53:06 +02:00
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%package -n infiniband-diags
|
|
|
|
Summary: InfiniBand Diagnostic Tools
|
|
|
|
Group: Productivity/Networking/Diagnostic
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
|
|
|
|
%description -n infiniband-diags
|
|
|
|
diags provides IB diagnostic programs and scripts needed to diagnose an
|
|
|
|
IB subnet.
|
|
|
|
|
|
|
|
%package -n libibmad%{mad_major}
|
|
|
|
Summary: Libibmad runtime library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libibmad%{mad_major}
|
|
|
|
Libibmad provides low layer IB functions for use by the IB diagnostic
|
|
|
|
and management programs. These include MAD, SA, SMP, and other basic IB
|
|
|
|
functions. This package contains the runtime library.
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%package -n iwpmd
|
|
|
|
Summary: Userspace iWarp Port Mapper daemon
|
2017-03-21 09:32:09 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-03-20 14:25:36 +01:00
|
|
|
Requires: %{name}%{?_isa} = %{version}
|
2017-05-05 16:23:54 +02:00
|
|
|
%{?systemd_requires}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n iwpmd
|
|
|
|
iwpmd provides a userspace service for iWarp drivers to claim
|
|
|
|
tcp ports through the standard socket interface.
|
|
|
|
|
|
|
|
%package -n %umad_lname
|
2017-05-05 16:23:54 +02:00
|
|
|
Summary: OpenFabrics Alliance InfiniBand Userspace Management Datagram library
|
2017-03-20 14:25:36 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %umad_lname
|
|
|
|
libibumad provides the userspace management datagram (umad) library
|
|
|
|
functions, which sit on top of the umad modules in the kernel. These
|
|
|
|
are used by the IB diagnostic and management tools, including OpenSM.
|
|
|
|
|
|
|
|
%package -n %rdmacm_lname
|
|
|
|
Summary: Userspace RDMA Connection Manager
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
2018-03-21 15:25:18 +01:00
|
|
|
Provides: librdmacm = %{version}
|
|
|
|
Obsoletes: librdmacm < %{version}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n %rdmacm_lname
|
2017-08-29 16:09:49 +02:00
|
|
|
librdmacm provides a userspace RDMA Communication Management API.
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2017-05-05 16:23:54 +02:00
|
|
|
%package -n rsocket
|
|
|
|
Summary: Preloadable library to turn the socket API RDMA-aware
|
2019-10-02 16:07:25 +02:00
|
|
|
# Older librdmacm-tools used to provide rsocket
|
2017-05-05 16:23:54 +02:00
|
|
|
Group: System/Libraries
|
2019-10-02 16:07:25 +02:00
|
|
|
Conflicts: librdmacm-tools < 2
|
2017-05-05 16:23:54 +02:00
|
|
|
|
|
|
|
%description -n rsocket
|
|
|
|
Existing applications can make use of rsockets through the use this
|
|
|
|
preloadable library. See the documentation in the packaged rsocket(7)
|
|
|
|
manpage for details.
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%package -n librdmacm-utils
|
|
|
|
Summary: Examples for the librdmacm library
|
2017-05-05 16:23:54 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2019-10-02 16:07:25 +02:00
|
|
|
Obsoletes: librdmacm-tools < %{version}
|
|
|
|
Provides: librdmacm-tools = %{version}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n librdmacm-utils
|
|
|
|
Example test programs for the librdmacm library.
|
|
|
|
|
|
|
|
%package -n srp_daemon
|
2017-03-20 15:08:02 +01:00
|
|
|
Summary: Tools for using the InfiniBand SRP protocol devices
|
2017-08-23 14:21:21 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-03-20 15:08:02 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Obsoletes: srptools <= 1.0.3
|
|
|
|
Provides: srptools = %{version}
|
2017-05-05 16:23:54 +02:00
|
|
|
%{?systemd_requires}
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%description -n srp_daemon
|
|
|
|
In conjunction with the kernel ib_srp driver, srp_daemon allows you to
|
|
|
|
discover and use SCSI devices via the SCSI RDMA Protocol over InfiniBand.
|
|
|
|
|
2017-05-15 18:34:17 +02:00
|
|
|
%package -n rdma-ndd
|
|
|
|
Summary: Daemon to manage RDMA Node Description
|
2017-08-09 14:10:35 +02:00
|
|
|
Group: System/Daemons
|
2017-05-15 18:34:17 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
# The udev rules in rdma need to be aware of rdma-ndd:
|
|
|
|
Conflicts: rdma < 2.1
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description -n rdma-ndd
|
|
|
|
rdma-ndd is a system daemon which watches for rdma device changes and/or
|
|
|
|
hostname changes and updates the Node Description of the rdma devices based
|
|
|
|
on those changes.
|
|
|
|
|
2019-02-06 09:55:38 +01:00
|
|
|
%package -n python3-pyverbs
|
|
|
|
Summary: Python3 API over IB verbs
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
|
|
|
%description -n python3-pyverbs
|
|
|
|
Pyverbs is a Cython-based Python API over libibverbs, providing an
|
|
|
|
easy, object-oriented access to IB verbs.
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%prep
|
2017-05-08 10:49:09 +02:00
|
|
|
%setup -q -n %{name}-%{version}%{git_ver}
|
2018-06-14 18:00:26 +02:00
|
|
|
#Extract prebuilt pandoc file in the buildlib directory
|
2023-09-05 09:38:41 +02:00
|
|
|
(cd buildlib && tar -xf %{S:3})
|
2024-02-14 15:07:20 +01:00
|
|
|
%patch -P 0
|
2024-02-14 14:32:23 +01:00
|
|
|
# On s390, disable autoload of unsupported modules
|
|
|
|
%ifarch s390 s390x
|
2024-02-14 15:07:20 +01:00
|
|
|
%patch -P 1
|
2024-02-14 14:32:23 +01:00
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
# New RPM defines _rundir, usually as /run
|
|
|
|
%if 0%{?_rundir:1}
|
|
|
|
%else
|
|
|
|
%define _rundir /var/run
|
|
|
|
%endif
|
|
|
|
|
2018-06-14 08:35:06 +02:00
|
|
|
%{!?EXTRA_CMAKE_FLAGS: %define EXTRA_CMAKE_FLAGS %{nil}}
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
# Pass all of the rpm paths directly to GNUInstallDirs and our other defines.
|
|
|
|
%cmake %{CMAKE_FLAGS} \
|
|
|
|
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_BINDIR:PATH=%{_bindir} \
|
|
|
|
-DCMAKE_INSTALL_SBINDIR:PATH=%{_sbindir} \
|
2021-10-15 15:12:09 +02:00
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
2017-03-20 14:25:36 +01:00
|
|
|
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
|
|
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=%{_localstatedir} \
|
|
|
|
-DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=%{_sharedstatedir} \
|
2021-10-15 15:12:09 +02:00
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
|
2017-03-20 14:25:36 +01:00
|
|
|
-DCMAKE_INSTALL_INFODIR:PATH=%{_infodir} \
|
|
|
|
-DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
|
2022-09-14 08:20:09 +02:00
|
|
|
-DCMAKE_INSTALL_MODPROBEDIR:PATH=%{_modprobedir} \
|
2017-03-20 14:25:36 +01:00
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
|
|
|
|
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR:PATH=%{_unitdir} \
|
2021-02-17 13:21:43 +01:00
|
|
|
-DCMAKE_INSTALL_SYSTEMD_BINDIR:PATH=%{_prefix}/lib/systemd \
|
2017-03-20 14:25:36 +01:00
|
|
|
-DCMAKE_INSTALL_INITDDIR:PATH=%{_initddir} \
|
|
|
|
-DCMAKE_INSTALL_RUNDIR:PATH=%{_rundir} \
|
|
|
|
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}-%{version} \
|
2018-06-14 08:35:06 +02:00
|
|
|
-DCMAKE_INSTALL_UDEV_RULESDIR:PATH=%{_udevrulesdir} \
|
2019-09-27 09:18:23 +02:00
|
|
|
-DCMAKE_INSTALL_PERLDIR:PATH=%{perl_vendorlib} \
|
2018-12-13 17:11:38 +01:00
|
|
|
%if %{with_static}
|
|
|
|
-DENABLE_STATIC=1 \
|
|
|
|
%endif
|
2019-02-06 09:55:38 +01:00
|
|
|
%{EXTRA_CMAKE_FLAGS} \
|
|
|
|
%if %{defined __python3}
|
|
|
|
-DPYTHON_EXECUTABLE:PATH=%{__python3} \
|
|
|
|
-DCMAKE_INSTALL_PYTHON_ARCH_LIB:PATH=%{python3_sitearch} \
|
|
|
|
%endif
|
|
|
|
%if %{with_pyverbs}
|
|
|
|
-DNO_PYVERBS=0
|
|
|
|
%else
|
|
|
|
-DNO_PYVERBS=1
|
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd build
|
|
|
|
%cmake_install
|
|
|
|
cd ..
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/rdma
|
|
|
|
|
2021-05-18 12:30:39 +02:00
|
|
|
%global dracutlibdir %%{_prefix}/lib/dracut/
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
|
|
|
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/05rdma
|
2022-03-10 10:58:05 +01:00
|
|
|
mkdir -p %{buildroot}%{_modprobedir}
|
2017-05-23 14:28:50 +02:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
2017-08-23 14:21:21 +02:00
|
|
|
|
2017-08-30 17:58:09 +02:00
|
|
|
# Port type setup for mlx4 dual port cards
|
2022-03-10 10:58:05 +01:00
|
|
|
install -D -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{_modprobedir}/50-libmlx4.conf
|
2017-03-20 14:25:36 +01:00
|
|
|
install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf
|
2022-03-10 10:58:05 +01:00
|
|
|
%if 0%{?dma_coherent}
|
|
|
|
chmod 0644 %{buildroot}%{_modprobedir}/mlx4.conf
|
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh
|
2017-05-23 14:28:50 +02:00
|
|
|
|
2017-08-30 17:58:09 +02:00
|
|
|
# Dracut file for IB support during boot
|
2019-09-27 09:18:23 +02:00
|
|
|
install -D -m0644 suse/module-setup.sh %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2021-05-18 12:30:39 +02:00
|
|
|
%if "%{_libexecdir}" != "/usr/libexec"
|
2022-03-10 10:58:05 +01:00
|
|
|
sed 's-/usr/libexec-%{_libexecdir}-g' -i %{buildroot}%{_modprobedir}/50-libmlx4.conf
|
2021-05-18 12:30:39 +02:00
|
|
|
sed 's-/usr/libexec-%{_libexecdir}-g' -i %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
|
|
|
%endif
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
# ibacm
|
|
|
|
cd build
|
|
|
|
LD_LIBRARY_PATH=./lib bin/ib_acme -D . -O
|
|
|
|
install -D -m0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
|
|
|
|
|
|
|
|
for service in rdma rdma-ndd ibacm iwpmd srp_daemon; do ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc${service}; done
|
|
|
|
|
|
|
|
# Delete the package's init.d scripts
|
|
|
|
rm -rf %{buildroot}/%{_initddir}/
|
2017-08-23 14:21:21 +02:00
|
|
|
rm -rf %{buildroot}/%{_sbindir}/srp_daemon.sh
|
2017-05-30 11:29:56 +02:00
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%post -n %verbs_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %verbs_lname -p /sbin/ldconfig
|
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%post -n %efa_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %efa_lname -p /sbin/ldconfig
|
|
|
|
|
2023-04-19 10:52:08 +02:00
|
|
|
%post -n %mana_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %mana_lname -p /sbin/ldconfig
|
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
%post -n %mlx4_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %mlx4_lname -p /sbin/ldconfig
|
|
|
|
|
2017-05-09 17:48:37 +02:00
|
|
|
%post -n %mlx5_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %mlx5_lname -p /sbin/ldconfig
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%post -n %umad_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %umad_lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n %rdmacm_lname -p /sbin/ldconfig
|
|
|
|
%postun -n %rdmacm_lname -p /sbin/ldconfig
|
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%post -n libibnetdisc%{ibnetdisc_major} -p /sbin/ldconfig
|
|
|
|
%postun -n libibnetdisc%{ibnetdisc_major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libibmad%{mad_major} -p /sbin/ldconfig
|
|
|
|
%postun -n libibmad%{mad_major} -p /sbin/ldconfig
|
|
|
|
|
2022-03-10 10:58:05 +01:00
|
|
|
%pre
|
|
|
|
# Avoid restoring outdated stuff in posttrans
|
|
|
|
for _f in %{?modprobe_d_files}; do
|
|
|
|
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
|
|
|
|
mv -f "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}.rpmsave.old" || :
|
|
|
|
done
|
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
%post
|
2017-08-30 17:58:09 +02:00
|
|
|
# we ship udev rules, so trigger an update.
|
2020-01-13 10:42:42 +01:00
|
|
|
%{_bindir}/udevadm trigger --subsystem-match=infiniband --action=change || true
|
|
|
|
%{_bindir}/udevadm trigger --subsystem-match=infiniband_mad --action=change || true
|
2017-08-23 14:21:21 +02:00
|
|
|
|
2022-03-10 10:58:05 +01:00
|
|
|
%posttrans
|
|
|
|
# Migration of modprobe.conf files to _modprobedir
|
|
|
|
for _f in %{?modprobe_d_files}; do
|
|
|
|
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
|
|
|
|
mv -fv "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}" || :
|
|
|
|
done
|
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
#
|
|
|
|
# ibacm
|
|
|
|
#
|
2017-03-20 14:25:36 +01:00
|
|
|
%pre -n ibacm
|
2017-08-23 14:21:21 +02:00
|
|
|
%service_add_pre ibacm.service ibacm.socket
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%post -n ibacm
|
2017-08-23 14:21:21 +02:00
|
|
|
%service_add_post ibacm.service ibacm.socket
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%preun -n ibacm
|
2017-08-23 14:21:21 +02:00
|
|
|
%service_del_preun ibacm.service ibacm.socket
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%postun -n ibacm
|
2017-08-23 14:21:21 +02:00
|
|
|
%service_del_postun ibacm.service ibacm.socket
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
#
|
|
|
|
# srp daemon
|
|
|
|
#
|
2017-03-20 14:25:36 +01:00
|
|
|
%pre -n srp_daemon
|
2018-06-12 07:56:27 +02:00
|
|
|
%service_add_pre srp_daemon.service
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%post -n srp_daemon
|
2018-06-12 07:56:27 +02:00
|
|
|
%service_add_post srp_daemon.service
|
2017-08-30 17:58:09 +02:00
|
|
|
# we ship udev rules, so trigger an update.
|
2020-01-13 10:42:42 +01:00
|
|
|
%{_bindir}/udevadm trigger --subsystem-match=infiniband_mad --action=change
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%preun -n srp_daemon
|
2017-08-30 17:58:09 +02:00
|
|
|
%service_del_preun srp_daemon.service
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%postun -n srp_daemon
|
2017-08-30 17:58:09 +02:00
|
|
|
%service_del_postun srp_daemon.service
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
#
|
|
|
|
# iwpmd
|
|
|
|
#
|
2017-03-20 14:25:36 +01:00
|
|
|
%pre -n iwpmd
|
|
|
|
%service_add_pre ibiwpmd.service
|
|
|
|
|
|
|
|
%post -n iwpmd
|
|
|
|
%service_add_post iwpmd.service
|
|
|
|
|
|
|
|
%preun -n iwpmd
|
2017-08-23 14:21:21 +02:00
|
|
|
%service_del_preun iwpmd.service
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%postun -n iwpmd
|
2017-08-23 14:21:21 +02:00
|
|
|
%service_del_postun iwpmd.service
|
2017-03-20 14:25:36 +01:00
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
#
|
|
|
|
# rdma-ndd
|
|
|
|
#
|
2017-05-15 18:34:17 +02:00
|
|
|
%pre -n rdma-ndd
|
|
|
|
%service_add_pre rdma-ndd.service
|
|
|
|
|
|
|
|
%preun -n rdma-ndd
|
|
|
|
%service_del_preun rdma-ndd.service
|
|
|
|
|
|
|
|
%post -n rdma-ndd
|
|
|
|
%service_add_post rdma-ndd.service
|
2021-02-24 08:55:00 +01:00
|
|
|
# we ship udev rules, so trigger an update.
|
|
|
|
%{_bindir}/udevadm trigger --subsystem-match=infiniband --action=change || true
|
2017-05-15 18:34:17 +02:00
|
|
|
|
|
|
|
%postun -n rdma-ndd
|
|
|
|
%service_del_postun rdma-ndd.service
|
2017-05-23 14:28:50 +02:00
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%files
|
|
|
|
%dir %{_sysconfdir}/rdma
|
2017-08-23 14:21:21 +02:00
|
|
|
%dir %{_sysconfdir}/rdma/modules
|
2017-03-20 14:25:36 +01:00
|
|
|
%dir %{_docdir}/%{name}-%{version}
|
2019-05-13 10:44:12 +02:00
|
|
|
%dir %{_udevrulesdir}
|
2022-03-10 10:58:05 +01:00
|
|
|
%dir %{_modprobedir}
|
2023-04-19 10:52:08 +02:00
|
|
|
%doc %{_docdir}/%{name}-%{version}/70-persistent-ipoib.rules
|
2017-03-20 14:25:36 +01:00
|
|
|
%doc %{_docdir}/%{name}-%{version}/README.md
|
2019-05-13 10:44:12 +02:00
|
|
|
%doc %{_docdir}/%{name}-%{version}/udev.md
|
2017-08-23 14:21:21 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/mlx4.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/infiniband.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/iwarp.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/opa.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/rdma.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/roce.conf
|
|
|
|
%if 0%{?dma_coherent}
|
2022-03-10 10:58:05 +01:00
|
|
|
%{_modprobedir}/mlx4.conf
|
2017-08-23 14:21:21 +02:00
|
|
|
%endif
|
2022-03-10 10:58:05 +01:00
|
|
|
%{_modprobedir}/truescale.conf
|
2017-08-23 14:21:21 +02:00
|
|
|
%{_unitdir}/rdma-hw.target
|
|
|
|
%{_unitdir}/rdma-load-modules@.service
|
2017-03-20 14:25:36 +01:00
|
|
|
%dir %{dracutlibdir}
|
|
|
|
%dir %{dracutlibdir}/modules.d
|
|
|
|
%dir %{dracutlibdir}/modules.d/05rdma
|
|
|
|
%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
2019-09-27 09:18:23 +02:00
|
|
|
%{_udevrulesdir}/../rdma_rename
|
|
|
|
%{_udevrulesdir}/60-rdma-persistent-naming.rules
|
2017-08-23 14:21:21 +02:00
|
|
|
%{_udevrulesdir}/75-rdma-description.rules
|
|
|
|
%{_udevrulesdir}/90-rdma-hw-modules.rules
|
|
|
|
%{_udevrulesdir}/90-rdma-ulp-modules.rules
|
|
|
|
%{_udevrulesdir}/90-rdma-umad.rules
|
2022-03-10 10:58:05 +01:00
|
|
|
%{_modprobedir}/50-libmlx4.conf
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_libexecdir}/mlx4-setup.sh
|
|
|
|
%{_libexecdir}/truescale-serdes.cmds
|
|
|
|
%license COPYING.*
|
|
|
|
%{_sbindir}/rcrdma
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc %{_docdir}/%{name}-%{version}/MAINTAINERS
|
2017-08-23 14:21:21 +02:00
|
|
|
%dir %{_includedir}/infiniband
|
|
|
|
%dir %{_includedir}/rdma
|
|
|
|
%{_includedir}/infiniband/*
|
|
|
|
%{_includedir}/rdma/*
|
2018-12-13 17:11:38 +01:00
|
|
|
%if %{with_static}
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_libdir}/lib*.so
|
2018-10-25 12:47:56 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2019-09-27 09:18:23 +02:00
|
|
|
%{_mandir}/man3/ibnd_*
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_mandir}/man3/ibv_*
|
|
|
|
%{_mandir}/man3/rdma*
|
|
|
|
%{_mandir}/man3/umad*
|
|
|
|
%{_mandir}/man3/*_to_ibv_rate.*
|
|
|
|
%{_mandir}/man7/rdma_cm.*
|
2017-08-23 14:21:21 +02:00
|
|
|
%if 0%{?dma_coherent}
|
2019-09-27 09:18:23 +02:00
|
|
|
%{_mandir}/man3/efadv*
|
2023-04-19 10:52:08 +02:00
|
|
|
%{_mandir}/man3/manadv*
|
2017-08-23 14:21:21 +02:00
|
|
|
%{_mandir}/man3/mlx5dv*
|
|
|
|
%{_mandir}/man3/mlx4dv*
|
2019-09-27 09:18:23 +02:00
|
|
|
%{_mandir}/man7/efadv*
|
2023-04-19 10:52:08 +02:00
|
|
|
%{_mandir}/man7/manadv*
|
2017-08-23 14:21:21 +02:00
|
|
|
%{_mandir}/man7/mlx5dv*
|
|
|
|
%{_mandir}/man7/mlx4dv*
|
2017-05-09 17:48:37 +02:00
|
|
|
%endif
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%files -n libibverbs
|
|
|
|
%dir %{_sysconfdir}/libibverbs.d
|
|
|
|
%dir %{_libdir}/libibverbs
|
|
|
|
%{_libdir}/libibverbs/*.so
|
|
|
|
%config(noreplace) %{_sysconfdir}/libibverbs.d/*.driver
|
|
|
|
%doc %{_docdir}/%{name}-%{version}/libibverbs.md
|
|
|
|
%doc %{_docdir}/%{name}-%{version}/rxe.md
|
2017-12-06 15:19:55 +01:00
|
|
|
%doc %{_docdir}/%{name}-%{version}/tag_matching.md
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_mandir}/man7/rxe*
|
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%files -n libibnetdisc%{ibnetdisc_major}
|
|
|
|
%{_libdir}/libibnetdisc.so.*
|
|
|
|
|
|
|
|
%files -n libibmad%{mad_major}
|
|
|
|
%{_libdir}/libibmad.so.*
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%files -n %verbs_lname
|
|
|
|
%{_libdir}/libibverbs*.so.*
|
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
%if 0%{?dma_coherent}
|
2019-09-27 09:18:23 +02:00
|
|
|
%files -n %efa_lname
|
|
|
|
%{_libdir}/libefa*.so.*
|
|
|
|
|
2023-04-19 10:52:08 +02:00
|
|
|
%files -n %mana_lname
|
|
|
|
%{_libdir}/libmana*.so.*
|
|
|
|
|
2017-08-23 14:21:21 +02:00
|
|
|
%files -n %mlx4_lname
|
|
|
|
%{_libdir}/libmlx4*.so.*
|
|
|
|
|
2017-05-09 17:48:37 +02:00
|
|
|
%files -n %mlx5_lname
|
|
|
|
%{_libdir}/libmlx5*.so.*
|
|
|
|
%endif
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%files -n libibverbs-utils
|
|
|
|
%{_bindir}/ibv_*
|
|
|
|
%{_mandir}/man1/ibv_*
|
|
|
|
|
|
|
|
%files -n ibacm
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/ibacm_opts.cfg
|
|
|
|
%{_bindir}/ib_acme
|
|
|
|
%{_sbindir}/ibacm
|
|
|
|
%{_mandir}/man1/ib_acme.*
|
|
|
|
%{_mandir}/man7/ibacm.*
|
|
|
|
%{_mandir}/man7/ibacm_prov.*
|
2020-08-18 12:16:26 +02:00
|
|
|
%{_mandir}/man8/ibacm.*
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_unitdir}/ibacm.service
|
2017-08-23 14:21:21 +02:00
|
|
|
%{_unitdir}/ibacm.socket
|
|
|
|
%dir %{_libdir}/ibacm
|
|
|
|
%{_libdir}/ibacm/*
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_sbindir}/rcibacm
|
|
|
|
%doc %{_docdir}/%{name}-%{version}/ibacm.md
|
|
|
|
|
2019-09-27 09:18:23 +02:00
|
|
|
%files -n infiniband-diags
|
|
|
|
%dir %{_sysconfdir}/infiniband-diags
|
|
|
|
%config(noreplace) %{_sysconfdir}/infiniband-diags/*
|
|
|
|
%{_sbindir}/ibaddr
|
|
|
|
%{_mandir}/man8/ibaddr*
|
|
|
|
%{_sbindir}/ibnetdiscover
|
|
|
|
%{_mandir}/man8/ibnetdiscover*
|
|
|
|
%{_sbindir}/ibping
|
|
|
|
%{_mandir}/man8/ibping*
|
|
|
|
%{_sbindir}/ibportstate
|
|
|
|
%{_mandir}/man8/ibportstate*
|
|
|
|
%{_sbindir}/ibroute
|
|
|
|
%{_mandir}/man8/ibroute.*
|
|
|
|
%{_sbindir}/ibstat
|
|
|
|
%{_mandir}/man8/ibstat.*
|
|
|
|
%{_sbindir}/ibsysstat
|
|
|
|
%{_mandir}/man8/ibsysstat*
|
|
|
|
%{_sbindir}/ibtracert
|
|
|
|
%{_mandir}/man8/ibtracert*
|
|
|
|
%{_sbindir}/perfquery
|
|
|
|
%{_mandir}/man8/perfquery*
|
|
|
|
%{_sbindir}/sminfo
|
|
|
|
%{_mandir}/man8/sminfo*
|
|
|
|
%{_sbindir}/smpdump
|
|
|
|
%{_mandir}/man8/smpdump*
|
|
|
|
%{_sbindir}/smpquery
|
|
|
|
%{_mandir}/man8/smpquery*
|
|
|
|
%{_sbindir}/saquery
|
|
|
|
%{_mandir}/man8/saquery*
|
|
|
|
%{_sbindir}/vendstat
|
|
|
|
%{_mandir}/man8/vendstat*
|
|
|
|
%{_sbindir}/iblinkinfo
|
|
|
|
%{_mandir}/man8/iblinkinfo*
|
|
|
|
%{_sbindir}/ibqueryerrors
|
|
|
|
%{_mandir}/man8/ibqueryerrors*
|
|
|
|
%{_sbindir}/ibcacheedit
|
|
|
|
%{_mandir}/man8/ibcacheedit*
|
|
|
|
%{_sbindir}/ibccquery
|
|
|
|
%{_mandir}/man8/ibccquery*
|
|
|
|
%{_sbindir}/ibccconfig
|
|
|
|
%{_mandir}/man8/ibccconfig*
|
|
|
|
%{_sbindir}/dump_fts
|
|
|
|
%{_mandir}/man8/dump_fts*
|
|
|
|
%{_sbindir}/ibhosts
|
|
|
|
%{_mandir}/man8/ibhosts*
|
|
|
|
%{_sbindir}/ibswitches
|
|
|
|
%{_mandir}/man8/ibswitches*
|
|
|
|
%{_sbindir}/ibnodes
|
|
|
|
%{_mandir}/man8/ibnodes*
|
|
|
|
%{_sbindir}/ibrouters
|
|
|
|
%{_mandir}/man8/ibrouters*
|
|
|
|
%{_sbindir}/ibfindnodesusing.pl
|
|
|
|
%{_mandir}/man8/ibfindnodesusing*
|
|
|
|
%{_sbindir}/ibidsverify.pl
|
|
|
|
%{_mandir}/man8/ibidsverify*
|
|
|
|
%{_sbindir}/check_lft_balance.pl
|
|
|
|
%{_mandir}/man8/check_lft_balance*
|
|
|
|
%{_sbindir}/dump_lfts.sh
|
|
|
|
%{_mandir}/man8/dump_lfts*
|
|
|
|
%{_sbindir}/dump_mfts.sh
|
|
|
|
%{_mandir}/man8/dump_mfts*
|
|
|
|
%{_sbindir}/ibstatus
|
|
|
|
%{_mandir}/man8/ibstatus*
|
|
|
|
%{_mandir}/man8/infiniband-diags*
|
|
|
|
%{perl_vendorlib}/IBswcountlimits.pm
|
|
|
|
|
2017-03-20 14:25:36 +01:00
|
|
|
%files -n iwpmd
|
2017-08-23 14:21:21 +02:00
|
|
|
%dir %{_sysconfdir}/rdma
|
|
|
|
%dir %{_sysconfdir}/rdma/modules
|
|
|
|
%{_sbindir}/iwpmd
|
|
|
|
%{_sbindir}/rciwpmd
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_unitdir}/iwpmd.service
|
2017-08-23 14:21:21 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/iwpmd.conf
|
2017-03-20 14:25:36 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/iwpmd.conf
|
2017-08-23 14:21:21 +02:00
|
|
|
%{_udevrulesdir}/90-iwpmd.rules
|
|
|
|
%{_mandir}/man8/iwpmd.*
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_mandir}/man5/iwpmd.*
|
|
|
|
|
|
|
|
%files -n %umad_lname
|
|
|
|
%{_libdir}/libibumad*.so.*
|
|
|
|
|
|
|
|
%files -n %rdmacm_lname
|
|
|
|
%{_libdir}/librdmacm*.so.*
|
2017-05-05 16:23:54 +02:00
|
|
|
%doc %{_docdir}/%{name}-%{version}/librdmacm.md
|
|
|
|
|
|
|
|
%files -n rsocket
|
2017-03-20 14:25:36 +01:00
|
|
|
%dir %{_libdir}/rsocket
|
|
|
|
%{_libdir}/rsocket/*.so*
|
|
|
|
%{_mandir}/man7/rsocket.*
|
|
|
|
|
|
|
|
%files -n librdmacm-utils
|
|
|
|
%{_bindir}/cmtime
|
|
|
|
%{_bindir}/mckey
|
|
|
|
%{_bindir}/rcopy
|
|
|
|
%{_bindir}/rdma_client
|
|
|
|
%{_bindir}/rdma_server
|
|
|
|
%{_bindir}/rdma_xclient
|
|
|
|
%{_bindir}/rdma_xserver
|
|
|
|
%{_bindir}/riostream
|
|
|
|
%{_bindir}/rping
|
|
|
|
%{_bindir}/rstream
|
|
|
|
%{_bindir}/ucmatose
|
|
|
|
%{_bindir}/udaddy
|
|
|
|
%{_bindir}/udpong
|
2017-05-09 17:48:37 +02:00
|
|
|
%{_mandir}/man1/cmtime.*
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_mandir}/man1/mckey.*
|
|
|
|
%{_mandir}/man1/rcopy.*
|
|
|
|
%{_mandir}/man1/rdma_client.*
|
|
|
|
%{_mandir}/man1/rdma_server.*
|
|
|
|
%{_mandir}/man1/rdma_xclient.*
|
|
|
|
%{_mandir}/man1/rdma_xserver.*
|
|
|
|
%{_mandir}/man1/riostream.*
|
|
|
|
%{_mandir}/man1/rping.*
|
|
|
|
%{_mandir}/man1/rstream.*
|
|
|
|
%{_mandir}/man1/ucmatose.*
|
|
|
|
%{_mandir}/man1/udaddy.*
|
2017-05-09 17:48:37 +02:00
|
|
|
%{_mandir}/man1/udpong.*
|
2017-03-20 14:25:36 +01:00
|
|
|
|
|
|
|
%files -n srp_daemon
|
2017-05-30 11:29:56 +02:00
|
|
|
%dir %{_libexecdir}/srp_daemon
|
2017-08-23 14:21:21 +02:00
|
|
|
%dir %{_sysconfdir}/rdma
|
|
|
|
%dir %{_sysconfdir}/rdma/modules
|
2017-03-20 14:25:36 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/srp_daemon.conf
|
2017-08-23 14:21:21 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/modules/srp_daemon.conf
|
2019-05-13 10:44:12 +02:00
|
|
|
%{_udevrulesdir}/60-srp_daemon.rules
|
2017-05-30 11:29:56 +02:00
|
|
|
%{_libexecdir}/srp_daemon/start_on_all_ports
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_unitdir}/srp_daemon.service
|
2017-05-30 11:29:56 +02:00
|
|
|
%{_unitdir}/srp_daemon_port@.service
|
2017-03-20 14:25:36 +01:00
|
|
|
%{_sbindir}/ibsrpdm
|
|
|
|
%{_sbindir}/srp_daemon
|
|
|
|
%{_sbindir}/run_srp_daemon
|
|
|
|
%{_sbindir}/rcsrp_daemon
|
2017-05-30 11:29:56 +02:00
|
|
|
%{_mandir}/man5/srp_daemon.service.5*
|
|
|
|
%{_mandir}/man5/srp_daemon_port@.service.5*
|
2020-08-18 12:16:26 +02:00
|
|
|
%{_mandir}/man8/ibsrpdm.8*
|
|
|
|
%{_mandir}/man8/srp_daemon.8*
|
2017-03-20 14:25:36 +01:00
|
|
|
%doc %{_docdir}/%{name}-%{version}/ibsrpdm.md
|
2017-03-20 15:08:02 +01:00
|
|
|
|
2017-05-15 18:34:17 +02:00
|
|
|
%files -n rdma-ndd
|
|
|
|
%{_sbindir}/rdma-ndd
|
|
|
|
%{_sbindir}/rcrdma-ndd
|
|
|
|
%{_unitdir}/rdma-ndd.service
|
|
|
|
%{_mandir}/man8/rdma-ndd.8*
|
2019-05-13 10:44:12 +02:00
|
|
|
%{_udevrulesdir}/60-rdma-ndd.rules
|
2017-05-15 18:34:17 +02:00
|
|
|
|
2019-02-06 09:55:38 +01:00
|
|
|
%if %{with_pyverbs}
|
|
|
|
%files -n python3-pyverbs
|
|
|
|
%{python3_sitearch}/pyverbs
|
2020-01-13 09:24:36 +01:00
|
|
|
%dir %{_docdir}/%{name}-%{version}/tests/
|
2020-01-13 07:59:37 +01:00
|
|
|
%{_docdir}/%{name}-%{version}/tests/*.py
|
2019-02-06 09:55:38 +01:00
|
|
|
%endif
|
|
|
|
|
2017-03-20 15:08:02 +01:00
|
|
|
%changelog
|