Jarod Wilson d968ae
Name: rdma-core
Jarod Wilson 156687
Version: 20.1
Björn Esser 2d68a8
Release: 2%{?dist}
Jarod Wilson d968ae
Summary: RDMA core userspace libraries and daemons
Jarod Wilson d968ae
Doug Ledford 2c2e63
%ifnarch s390 %{arm}
Doug Ledford 2c2e63
%define dma_coherent 1
Doug Ledford 2c2e63
%endif
Doug Ledford 2c2e63
Jarod Wilson d968ae
# Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license
Jarod Wilson d968ae
#  providers/ipathverbs/ Dual licensed using a BSD license with an extra patent clause
Jarod Wilson d968ae
#  providers/rxe/ Incorporates code from ipathverbs and contains the patent clause
Jarod Wilson d968ae
#  providers/hfi1verbs Uses the 3 Clause BSD license
Jarod Wilson d968ae
License: GPLv2 or BSD
Jarod Wilson d968ae
Url: https://github.com/linux-rdma/rdma-core
Jarod Wilson f458a9
Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz
Jarod Wilson d968ae
Jarod Wilson d968ae
BuildRequires: binutils
Jarod Wilson d968ae
BuildRequires: cmake >= 2.8.11
Jarod Wilson d968ae
BuildRequires: gcc
Jarod Wilson d968ae
BuildRequires: libudev-devel
Jarod Wilson d968ae
BuildRequires: pkgconfig
Jarod Wilson d968ae
BuildRequires: pkgconfig(libnl-3.0)
Jarod Wilson d968ae
BuildRequires: pkgconfig(libnl-route-3.0)
Jarod Wilson f458a9
%ifnarch s390
Jarod Wilson d968ae
BuildRequires: valgrind-devel
Jarod Wilson f458a9
%endif
Jarod Wilson d968ae
BuildRequires: systemd
Doug Ledford c97992
BuildRequires: systemd-devel
Jarod Wilson 156687
BuildRequires: python3
Jarod Wilson 156687
BuildRequires: perl-generators
Jarod Wilson 156687
BuildRequires: pandoc
Jarod Wilson d968ae
Doug Ledford 978c40
Requires: dracut, kmod, systemd
Jarod Wilson d968ae
# Red Hat/Fedora previously shipped redhat/ as a stand-alone
Jarod Wilson d968ae
# package called 'rdma', which we're supplanting here.
Jarod Wilson d968ae
Provides: rdma = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: rdma < %{version}-%{release}
Jarod Wilson f458a9
Provides: rdma-ndd = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: rdma-ndd < %{version}-%{release}
Doug Ledford c97992
Obsoletes: libehca < 1.2.2-7
Jarod Wilson d968ae
# the ndd utility moved from infiniband-diags to rdma-core
Jarod Wilson d968ae
Conflicts: infiniband-diags <= 1.6.7
Jarod Wilson d968ae
Jarod Wilson d968ae
# Since we recommend developers use Ninja, so should packagers, for consistency.
Jarod Wilson d968ae
%define CMAKE_FLAGS %{nil}
Jarod Wilson d968ae
%if 0%{?fedora} >= 23
Jarod Wilson d968ae
# Ninja was introduced in FC23
Jarod Wilson d968ae
BuildRequires: ninja-build
Jarod Wilson d968ae
%define CMAKE_FLAGS -GNinja
Jarod Wilson d968ae
%define make_jobs ninja-build -v %{?_smp_mflags}
Jarod Wilson d968ae
%define cmake_install DESTDIR=%{buildroot} ninja-build install
Jarod Wilson d968ae
%else
Jarod Wilson d968ae
# Fallback to make otherwise
Jarod Wilson d968ae
BuildRequires: make
Jarod Wilson d968ae
%define make_jobs make -v %{?_smp_mflags}
Jarod Wilson d968ae
%define cmake_install DESTDIR=%{buildroot} make install
Jarod Wilson d968ae
%endif
Jarod Wilson d968ae
Jarod Wilson d968ae
%description
Doug Ledford c97992
RDMA core userspace infrastructure and documentation, including initialization
Doug Ledford c97992
scripts, kernel driver-specific modprobe override configs, IPoIB network
Doug Ledford c97992
scripts, dracut rules, and the rdma-ndd utility.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package devel
Jarod Wilson d968ae
Summary: RDMA core development libraries and headers
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Requires: libibverbs = %{version}-%{release}
Jarod Wilson d968ae
Provides: libibverbs-devel = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libibverbs-devel < %{version}-%{release}
Jarod Wilson f458a9
Provides: libibverbs-devel-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libibverbs-devel-static < %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libibcm-devel < %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libibcm-static < %{version}-%{release}
Jarod Wilson d968ae
Requires: libibumad = %{version}-%{release}
Jarod Wilson d968ae
Provides: libibumad-devel = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libibumad-devel < %{version}-%{release}
Jarod Wilson f458a9
Provides: libibumad-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libibumad-static < %{version}-%{release}
Jarod Wilson d968ae
Requires: librdmacm = %{version}-%{release}
Jarod Wilson d968ae
Provides: librdmacm-devel = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: librdmacm-devel < %{version}-%{release}
Jarod Wilson f458a9
Provides: librdmacm-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: librdmacm-static < %{version}-%{release}
Jarod Wilson d968ae
Requires: ibacm = %{version}-%{release}
Jarod Wilson d968ae
Provides: ibacm-devel = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: ibacm-devel < %{version}-%{release}
Jarod Wilson f458a9
Provides: libcxgb3-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libcxgb3-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libcxgb4-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libcxgb4-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libhfi1-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libhfi1-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libipathverbs-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libipathverbs-static < %{version}-%{release}
0c4eb0
%if 0%{?dma_coherent}
Jarod Wilson f458a9
Provides: libmlx4-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libmlx4-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libmlx5-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libmlx5-static < %{version}-%{release}
Doug Ledford 2c2e63
%endif
Jarod Wilson f458a9
Provides: libnes-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libnes-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libocrdma-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libocrdma-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libi40iw-devel-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libi40iw-devel-static < %{version}-%{release}
Jarod Wilson f458a9
Provides: libmthca-static = %{version}-%{release}
Jarod Wilson f458a9
Obsoletes: libmthca-static < %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description devel
Jarod Wilson d968ae
RDMA core development libraries and headers.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n libibverbs
Jarod Wilson d968ae
Summary: A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Provides: libcxgb3 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libcxgb3 < %{version}-%{release}
Jarod Wilson d968ae
Provides: libcxgb4 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libcxgb4 < %{version}-%{release}
Jarod Wilson d968ae
Provides: libhfi1 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libhfi1 < %{version}-%{release}
Jarod Wilson d968ae
Provides: libi40iw = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libi40iw < %{version}-%{release}
Jarod Wilson d968ae
Provides: libipathverbs = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libipathverbs < %{version}-%{release}
Doug Ledford 2c2e63
%if 0%{?dma_coherent}
Jarod Wilson d968ae
Provides: libmlx4 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libmlx4 < %{version}-%{release}
Doug Ledford 2c2e63
%ifnarch s390x
Jarod Wilson d968ae
Provides: libmlx5 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libmlx5 < %{version}-%{release}
Jarod Wilson f458a9
%endif
Doug Ledford 2c2e63
%endif
Jarod Wilson d968ae
Provides: libmthca = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libmthca < %{version}-%{release}
Jarod Wilson d968ae
Provides: libnes = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libnes < %{version}-%{release}
Jarod Wilson d968ae
Provides: libocrdma = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libocrdma < %{version}-%{release}
Jarod Wilson d968ae
Provides: librxe = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: librxe < %{version}-%{release}
Jarod Wilson c01686
Provides: libusnic_verbs = %{version}-%{release}
Jarod Wilson c01686
Obsoletes: libusnic_verbs < %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n libibverbs
Jarod Wilson d968ae
libibverbs is a library that allows userspace processes to use RDMA
Jarod Wilson d968ae
"verbs" as described in the InfiniBand Architecture Specification and
Jarod Wilson d968ae
the RDMA Protocol Verbs Specification.  This includes direct hardware
Jarod Wilson d968ae
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
Jarod Wilson d968ae
fast path operations.
Jarod Wilson d968ae
Jarod Wilson d968ae
Device-specific plug-in ibverbs userspace drivers are included:
Jarod Wilson d968ae
Jarod Wilson d968ae
- libcxgb3: Chelsio T3 iWARP HCA
Jarod Wilson d968ae
- libcxgb4: Chelsio T4 iWARP HCA
Jarod Wilson d968ae
- libhfi1: Intel Omni-Path HFI
Jarod Wilson f458a9
- libhns: HiSilicon Hip06 SoC
Jarod Wilson d968ae
- libi40iw: Intel Ethernet Connection X722 RDMA
Jarod Wilson d968ae
- libipathverbs: QLogic InfiniPath HCA
Doug Ledford 2c2e63
- libmlx4: Mellanox ConnectX-3 InfiniBand HCA (except arm, s390)
Doug Ledford 2c2e63
- libmlx5: Mellanox Connect-IB/X-4+ InfiniBand HCA (except arm, s390, s390x)
Jarod Wilson d968ae
- libmthca: Mellanox InfiniBand HCA
Jarod Wilson d968ae
- libnes: NetEffect RNIC
Jarod Wilson d968ae
- libocrdma: Emulex OneConnect RDMA/RoCE Device
Jarod Wilson f458a9
- libqedr: QLogic QL4xxx RoCE HCA
Jarod Wilson d968ae
- librxe: A software implementation of the RoCE protocol
Jarod Wilson f458a9
- libvmw_pvrdma: VMware paravirtual RDMA device
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n libibverbs-utils
Jarod Wilson d968ae
Summary: Examples for the libibverbs library
Jarod Wilson d968ae
Requires: libibverbs%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n libibverbs-utils
Jarod Wilson d968ae
Useful libibverbs example programs such as ibv_devinfo, which
Jarod Wilson d968ae
displays information about RDMA devices.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n ibacm
Jarod Wilson d968ae
Summary: InfiniBand Communication Manager Assistant
Jarod Wilson 82bec3
%{?systemd_requires}
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n ibacm
Jarod Wilson d968ae
The ibacm daemon helps reduce the load of managing path record lookups on
Jarod Wilson d968ae
large InfiniBand fabrics by providing a user space implementation of what
Jarod Wilson d968ae
is functionally similar to an ARP cache.  The use of ibacm, when properly
Jarod Wilson d968ae
configured, can reduce the SA packet load of a large IB cluster from O(n^2)
Jarod Wilson d968ae
to O(n).  The ibacm daemon is started and normally runs in the background,
Jarod Wilson d968ae
user applications need not know about this daemon as long as their app
Jarod Wilson d968ae
uses librdmacm to handle connection bring up/tear down.  The librdmacm
Jarod Wilson d968ae
library knows how to talk directly to the ibacm daemon to retrieve data.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n iwpmd
Jarod Wilson d968ae
Summary: iWarp Port Mapper userspace daemon
Jarod Wilson 82bec3
%{?systemd_requires}
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n iwpmd
Jarod Wilson d968ae
iwpmd provides a userspace service for iWarp drivers to claim
Jarod Wilson d968ae
tcp ports through the standard socket interface.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n libibumad
Jarod Wilson d968ae
Summary: OpenFabrics Alliance InfiniBand umad (userspace management datagram) library
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n libibumad
Jarod Wilson d968ae
libibumad provides the userspace management datagram (umad) library
Jarod Wilson d968ae
functions, which sit on top of the umad modules in the kernel. These
Jarod Wilson d968ae
are used by the IB diagnostic and management tools, including OpenSM.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n librdmacm
Jarod Wilson d968ae
Summary: Userspace RDMA Connection Manager
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n librdmacm
Doug Ledford c97992
librdmacm provides a userspace RDMA Communication Management API.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n librdmacm-utils
Jarod Wilson d968ae
Summary: Examples for the librdmacm library
Jarod Wilson d968ae
Requires: librdmacm%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n librdmacm-utils
Jarod Wilson d968ae
Example test programs for the librdmacm library.
Jarod Wilson d968ae
Jarod Wilson d968ae
%package -n srp_daemon
Jarod Wilson d968ae
Summary: Tools for using the InfiniBand SRP protocol devices
Jarod Wilson d968ae
Obsoletes: srptools <= 1.0.3
Jarod Wilson d968ae
Provides: srptools = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: openib-srptools <= 0.0.6
Jarod Wilson 82bec3
%{?systemd_requires}
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n srp_daemon
Jarod Wilson d968ae
In conjunction with the kernel ib_srp driver, srp_daemon allows you to
Jarod Wilson d968ae
discover and use SCSI devices via the SCSI RDMA Protocol over InfiniBand.
Jarod Wilson d968ae
Jarod Wilson d968ae
%prep
Jarod Wilson f458a9
%setup
Jarod Wilson d968ae
Jarod Wilson d968ae
%build
Jarod Wilson d968ae
Jarod Wilson d968ae
# New RPM defines _rundir, usually as /run
Jarod Wilson d968ae
%if 0%{?_rundir:1}
Jarod Wilson d968ae
%else
Jarod Wilson d968ae
%define _rundir /var/run
Jarod Wilson d968ae
%endif
Jarod Wilson d968ae
Jarod Wilson 156687
%{!?EXTRA_CMAKE_FLAGS: %define EXTRA_CMAKE_FLAGS %{nil}}
Jarod Wilson 156687
Jarod Wilson d968ae
# Pass all of the rpm paths directly to GNUInstallDirs and our other defines.
Jarod Wilson d968ae
%cmake %{CMAKE_FLAGS} \
Jarod Wilson d968ae
         -DCMAKE_BUILD_TYPE=Release \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_BINDIR:PATH=%{_bindir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_SBINDIR:PATH=%{_sbindir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=%{_localstatedir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=%{_sharedstatedir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_INFODIR:PATH=%{_infodir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR:PATH=%{_unitdir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_INITDDIR:PATH=%{_initrddir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_RUNDIR:PATH=%{_rundir} \
Jarod Wilson d968ae
         -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}-%{version} \
Jarod Wilson 156687
         -DCMAKE_INSTALL_UDEV_RULESDIR:PATH=%{_udevrulesdir} \
Björn Esser 2d68a8
	 %{EXTRA_CMAKE_FLAGS} \
Björn Esser 2d68a8
         .
Jarod Wilson d968ae
%make_jobs
Jarod Wilson d968ae
Jarod Wilson d968ae
%install
Jarod Wilson d968ae
%cmake_install
Jarod Wilson d968ae
Jarod Wilson d968ae
mkdir -p %{buildroot}/%{_sysconfdir}/rdma
Jarod Wilson d968ae
Jarod Wilson d968ae
# Red Hat specific glue
Jarod Wilson d968ae
%global dracutlibdir %{_prefix}/lib/dracut
Jarod Wilson d968ae
%global sysmodprobedir %{_prefix}/lib/modprobe.d
Jarod Wilson d968ae
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
Jarod Wilson d968ae
mkdir -p %{buildroot}%{_libexecdir}
Jarod Wilson d968ae
mkdir -p %{buildroot}%{_udevrulesdir}
Jarod Wilson d968ae
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/05rdma
Jarod Wilson d968ae
mkdir -p %{buildroot}%{sysmodprobedir}
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.conf %{buildroot}/%{_sysconfdir}/rdma/rdma.conf
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.sriov-vfs %{buildroot}/%{_sysconfdir}/rdma/sriov-vfs
Doug Ledford 2c2e63
%if 0%{?dma_coherent}
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf
Doug Ledford 2c2e63
install -D -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{sysmodprobedir}/libmlx4.conf
Doug Ledford 2c2e63
install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh
Doug Ledford 2c2e63
%endif
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.service %{buildroot}%{_unitdir}/rdma.service
Jarod Wilson d968ae
install -D -m0755 redhat/rdma.modules-setup.sh %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.udev-rules %{buildroot}%{_udevrulesdir}/98-rdma.rules
Jarod Wilson d968ae
install -D -m0755 redhat/rdma.kernel-init %{buildroot}%{_libexecdir}/rdma-init-kernel
Jarod Wilson d968ae
install -D -m0755 redhat/rdma.sriov-init %{buildroot}%{_libexecdir}/rdma-set-sriov-vf
Jarod Wilson d968ae
Jarod Wilson d968ae
# ibacm
Jarod Wilson d968ae
bin/ib_acme -D . -O
Jarod Wilson d968ae
install -D -m0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
Jarod Wilson d968ae
Jarod Wilson d968ae
# Delete the package's init.d scripts
Jarod Wilson d968ae
rm -rf %{buildroot}/%{_initrddir}/
Doug Ledford c97992
rm -f %{buildroot}/%{_sbindir}/srp_daemon.sh
Jarod Wilson d968ae
Igor Gnatenko 735c14
%ldconfig_scriptlets -n libibverbs
Jarod Wilson d968ae
Igor Gnatenko 735c14
%ldconfig_scriptlets -n libibumad
Jarod Wilson d968ae
Igor Gnatenko 735c14
%ldconfig_scriptlets -n librdmacm
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n ibacm
Jarod Wilson d968ae
%systemd_post ibacm.service
Jarod Wilson d968ae
%preun -n ibacm
Jarod Wilson d968ae
%systemd_preun ibacm.service
Jarod Wilson d968ae
%postun -n ibacm
Jarod Wilson d968ae
%systemd_postun_with_restart ibacm.service
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n srp_daemon
Jarod Wilson d968ae
%systemd_post srp_daemon.service
Jarod Wilson d968ae
%preun -n srp_daemon
Jarod Wilson d968ae
%systemd_preun srp_daemon.service
Jarod Wilson d968ae
%postun -n srp_daemon
Jarod Wilson d968ae
%systemd_postun_with_restart srp_daemon.service
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n iwpmd
Jarod Wilson d968ae
%systemd_post iwpmd.service
Jarod Wilson d968ae
%preun -n iwpmd
Jarod Wilson d968ae
%systemd_preun iwpmd.service
Jarod Wilson d968ae
%postun -n iwpmd
Jarod Wilson d968ae
%systemd_postun_with_restart iwpmd.service
Jarod Wilson d968ae
Jarod Wilson d968ae
%files
Jarod Wilson d968ae
%dir %{_sysconfdir}/rdma
Jarod Wilson d968ae
%dir %{_docdir}/%{name}-%{version}
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/README.md
Doug Ledford c97992
%doc %{_docdir}/%{name}-%{version}/rxe.md
Doug Ledford c97992
%doc %{_docdir}/%{name}-%{version}/udev.md
Doug Ledford c97992
%doc %{_docdir}/%{name}-%{version}/tag_matching.md
Doug Ledford 2c2e63
%if 0%{?dma_coherent}
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/mlx4.conf
Doug Ledford 2c2e63
%config(noreplace) %{_sysconfdir}/modprobe.d/mlx4.conf
Doug Ledford 2c2e63
%{sysmodprobedir}/libmlx4.conf
Doug Ledford 2c2e63
%{_libexecdir}/mlx4-setup.sh
Doug Ledford 2c2e63
%endif
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/infiniband.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/iwarp.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/opa.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/rdma.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/roce.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/rdma.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/sriov-vfs
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/modprobe.d/truescale.conf
Doug Ledford c97992
%{_unitdir}/rdma-hw.target
Doug Ledford c97992
%{_unitdir}/rdma-load-modules@.service
Jarod Wilson d968ae
%{_unitdir}/rdma.service
Jarod Wilson d968ae
%dir %{dracutlibdir}/modules.d/05rdma
Jarod Wilson d968ae
%{dracutlibdir}/modules.d/05rdma/module-setup.sh
Doug Ledford c97992
%{_udevrulesdir}/60-rdma-ndd.rules
Doug Ledford c97992
%{_udevrulesdir}/75-rdma-description.rules
Doug Ledford c97992
%{_udevrulesdir}/90-rdma-hw-modules.rules
Doug Ledford c97992
%{_udevrulesdir}/90-rdma-ulp-modules.rules
Doug Ledford c97992
%{_udevrulesdir}/90-rdma-umad.rules
Doug Ledford c97992
%{_udevrulesdir}/98-rdma.rules
Jarod Wilson d968ae
%{_libexecdir}/rdma-init-kernel
Jarod Wilson d968ae
%{_libexecdir}/rdma-set-sriov-vf
Jarod Wilson d968ae
%{_libexecdir}/truescale-serdes.cmds
Doug Ledford c97992
%{_bindir}/rxe_cfg
Jarod Wilson d968ae
%{_sbindir}/rdma-ndd
Jarod Wilson d968ae
%{_unitdir}/rdma-ndd.service
Doug Ledford c97992
%{_mandir}/man7/rxe*
Jarod Wilson d968ae
%{_mandir}/man8/rdma-ndd.*
Doug Ledford c97992
%{_mandir}/man8/rxe*
Jarod Wilson d968ae
%license COPYING.*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files devel
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/MAINTAINERS
Jarod Wilson f458a9
%dir %{_includedir}/infiniband
Jarod Wilson f458a9
%dir %{_includedir}/rdma
Jarod Wilson f458a9
%{_includedir}/infiniband/*
Jarod Wilson f458a9
%{_includedir}/rdma/*
Jarod Wilson d968ae
%{_libdir}/lib*.so
Jarod Wilson 156687
%{_libdir}/pkgconfig/*.pc
Jarod Wilson d968ae
%{_mandir}/man3/ibv_*
Jarod Wilson d968ae
%{_mandir}/man3/rdma*
Jarod Wilson d968ae
%{_mandir}/man3/umad*
Jarod Wilson d968ae
%{_mandir}/man3/*_to_ibv_rate.*
Doug Ledford c97992
%{_mandir}/man7/rdma_cm.*
Doug Ledford 2c2e63
%if 0%{?dma_coherent}
Jarod Wilson f458a9
%{_mandir}/man3/mlx5dv*
Jarod Wilson f458a9
%{_mandir}/man7/mlx5dv*
Doug Ledford c97992
%{_mandir}/man3/mlx4dv*
Doug Ledford c97992
%{_mandir}/man7/mlx4dv*
Doug Ledford 2c2e63
%endif
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n libibverbs
Jarod Wilson d968ae
%dir %{_sysconfdir}/libibverbs.d
Jarod Wilson d968ae
%dir %{_libdir}/libibverbs
Jarod Wilson d968ae
%{_libdir}/libibverbs*.so.*
Jarod Wilson d968ae
%{_libdir}/libibverbs/*.so
Doug Ledford 2c2e63
%if 0%{?dma_coherent}
Doug Ledford c97992
%{_libdir}/libmlx5.so.*
Doug Ledford c97992
%{_libdir}/libmlx4.so.*
Doug Ledford 2c2e63
%endif
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/libibverbs.d/*.driver
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/libibverbs.md
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n libibverbs-utils
Jarod Wilson d968ae
%{_bindir}/ibv_*
Jarod Wilson d968ae
%{_mandir}/man1/ibv_*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n ibacm
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/rdma/ibacm_opts.cfg
Jarod Wilson d968ae
%{_bindir}/ib_acme
Jarod Wilson d968ae
%{_sbindir}/ibacm
Jarod Wilson d968ae
%{_mandir}/man1/ibacm.*
Jarod Wilson d968ae
%{_mandir}/man1/ib_acme.*
Jarod Wilson d968ae
%{_mandir}/man7/ibacm.*
Jarod Wilson d968ae
%{_mandir}/man7/ibacm_prov.*
Jarod Wilson d968ae
%{_unitdir}/ibacm.service
Doug Ledford c97992
%{_unitdir}/ibacm.socket
Jarod Wilson d968ae
%dir %{_libdir}/ibacm
Jarod Wilson d968ae
%{_libdir}/ibacm/*
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/ibacm.md
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n iwpmd
Doug Ledford c97992
%{_sbindir}/iwpmd
Jarod Wilson d968ae
%{_unitdir}/iwpmd.service
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/iwpmd.conf
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/iwpmd.conf
Doug Ledford c97992
%{_udevrulesdir}/90-iwpmd.rules
Doug Ledford c97992
%{_mandir}/man8/iwpmd.*
Jarod Wilson d968ae
%{_mandir}/man5/iwpmd.*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n libibumad
Jarod Wilson d968ae
%{_libdir}/libibumad*.so.*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n librdmacm
Jarod Wilson d968ae
%{_libdir}/librdmacm*.so.*
Jarod Wilson d968ae
%dir %{_libdir}/rsocket
Doug Ledford c97992
%{_libdir}/rsocket/*.so*
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/librdmacm.md
Jarod Wilson d968ae
%{_mandir}/man7/rsocket.*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n librdmacm-utils
Jarod Wilson d968ae
%{_bindir}/cmtime
Jarod Wilson d968ae
%{_bindir}/mckey
Jarod Wilson d968ae
%{_bindir}/rcopy
Jarod Wilson d968ae
%{_bindir}/rdma_client
Jarod Wilson d968ae
%{_bindir}/rdma_server
Jarod Wilson d968ae
%{_bindir}/rdma_xclient
Jarod Wilson d968ae
%{_bindir}/rdma_xserver
Jarod Wilson d968ae
%{_bindir}/riostream
Jarod Wilson d968ae
%{_bindir}/rping
Jarod Wilson d968ae
%{_bindir}/rstream
Jarod Wilson d968ae
%{_bindir}/ucmatose
Jarod Wilson d968ae
%{_bindir}/udaddy
Jarod Wilson d968ae
%{_bindir}/udpong
Jarod Wilson f458a9
%{_mandir}/man1/cmtime.*
Jarod Wilson d968ae
%{_mandir}/man1/mckey.*
Jarod Wilson d968ae
%{_mandir}/man1/rcopy.*
Jarod Wilson d968ae
%{_mandir}/man1/rdma_client.*
Jarod Wilson d968ae
%{_mandir}/man1/rdma_server.*
Jarod Wilson d968ae
%{_mandir}/man1/rdma_xclient.*
Jarod Wilson d968ae
%{_mandir}/man1/rdma_xserver.*
Jarod Wilson d968ae
%{_mandir}/man1/riostream.*
Jarod Wilson d968ae
%{_mandir}/man1/rping.*
Jarod Wilson d968ae
%{_mandir}/man1/rstream.*
Jarod Wilson d968ae
%{_mandir}/man1/ucmatose.*
Jarod Wilson d968ae
%{_mandir}/man1/udaddy.*
Jarod Wilson f458a9
%{_mandir}/man1/udpong.*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n srp_daemon
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/srp_daemon.conf
Doug Ledford c97992
%config(noreplace) %{_sysconfdir}/rdma/modules/srp_daemon.conf
Jarod Wilson f458a9
%{_libexecdir}/srp_daemon/start_on_all_ports
Jarod Wilson d968ae
%{_unitdir}/srp_daemon.service
Jarod Wilson f458a9
%{_unitdir}/srp_daemon_port@.service
Jarod Wilson d968ae
%{_sbindir}/ibsrpdm
Jarod Wilson d968ae
%{_sbindir}/srp_daemon
Jarod Wilson d968ae
%{_sbindir}/run_srp_daemon
Doug Ledford c97992
%{_udevrulesdir}/60-srp_daemon.rules
Jarod Wilson d968ae
%{_mandir}/man1/ibsrpdm.1*
Jarod Wilson d968ae
%{_mandir}/man1/srp_daemon.1*
Jarod Wilson f458a9
%{_mandir}/man5/srp_daemon.service.5*
Jarod Wilson f458a9
%{_mandir}/man5/srp_daemon_port@.service.5*
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/ibsrpdm.md
Jarod Wilson d968ae
Jarod Wilson d968ae
%changelog
Björn Esser 2d68a8
* Wed Jan 23 2019 Björn Esser <besser82@fedoraproject.org> - 20.1-2
Björn Esser 2d68a8
- Append curdir to CMake invokation. (#1668512)
Björn Esser 2d68a8
Jarod Wilson 156687
* Fri Oct 19 2018 Jarod Wilson <jarod@redhat.com> - 20.1-1
Jarod Wilson 156687
- Long overdue update to upstream v20.1 stable release
Jarod Wilson 156687
Fedora Release Engineering fe35fa
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.2-5
Fedora Release Engineering fe35fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering fe35fa
Iryna Shcherbina f8c8e6
* Sun Mar 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.2-4
Iryna Shcherbina f8c8e6
- Update Python 2 dependency declarations to new packaging standards
Iryna Shcherbina f8c8e6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
Iryna Shcherbina f8c8e6
Orion Poplawski ba9abd
* Tue Feb 06 2018 Orion Poplawski <orion@nwra.com> - 16.2-3
cb5b6a
- Build for s390/x
cb5b6a
0c4eb0
* Tue Feb 06 2018 Patrick Uiterwijk <patrick@puiterwijk.org> - 16.2-2
0c4eb0
- Fix escaped macro
0c4eb0
cb5b6a
* Sun Feb 04 2018 Doug Ledford <dledford@redhat.com> - 16.2-1
cb5b6a
- Update to rdma-core-16.2
cb5b6a
- Drop the old sysv initscript files
cb5b6a
Jarod Wilson 82bec3
* Wed Aug 09 2017 Jarod Wilson <jarod@redhat.com> - 14-4
Jarod Wilson 82bec3
- Make use of systemd_requires, own srp_daemon dir
Jarod Wilson 82bec3
Jarod Wilson c01686
* Tue Aug 01 2017 Jarod Wilson <jarod@redhat.com> - 14-3
Jarod Wilson c01686
- Revert work-around for ppc64le library issues
Jarod Wilson c01686
- Add Obsoletes/Provides for libusnic_verbs
Jarod Wilson c01686
Fedora Release Engineering 29dd51
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 14-2
Fedora Release Engineering 29dd51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 29dd51
Jarod Wilson f458a9
* Tue Jul 25 2017 Jarod Wilson <jarod@redhat.com> - 14-1
Jarod Wilson f458a9
- Update to upstream v14 release
Jarod Wilson f458a9
- Sync packaging updates from RHEL and upstream
Jarod Wilson f458a9
Fedora Release Engineering 7ee492
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12-2
Fedora Release Engineering 7ee492
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering 7ee492
Jarod Wilson e0297f
* Fri Jan 27 2017 Jarod Wilson <jarod@redhat.com> - 12-1
Jarod Wilson e0297f
- Update to upstream final v12 release
Jarod Wilson e0297f
Jarod Wilson d968ae
* Wed Jan 25 2017 Jarod Wilson <jarod@redhat.com> - 12-0.1.rc3.1
Jarod Wilson d968ae
- Initial import to Fedora package database via post-v12-rc3 git snapshot