- Initial packaging for SLES and openSUSE, based on latest release.
- There is no valgrind in s390 so exclude the build requirement on this architecture. - Add appropriate RPM groups - Initital packaging for openSUSE OBS-URL: https://build.opensuse.org/package/show/science:HPC/rdma-core?expand=0&rev=1
This commit is contained in:
commit
04023f42c2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
rdma-core-12.tar.gz
Normal file
3
rdma-core-12.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b9876a218f85ab69b41a4085e41af5cead9cd973c7de07d240501dae45227e8e
|
||||||
|
size 789988
|
13
rdma-core.changes
Normal file
13
rdma-core.changes
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 14 14:02:19 CET 2017 - pth@suse.de
|
||||||
|
|
||||||
|
- Initial packaging for SLES and openSUSE, based on latest release.
|
||||||
|
- There is no valgrind in s390 so exclude the build requirement on
|
||||||
|
this architecture.
|
||||||
|
- Add appropriate RPM groups
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 1 17:29:24 UTC 2016 - jthumshirn@suse.com
|
||||||
|
|
||||||
|
- Initital packaging for openSUSE
|
||||||
|
|
538
rdma-core.spec
Normal file
538
rdma-core.spec
Normal file
@ -0,0 +1,538 @@
|
|||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
%bcond_without systemd
|
||||||
|
|
||||||
|
Name: rdma-core
|
||||||
|
Version: 12
|
||||||
|
Release: 0
|
||||||
|
Summary: RDMA core userspace libraries and daemons
|
||||||
|
|
||||||
|
%define verbs_so_major 1
|
||||||
|
%define ibcm_so_major 1
|
||||||
|
%define rdmacm_so_major 1
|
||||||
|
%define umad_so_major 3
|
||||||
|
|
||||||
|
%define verbs_lname libibverbs%{verbs_so_major}
|
||||||
|
%define ibcm_lname libibcm%{ibcm_so_major}
|
||||||
|
%define rdmacm_lname librdmacm%{rdmacm_so_major}
|
||||||
|
%define umad_lname libibumad%{umad_so_major}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
License: GPL-2.0 or BSD-2-Clause
|
||||||
|
Url: https://github.com/linux-rdma/rdma-core
|
||||||
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: binutils
|
||||||
|
BuildRequires: cmake >= 2.8.11
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: libudev-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: systemd-devel
|
||||||
|
%ifnarch s390
|
||||||
|
BuildRequires: valgrind-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(libnl-3.0)
|
||||||
|
BuildRequires: pkgconfig(libnl-route-3.0)
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
Requires: dracut
|
||||||
|
Requires: kmod
|
||||||
|
Requires: systemd
|
||||||
|
|
||||||
|
# SUSE previously shipped rdma as a stand-alone
|
||||||
|
# package which we're supplanting here.
|
||||||
|
|
||||||
|
Provides: rdma = %{version}
|
||||||
|
Obsoletes: rdma < %{version}
|
||||||
|
Conflicts: infiniband-diags <= 1.6.7
|
||||||
|
|
||||||
|
# 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
|
||||||
|
%define make_jobs make -v %{?_smp_mflags}
|
||||||
|
%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
|
||||||
|
Group: Devel/Libraries/C and C++
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: libibverbs = %{version}-%{release}
|
||||||
|
Provides: libibverbs-devel = %{version}-%{release}
|
||||||
|
Obsoletes: libibverbs-devel < %{version}-%{release}
|
||||||
|
Requires: libibcm = %{version}-%{release}
|
||||||
|
Provides: libibcm-devel = %{version}-%{release}
|
||||||
|
Obsoletes: libibcm-devel < %{version}-%{release}
|
||||||
|
Requires: %umad_lname = %{version}-%{release}
|
||||||
|
Provides: libibumad-devel = %{version}-%{release}
|
||||||
|
Obsoletes: libibumad-devel < %{version}-%{release}
|
||||||
|
Requires: %rdmacm_lname = %{version}-%{release}
|
||||||
|
Provides: librdmacm-devel = %{version}-%{release}
|
||||||
|
Obsoletes: librdmacm-devel < %{version}-%{release}
|
||||||
|
Obsoletes: ibacm < %{version}-%{release}
|
||||||
|
Requires: ibacm = %{version}-%{release}
|
||||||
|
Provides: ibacm-devel = %{version}-%{release}
|
||||||
|
Obsoletes: ibacm-devel < %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
RDMA core development libraries and headers.
|
||||||
|
|
||||||
|
%package -n libibverbs
|
||||||
|
Summary: Library & drivers for direct userspace use of InfiniBand/iWARP/RoCE hardware
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Provides: libcxgb3 = %{version}-%{release}
|
||||||
|
Obsoletes: libcxgb3 < %{version}-%{release}
|
||||||
|
Provides: libcxgb4 = %{version}-%{release}
|
||||||
|
Obsoletes: libcxgb4 < %{version}-%{release}
|
||||||
|
Provides: libhfi1 = %{version}-%{release}
|
||||||
|
Obsoletes: libhfi1 < %{version}-%{release}
|
||||||
|
Provides: libi40iw = %{version}-%{release}
|
||||||
|
Obsoletes: libi40iw < %{version}-%{release}
|
||||||
|
Provides: libipathverbs = %{version}-%{release}
|
||||||
|
Obsoletes: libipathverbs < %{version}-%{release}
|
||||||
|
Provides: libmlx4 = %{version}-%{release}
|
||||||
|
Obsoletes: libmlx4 < %{version}-%{release}
|
||||||
|
Provides: libmlx5 = %{version}-%{release}
|
||||||
|
Obsoletes: libmlx5 < %{version}-%{release}
|
||||||
|
Provides: libmthca = %{version}-%{release}
|
||||||
|
Obsoletes: libmthca < %{version}-%{release}
|
||||||
|
Provides: libnes = %{version}-%{release}
|
||||||
|
Obsoletes: libnes < %{version}-%{release}
|
||||||
|
Provides: libocrdma = %{version}-%{release}
|
||||||
|
Obsoletes: libocrdma < %{version}-%{release}
|
||||||
|
Provides: librxe = %{version}-%{release}
|
||||||
|
Obsoletes: librxe < %{version}-%{release}
|
||||||
|
Requires(post): /sbin/ldconfig
|
||||||
|
Requires(postun): /sbin/ldconfig
|
||||||
|
|
||||||
|
%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:
|
||||||
|
|
||||||
|
- libcxgb3: Chelsio T3 iWARP HCA
|
||||||
|
- libcxgb4: Chelsio T4 iWARP HCA
|
||||||
|
- libhfi1: Intel Omni-Path HFI
|
||||||
|
- libi40iw: Intel Ethernet Connection X722 RDMA
|
||||||
|
- libipathverbs: QLogic InfiniPath HCA
|
||||||
|
- libmlx4: Mellanox ConnectX-3 InfiniBand HCA
|
||||||
|
- libmlx5: Mellanox Connect-IB/X-4+ InfiniBand HCA
|
||||||
|
- libmthca: Mellanox InfiniBand HCA
|
||||||
|
- libnes: NetEffect RNIC
|
||||||
|
- libocrdma: Emulex OneConnect RDMA/RoCE Device
|
||||||
|
- librxe: A software implementation of the RoCE protocol
|
||||||
|
|
||||||
|
%package -n %verbs_lname
|
||||||
|
Summary: Ibverbs runtime library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %verbs_lname
|
||||||
|
This package contains the ibverbs runtime library.
|
||||||
|
|
||||||
|
%package -n libibverbs-devel
|
||||||
|
Summary: Development files for the libibverbs library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name}-runtime = %{version}
|
||||||
|
|
||||||
|
%description -n libibverbs-devel
|
||||||
|
Header files and library symlink for the Infiniband verbs library.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n libibverbs-utils
|
||||||
|
Summary: Examples for the libibverbs library
|
||||||
|
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
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%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.
|
||||||
|
%package -n iwpmd
|
||||||
|
Summary: Userspace iWarp Port Mapper daemon
|
||||||
|
Requires: %{name}%{?_isa} = %{version}
|
||||||
|
Requires(post): systemd
|
||||||
|
Requires(preun): systemd
|
||||||
|
Requires(postun): systemd
|
||||||
|
|
||||||
|
%description -n iwpmd
|
||||||
|
iwpmd provides a userspace service for iWarp drivers to claim
|
||||||
|
tcp ports through the standard socket interface.
|
||||||
|
|
||||||
|
%package -n %ibcm_lname
|
||||||
|
Summary: Userspace InfiniBand Connection Manager
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %ibcm_lname
|
||||||
|
libibcm provides a userspace library that handles the majority of the low
|
||||||
|
level work required to open an RDMA connection between two machines.
|
||||||
|
|
||||||
|
%package -n %umad_lname
|
||||||
|
Summary: OpenFabrics Alliance InfiniBand umad (userspace management datagram) library
|
||||||
|
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}
|
||||||
|
|
||||||
|
%description -n %rdmacm_lname
|
||||||
|
librdmacm provides a userspace RDMA Communication Managment API.
|
||||||
|
|
||||||
|
%package -n librdmacm-utils
|
||||||
|
Summary: Examples for the librdmacm library
|
||||||
|
|
||||||
|
%description -n librdmacm-utils
|
||||||
|
Example test programs for the librdmacm library.
|
||||||
|
|
||||||
|
%package -n srp_daemon
|
||||||
|
Summary: Tools for using the InfiniBand SRP protocol devices
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Obsoletes: srptools <= 1.0.3
|
||||||
|
Provides: srptools = %{version}
|
||||||
|
Obsoletes: openib-srptools <= 0.0.6
|
||||||
|
Requires(post): systemd
|
||||||
|
Requires(preun): systemd
|
||||||
|
Requires(postun): systemd
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n %{name}-%{name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
# New RPM defines _rundir, usually as /run
|
||||||
|
%if 0%{?_rundir:1}
|
||||||
|
%else
|
||||||
|
%define _rundir /var/run
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# 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} \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
|
||||||
|
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
|
||||||
|
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=%{_localstatedir} \
|
||||||
|
-DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=%{_sharedstatedir} \
|
||||||
|
-DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} \
|
||||||
|
-DCMAKE_INSTALL_INFODIR:PATH=%{_infodir} \
|
||||||
|
-DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
|
||||||
|
-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
|
||||||
|
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR:PATH=%{_unitdir} \
|
||||||
|
-DCMAKE_INSTALL_INITDDIR:PATH=%{_initddir} \
|
||||||
|
-DCMAKE_INSTALL_RUNDIR:PATH=%{_rundir} \
|
||||||
|
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}-%{version} \
|
||||||
|
-DCMAKE_INSTALL_UDEV_RULESDIR:PATH=%{_udevrulesdir}
|
||||||
|
#cd build
|
||||||
|
%make_jobs
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd build
|
||||||
|
%cmake_install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/%{_sysconfdir}/rdma
|
||||||
|
|
||||||
|
%global dracutlibdir %%{_sysconfdir}/dracut.conf.d
|
||||||
|
%global sysmodprobedir %%{_sysconfdir}/modprobe.d
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_libexecdir}/udev/rules.d
|
||||||
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||||
|
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/05rdma
|
||||||
|
mkdir -p %{buildroot}%{sysmodprobedir}
|
||||||
|
install -D -m0644 redhat/rdma.conf %{buildroot}/%{_sysconfdir}/rdma/rdma.conf
|
||||||
|
install -D -m0644 redhat/rdma.sriov-vfs %{buildroot}/%{_sysconfdir}/rdma/sriov-vfs
|
||||||
|
install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf
|
||||||
|
install -D -m0644 redhat/rdma.service %{buildroot}%{_unitdir}/rdma.service
|
||||||
|
install -D -m0644 redhat/rdma.udev-ipoib-naming.rules %{buildroot}%{_udevrulesdir}/70-persistent-ipoib.rules
|
||||||
|
install -D -m0644 redhat/rdma.mlx4.user.modprobe %{buildroot}%{_sysconfdir}/modprobe.d/50-mlx4.conf
|
||||||
|
install -D -m0755 redhat/rdma.modules-setup.sh %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
||||||
|
install -D -m0644 redhat/rdma.udev-rules %{buildroot}%{_udevrulesdir}/98-rdma.rules
|
||||||
|
install -D -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{sysmodprobedir}/50-libmlx4.conf
|
||||||
|
install -D -m0644 redhat/rdma.cxgb3.sys.modprobe %{buildroot}%{sysmodprobedir}/50-cxgb3.conf
|
||||||
|
install -D -m0644 redhat/rdma.cxgb4.sys.modprobe %{buildroot}%{sysmodprobedir}/50-cxgb4.conf
|
||||||
|
install -D -m0755 redhat/rdma.kernel-init %{buildroot}%{_libexecdir}/rdma-init-kernel
|
||||||
|
install -D -m0755 redhat/rdma.sriov-init %{buildroot}%{_libexecdir}/rdma-set-sriov-vf
|
||||||
|
install -D -m0644 redhat/rdma.fixup-mtrr.awk %{buildroot}%{_libexecdir}/rdma-fixup-mtrr.awk
|
||||||
|
install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh
|
||||||
|
mv %{buildroot}%{_sysconfdir}/modprobe.d/truescale.conf %{buildroot}%{_sysconfdir}/modprobe.d/50-truescale.conf
|
||||||
|
|
||||||
|
# ibacm
|
||||||
|
cd build
|
||||||
|
LD_LIBRARY_PATH=./lib bin/ib_acme -D . -O
|
||||||
|
install -D -m0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
|
||||||
|
install -D -m0644 ../redhat/ibacm.service %{buildroot}%{_unitdir}/
|
||||||
|
|
||||||
|
# srp_daemon
|
||||||
|
install -D -m0644 ../redhat/srp_daemon.service %{buildroot}%{_unitdir}/
|
||||||
|
|
||||||
|
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}/
|
||||||
|
|
||||||
|
# libibverbs
|
||||||
|
%post -n %verbs_lname -p /sbin/ldconfig
|
||||||
|
%postun -n %verbs_lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
# libibcm
|
||||||
|
%post -n %ibcm_lname -p /sbin/ldconfig
|
||||||
|
%postun -n %ibcm_lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
# libibumad
|
||||||
|
%post -n %umad_lname -p /sbin/ldconfig
|
||||||
|
%postun -n %umad_lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
# librdmacm
|
||||||
|
%post -n %rdmacm_lname -p /sbin/ldconfig
|
||||||
|
%postun -n %rdmacm_lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
# ibacm
|
||||||
|
%pre -n ibacm
|
||||||
|
%service_add_pre ibacm.service
|
||||||
|
|
||||||
|
%post -n ibacm
|
||||||
|
%systemd_post ibacm.service
|
||||||
|
%service_add_post ibacm.service
|
||||||
|
|
||||||
|
%preun -n ibacm
|
||||||
|
%systemd_preun ibacm.service
|
||||||
|
|
||||||
|
%postun -n ibacm
|
||||||
|
%systemd_postun_with_restart ibacm.service
|
||||||
|
|
||||||
|
# srp_daemon
|
||||||
|
%pre -n srp_daemon
|
||||||
|
%service_add_pre srp_daemon.service
|
||||||
|
|
||||||
|
%post -n srp_daemon
|
||||||
|
%service_add_post srp_daemon.service
|
||||||
|
%systemd_post srp_daemon.service
|
||||||
|
|
||||||
|
%preun -n srp_daemon
|
||||||
|
%systemd_preun srp_daemon.service
|
||||||
|
|
||||||
|
%postun -n srp_daemon
|
||||||
|
%systemd_postun_with_restart srp_daemon.service
|
||||||
|
|
||||||
|
# iwpmd
|
||||||
|
%pre -n iwpmd
|
||||||
|
%service_add_pre ibiwpmd.service
|
||||||
|
|
||||||
|
%post -n iwpmd
|
||||||
|
%systemd_post iwpmd.service
|
||||||
|
%service_add_post iwpmd.service
|
||||||
|
|
||||||
|
%preun -n iwpmd
|
||||||
|
%systemd_preun iwpmd.service
|
||||||
|
|
||||||
|
%postun -n iwpmd
|
||||||
|
%systemd_postun_with_restart iwpmd.service
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre rdma-ndd.service
|
||||||
|
%service_add_pre rdma.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%service_add_post rdma-ndd.service rdma.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun rdma-ndd.service
|
||||||
|
%service_del_preun rdma.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun rdma-ndd.service
|
||||||
|
%service_del_postun rdma.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_sysconfdir}/rdma
|
||||||
|
%dir %{_docdir}/%{name}-%{version}
|
||||||
|
%dir %{_libexecdir}/udev
|
||||||
|
%dir %{_libexecdir}/udev/rules.d
|
||||||
|
%dir %{_sysconfdir}/modprobe.d
|
||||||
|
%doc %{_docdir}/%{name}-%{version}/README.md
|
||||||
|
%exclude %{_sysconfdir}/rdma/ibacm_opts.cfg
|
||||||
|
%config(noreplace) %{_sysconfdir}/rdma/*
|
||||||
|
%config(noreplace) %{_libexecdir}/udev/rules.d/*
|
||||||
|
%config(noreplace) %{_sysconfdir}/modprobe.d/50-mlx4.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/modprobe.d/50-truescale.conf
|
||||||
|
%{_unitdir}/rdma.service
|
||||||
|
%dir %{dracutlibdir}
|
||||||
|
%dir %{dracutlibdir}/modules.d
|
||||||
|
%dir %{dracutlibdir}/modules.d/05rdma
|
||||||
|
%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
||||||
|
%{_udevrulesdir}/*
|
||||||
|
%config(noreplace) %{sysmodprobedir}/50-libmlx4.conf
|
||||||
|
%config(noreplace) %{sysmodprobedir}/50-cxgb3.conf
|
||||||
|
%config(noreplace) %{sysmodprobedir}/50-cxgb4.conf
|
||||||
|
%{_libexecdir}/rdma-init-kernel
|
||||||
|
%{_libexecdir}/rdma-set-sriov-vf
|
||||||
|
%{_libexecdir}/rdma-fixup-mtrr.awk
|
||||||
|
%{_libexecdir}/mlx4-setup.sh
|
||||||
|
%{_libexecdir}/truescale-serdes.cmds
|
||||||
|
%{_sbindir}/rdma-ndd
|
||||||
|
%{_unitdir}/rdma-ndd.service
|
||||||
|
%{_mandir}/man8/rdma-ndd.*
|
||||||
|
%license COPYING.*
|
||||||
|
%{_sbindir}/rcrdma
|
||||||
|
%{_sbindir}/rcrdma-ndd
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc %{_docdir}/%{name}-%{version}/MAINTAINERS
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/lib*.so
|
||||||
|
%{_mandir}/man3/ibv_*
|
||||||
|
%{_mandir}/man3/rdma*
|
||||||
|
%{_mandir}/man3/umad*
|
||||||
|
%{_mandir}/man3/*_to_ibv_rate.*
|
||||||
|
%{_mandir}/man7/rdma_cm.*
|
||||||
|
|
||||||
|
%files -n libibverbs
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%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
|
||||||
|
%{_bindir}/rxe_cfg
|
||||||
|
%{_mandir}/man7/rxe*
|
||||||
|
%{_mandir}/man8/rxe*
|
||||||
|
|
||||||
|
%files -n %verbs_lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libibverbs*.so.*
|
||||||
|
|
||||||
|
%files -n libibverbs-utils
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/ibv_*
|
||||||
|
%{_mandir}/man1/ibv_*
|
||||||
|
|
||||||
|
%files -n ibacm
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%config(noreplace) %{_sysconfdir}/rdma/ibacm_opts.cfg
|
||||||
|
%{_bindir}/ib_acme
|
||||||
|
%{_sbindir}/ibacm
|
||||||
|
%{_mandir}/man1/ibacm.*
|
||||||
|
%{_mandir}/man1/ib_acme.*
|
||||||
|
%{_mandir}/man7/ibacm.*
|
||||||
|
%{_mandir}/man7/ibacm_prov.*
|
||||||
|
%{_unitdir}/ibacm.service
|
||||||
|
%{_libdir}/ibacm/
|
||||||
|
%{_sbindir}/rcibacm
|
||||||
|
%doc %{_docdir}/%{name}-%{version}/ibacm.md
|
||||||
|
|
||||||
|
%files -n iwpmd
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/iwpmd
|
||||||
|
%{_unitdir}/iwpmd.service
|
||||||
|
%config(noreplace) %{_sysconfdir}/iwpmd.conf
|
||||||
|
%{_sbindir}/rciwpmd
|
||||||
|
%{_mandir}/man1/iwpmd.*
|
||||||
|
%{_mandir}/man5/iwpmd.*
|
||||||
|
|
||||||
|
%files -n %ibcm_lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libibcm*.so.*
|
||||||
|
%doc %{_docdir}/%{name}-%{version}/libibcm.md
|
||||||
|
|
||||||
|
%files -n %umad_lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libibumad*.so.*
|
||||||
|
|
||||||
|
%files -n %rdmacm_lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/librdmacm*.so.*
|
||||||
|
%dir %{_libdir}/rsocket
|
||||||
|
%{_libdir}/rsocket/*.so*
|
||||||
|
%doc %{_docdir}/%{name}-%{version}/librdmacm.md
|
||||||
|
%{_mandir}/man7/rsocket.*
|
||||||
|
|
||||||
|
%files -n librdmacm-utils
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_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
|
||||||
|
%{_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.*
|
||||||
|
|
||||||
|
%files -n srp_daemon
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%config(noreplace) %{_sysconfdir}/srp_daemon.conf
|
||||||
|
%{_unitdir}/srp_daemon.service
|
||||||
|
%{_sbindir}/ibsrpdm
|
||||||
|
%{_sbindir}/srp_daemon
|
||||||
|
%{_sbindir}/srp_daemon.sh
|
||||||
|
%{_sbindir}/run_srp_daemon
|
||||||
|
%{_sbindir}/rcsrp_daemon
|
||||||
|
%{_mandir}/man1/ibsrpdm.1*
|
||||||
|
%{_mandir}/man1/srp_daemon.1*
|
||||||
|
%doc %{_docdir}/%{name}-%{version}/ibsrpdm.md
|
Loading…
Reference in New Issue
Block a user