Jarod Wilson d968ae
Name: rdma-core
Jarod Wilson f458a9
Version: 14
Jarod Wilson f458a9
Release: 1%{?dist}
Jarod Wilson d968ae
Summary: RDMA core userspace libraries and daemons
Jarod Wilson d968ae
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
Jarod Wilson f458a9
BuildRequires: python
Jarod Wilson f458a9
BuildRequires: sed
Jarod Wilson d968ae
Jarod Wilson d968ae
Requires: dracut, kmod, initscripts, systemd
Jarod Wilson d968ae
%if 0%{?fedora} >= 24
Jarod Wilson d968ae
Requires: systemd-udev
Jarod Wilson d968ae
%endif
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}
Jarod Wilson d968ae
# the ndd utility moved from infiniband-diags to rdma-core
Jarod Wilson d968ae
Conflicts: infiniband-diags <= 1.6.7
Jarod Wilson f458a9
Requires: pciutils
Jarod Wilson f458a9
# 32-bit arm is missing required arch-specific memory barriers,
Jarod Wilson f458a9
ExcludeArch: %{arm}
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
Jarod Wilson d968ae
RDMA core userspace infrastructure and documentation, including initscripts,
Jarod Wilson d968ae
kernel driver-specific modprobe override configs, IPoIB network scripts,
Jarod Wilson d968ae
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
Requires: libibcm = %{version}-%{release}
Jarod Wilson d968ae
Provides: libibcm-devel = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libibcm-devel < %{version}-%{release}
Jarod Wilson f458a9
Provides: libibcm-static = %{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}
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}
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(post): /sbin/ldconfig
Jarod Wilson d968ae
Requires(postun): /sbin/ldconfig
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}
Jarod Wilson d968ae
Provides: libmlx4 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libmlx4 < %{version}-%{release}
Jarod Wilson f458a9
%ifnarch s390x s390
Jarod Wilson d968ae
Provides: libmlx5 = %{version}-%{release}
Jarod Wilson d968ae
Obsoletes: libmlx5 < %{version}-%{release}
Jarod Wilson f458a9
%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 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
Jarod Wilson d968ae
- libmlx4: Mellanox ConnectX-3 InfiniBand HCA
Jarod Wilson d968ae
- libmlx5: Mellanox Connect-IB/X-4+ InfiniBand HCA
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 f458a9
%systemd_requires
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson f458a9
Requires: libibumad%{?_isa} = %{version}-%{release}
Jarod Wilson f458a9
Requires: libibverbs%{?_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 f458a9
%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 libibcm
Jarod Wilson d968ae
Summary: Userspace InfiniBand Connection Manager
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson f458a9
Requires: libibverbs%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n libibcm
Jarod Wilson d968ae
libibcm provides a userspace library that handles the majority of the low
Jarod Wilson d968ae
level work required to open an RDMA connection between two machines.
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 f458a9
Requires: libibverbs%{?_isa} = %{version}-%{release}
Jarod Wilson d968ae
Jarod Wilson d968ae
%description -n librdmacm
Jarod Wilson d968ae
librdmacm provides a userspace RDMA Communication Managment 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 f458a9
Requires: libibverbs%{?_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 f458a9
%systemd_requires
Jarod Wilson d968ae
Requires: %{name}%{?_isa} = %{version}-%{release}
Jarod Wilson f458a9
Requires: libibumad%{?_isa} = %{version}-%{release}
Jarod Wilson f458a9
Requires: libibverbs%{?_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 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 d968ae
         -DCMAKE_INSTALL_UDEV_RULESDIR:PATH=%{_udevrulesdir}
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}/sysconfig/network-scripts
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
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf
Jarod Wilson d968ae
install -D -m0755 redhat/rdma.ifup-ib %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifup-ib
Jarod Wilson d968ae
install -D -m0755 redhat/rdma.ifdown-ib %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ib
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.service %{buildroot}%{_unitdir}/rdma.service
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.udev-ipoib-naming.rules %{buildroot}%{_sysconfdir}/udev/rules.d/70-persistent-ipoib.rules
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.mlx4.user.modprobe %{buildroot}%{_sysconfdir}/modprobe.d/mlx4.conf
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 -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{sysmodprobedir}/libmlx4.conf
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.cxgb3.sys.modprobe %{buildroot}%{sysmodprobedir}/cxgb3.conf
Jarod Wilson d968ae
install -D -m0644 redhat/rdma.cxgb4.sys.modprobe %{buildroot}%{sysmodprobedir}/cxgb4.conf
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
install -D -m0644 redhat/rdma.fixup-mtrr.awk %{buildroot}%{_libexecdir}/rdma-fixup-mtrr.awk
Jarod Wilson d968ae
install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh
Jarod Wilson d968ae
Jarod Wilson d968ae
# ibacm
Jarod Wilson d968ae
bin/ib_acme -D . -O
Jarod Wilson f458a9
# multi-lib conflict resolution hacks (bug 1429362)
Jarod Wilson f458a9
sed -i -e 's|%{_libdir}|/usr/lib|' %{buildroot}%{_mandir}/man7/ibacm_prov.7
Jarod Wilson f458a9
sed -i -e 's|%{_libdir}|/usr/lib|' ibacm_opts.cfg
Jarod Wilson d968ae
install -D -m0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
Jarod Wilson d968ae
install -D -m0644 redhat/ibacm.service %{buildroot}%{_unitdir}/
Jarod Wilson d968ae
Jarod Wilson d968ae
# Delete the package's init.d scripts
Jarod Wilson d968ae
rm -rf %{buildroot}/%{_initrddir}/
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n libibverbs -p /sbin/ldconfig
Jarod Wilson d968ae
%postun -n libibverbs -p /sbin/ldconfig
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n libibcm -p /sbin/ldconfig
Jarod Wilson d968ae
%postun -n libibcm -p /sbin/ldconfig
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n libibumad -p /sbin/ldconfig
Jarod Wilson d968ae
%postun -n libibumad -p /sbin/ldconfig
Jarod Wilson d968ae
Jarod Wilson d968ae
%post -n librdmacm -p /sbin/ldconfig
Jarod Wilson d968ae
%postun -n librdmacm -p /sbin/ldconfig
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
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/rdma/*
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/modprobe.d/mlx4.conf
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/modprobe.d/truescale.conf
Jarod Wilson d968ae
%{_sysconfdir}/sysconfig/network-scripts/*
Jarod Wilson d968ae
%{_unitdir}/rdma.service
Jarod Wilson d968ae
%dir %{dracutlibdir}/modules.d/05rdma
Jarod Wilson d968ae
%{dracutlibdir}/modules.d/05rdma/module-setup.sh
Jarod Wilson d968ae
%{_udevrulesdir}/*
Jarod Wilson d968ae
%{sysmodprobedir}/libmlx4.conf
Jarod Wilson d968ae
%{sysmodprobedir}/cxgb3.conf
Jarod Wilson d968ae
%{sysmodprobedir}/cxgb4.conf
Jarod Wilson d968ae
%{_libexecdir}/rdma-init-kernel
Jarod Wilson d968ae
%{_libexecdir}/rdma-set-sriov-vf
Jarod Wilson d968ae
%{_libexecdir}/rdma-fixup-mtrr.awk
Jarod Wilson d968ae
%{_libexecdir}/mlx4-setup.sh
Jarod Wilson d968ae
%{_libexecdir}/truescale-serdes.cmds
Jarod Wilson d968ae
%{_sbindir}/rdma-ndd
Jarod Wilson d968ae
%{_unitdir}/rdma-ndd.service
Jarod Wilson d968ae
%{_mandir}/man8/rdma-ndd.*
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 d968ae
%{_mandir}/man3/ibv_*
Jarod Wilson d968ae
%{_mandir}/man3/rdma*
Jarod Wilson d968ae
%{_mandir}/man3/umad*
Jarod Wilson d968ae
%{_mandir}/man3/*_to_ibv_rate.*
Jarod Wilson f458a9
%ifnarch s390x s390
Jarod Wilson f458a9
%{_mandir}/man3/mlx5dv*
Jarod Wilson f458a9
%{_mandir}/man7/mlx5dv*
Jarod Wilson f458a9
%endif
Jarod Wilson d968ae
%{_mandir}/man7/rdma_cm.*
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
Jarod Wilson f458a9
%ifnarch s390x s390
Jarod Wilson f458a9
%{_libdir}/libmlx5.so*
Jarod Wilson f458a9
%endif
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/libibverbs.d/*.driver
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/libibverbs.md
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/rxe.md
Jarod Wilson d968ae
%{_bindir}/rxe_cfg
Jarod Wilson d968ae
%{_mandir}/man7/rxe*
Jarod Wilson f458a9
%ifnarch s390x s390
Jarod Wilson f458a9
%{_mandir}/man7/mlx5dv*
Jarod Wilson f458a9
%endif
Jarod Wilson d968ae
%{_mandir}/man8/rxe*
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
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
Jarod Wilson d968ae
%{_bindir}/iwpmd
Jarod Wilson d968ae
%{_unitdir}/iwpmd.service
Jarod Wilson d968ae
%config(noreplace) %{_sysconfdir}/iwpmd.conf
Jarod Wilson d968ae
%{_mandir}/man1/iwpmd.*
Jarod Wilson d968ae
%{_mandir}/man5/iwpmd.*
Jarod Wilson d968ae
Jarod Wilson d968ae
%files -n libibcm
Jarod Wilson d968ae
%{_libdir}/libibcm*.so.*
Jarod Wilson d968ae
%doc %{_docdir}/%{name}-%{version}/libibcm.md
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
Jarod Wilson d968ae
%{_libdir}/rsocket/librspreload.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
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}/srp_daemon.sh
Jarod Wilson d968ae
%{_sbindir}/run_srp_daemon
Jarod Wilson f458a9
%{_udevrulesdir}/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
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