2017-03-27 11:51:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package smc-tools
|
|
|
|
#
|
2023-09-13 08:48:51 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-03-27 11:51:15 +02: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.
|
|
|
|
|
2018-11-30 22:39:38 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-27 11:51:15 +02:00
|
|
|
#
|
|
|
|
|
2017-09-29 22:18:25 +02:00
|
|
|
|
2018-11-30 22:39:38 +01:00
|
|
|
Name: smc-tools
|
2023-09-13 08:48:51 +02:00
|
|
|
Version: 1.8.3
|
2018-11-30 22:39:38 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Shared Memory Communication via RDMA
|
|
|
|
License: EPL-1.0
|
|
|
|
Group: System/Kernel
|
|
|
|
URL: https://www.ibm.com/developerworks/linux/linux390/smc-tools.html
|
2023-09-13 11:18:20 +02:00
|
|
|
Source: https://github.com/ibm-s390-linux/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2023-09-13 08:48:51 +02:00
|
|
|
### Source: https://github.com/ibm-s390-linux/smc-tools/releases/tag/1.8.3.tar.gz
|
2018-11-30 22:39:38 +01:00
|
|
|
|
2021-01-28 00:03:37 +01:00
|
|
|
BuildRequires: bash-completion-devel
|
2018-11-30 22:39:38 +01:00
|
|
|
BuildRequires: libnl3-devel
|
|
|
|
PreReq: permissions
|
|
|
|
|
2017-03-27 11:51:15 +02:00
|
|
|
%description
|
|
|
|
Shared Memory Communication via RDMA (SMC) is a socket over RDMA
|
|
|
|
communication protocol that allows existing TCP socket applications to
|
|
|
|
transparently benefit from RDMA when exchanging data via an RDMA over
|
|
|
|
Converged Ethernet (RoCE) network.
|
|
|
|
|
|
|
|
The tools provided in this package allow existing TCP applications
|
|
|
|
to use a RoCE network without needing to make changes in them.
|
|
|
|
|
2021-01-28 00:03:37 +01:00
|
|
|
%package completion
|
|
|
|
Summary: Bash completion for smc-tools
|
|
|
|
Group: System/Kernel
|
2021-01-28 18:14:45 +01:00
|
|
|
|
2021-01-28 18:13:49 +01:00
|
|
|
Requires: %{name}
|
|
|
|
Requires: bash-completion
|
2021-01-28 18:10:44 +01:00
|
|
|
Supplements: (%{name} and bash-completion)
|
2021-01-28 00:03:37 +01:00
|
|
|
|
|
|
|
%description completion
|
|
|
|
This package contains the files to enable command completion for the
|
|
|
|
smc-tools package when running a bash shell.
|
|
|
|
|
2017-03-27 11:51:15 +02:00
|
|
|
%prep
|
2020-12-08 18:49:35 +01:00
|
|
|
%autosetup -p1
|
2017-03-27 11:51:15 +02:00
|
|
|
|
|
|
|
%build
|
2020-12-08 18:49:35 +01:00
|
|
|
# The next two lines are to get around the Makefile not adding
|
|
|
|
# its own values to CFLAGS if it is already set. This is needed
|
|
|
|
# so that we can specify the optflags macro to pull in our own
|
|
|
|
# parameters.
|
|
|
|
MYCFLAGS=$(grep ^CFLAGS Makefile | head -n1 | cut -f2 -d=)
|
|
|
|
MYCFLAGS+=" $(pkg-config --silence-errors --cflags libnl-genl-3.0)"
|
2021-01-28 00:03:37 +01:00
|
|
|
%make_build CFLAGS="${MYCFLAGS} %{optflags}"
|
2017-03-27 11:51:15 +02:00
|
|
|
|
|
|
|
%install
|
2018-11-30 22:39:38 +01:00
|
|
|
%make_install V=1
|
2017-03-27 11:51:15 +02:00
|
|
|
|
2018-11-30 22:39:38 +01:00
|
|
|
%ifarch s390 %{ix86}
|
|
|
|
rm -Rf "%{buildroot}%{_prefix}/lib64"
|
2017-03-27 11:51:15 +02:00
|
|
|
%endif
|
|
|
|
|
2018-08-11 01:20:19 +02:00
|
|
|
%verifyscript
|
2018-11-30 22:39:38 +01:00
|
|
|
%verify_permissions -e %{_prefix}/lib/libsmc-preload.so
|
2018-08-11 01:20:19 +02:00
|
|
|
%verify_permissions -e %{_libdir}/libsmc-preload.so
|
|
|
|
|
|
|
|
%post
|
2018-11-30 22:39:38 +01:00
|
|
|
%set_permissions %{_prefix}/lib/libsmc-preload.so
|
2018-08-11 01:20:19 +02:00
|
|
|
%set_permissions %{_libdir}/libsmc-preload.so
|
|
|
|
|
2017-03-27 11:51:15 +02:00
|
|
|
%files
|
2018-11-30 22:39:38 +01:00
|
|
|
%license LICENSE
|
2020-12-08 18:49:35 +01:00
|
|
|
%doc README.md
|
2019-09-07 00:47:17 +02:00
|
|
|
%{_bindir}/smc_dbg
|
2017-03-27 11:51:15 +02:00
|
|
|
%{_bindir}/smc_pnet
|
|
|
|
%{_bindir}/smc_run
|
2020-12-08 18:49:35 +01:00
|
|
|
%{_bindir}/smcd
|
|
|
|
%{_bindir}/smcr
|
2019-09-07 00:47:17 +02:00
|
|
|
%ifarch s390 s390x
|
2021-02-10 20:48:04 +01:00
|
|
|
%{_bindir}/smc_chk
|
2019-09-07 00:47:17 +02:00
|
|
|
%{_bindir}/smc_rnics
|
|
|
|
%endif
|
2017-03-27 11:51:15 +02:00
|
|
|
%{_bindir}/smcss
|
2018-08-11 01:20:19 +02:00
|
|
|
%{_libdir}/libsmc-preload.so
|
2018-11-30 22:39:38 +01:00
|
|
|
%{_mandir}/man7/af_smc.7%{?ext_man}
|
|
|
|
%{_mandir}/man8/smc_pnet.8%{?ext_man}
|
2019-09-07 00:47:17 +02:00
|
|
|
%ifarch s390 s390x
|
|
|
|
%{_mandir}/man8/smc_rnics.8%{?ext_man}
|
2021-02-10 20:48:04 +01:00
|
|
|
%{_mandir}/man8/smc_chk.8%{?ext_man}
|
2019-09-07 00:47:17 +02:00
|
|
|
%endif
|
2021-11-04 18:47:58 +01:00
|
|
|
%{_mandir}/man8/smcd.8%{?ext_man}
|
2020-12-08 18:49:35 +01:00
|
|
|
%{_mandir}/man8/smcd-device.8%{?ext_man}
|
2021-02-10 20:48:04 +01:00
|
|
|
%{_mandir}/man8/smcd-info.8%{?ext_man}
|
2020-12-08 18:49:35 +01:00
|
|
|
%{_mandir}/man8/smcd-linkgroup.8%{?ext_man}
|
2021-11-04 18:47:58 +01:00
|
|
|
%{_mandir}/man8/smcd-seid.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/smcd-stats.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/smcd-ueid.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/smcr.8%{?ext_man}
|
2020-12-08 18:49:35 +01:00
|
|
|
%{_mandir}/man8/smcr-device.8%{?ext_man}
|
2021-02-10 20:48:04 +01:00
|
|
|
%{_mandir}/man8/smcr-info.8%{?ext_man}
|
2020-12-08 18:49:35 +01:00
|
|
|
%{_mandir}/man8/smcr-linkgroup.8%{?ext_man}
|
2021-11-04 18:47:58 +01:00
|
|
|
%{_mandir}/man8/smcr-stats.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/smcr-ueid.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/smc_run.8%{?ext_man}
|
2018-11-30 22:39:38 +01:00
|
|
|
%{_mandir}/man8/smcss.8%{?ext_man}
|
2017-03-27 11:51:15 +02:00
|
|
|
|
2021-01-28 00:03:37 +01:00
|
|
|
%files completion
|
|
|
|
%{_datadir}/bash-completion/completions/smc*
|
|
|
|
|
2017-03-27 11:51:15 +02:00
|
|
|
%changelog
|