smc-tools/smc-tools.spec

83 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package smc-tools
#
# Copyright (c) 2018-2020 SUSE LLC
#
# 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/
#
2018-11-30 22:39:38 +01:00
Name: smc-tools
Version: 1.3.1
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
Source: %{name}-%{version}.tar.gz
Source1: smc-tools-rpmlintrc
BuildRequires: libnl3-devel
PreReq: permissions
%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.
%prep
2018-11-30 22:39:38 +01:00
%setup -q
%build
MYCFLAGS=$(grep ^CFLAGS Makefile | cut -f2 -d=)
2018-11-30 22:39:38 +01:00
make %{?_smp_mflags} V=1 CFLAGS="${MYCFLAGS} %{optflags}"
%install
2018-11-30 22:39:38 +01:00
%make_install V=1
2018-11-30 22:39:38 +01:00
%ifarch s390 %{ix86}
rm -Rf "%{buildroot}%{_prefix}/lib64"
%endif
%verifyscript
2018-11-30 22:39:38 +01:00
%verify_permissions -e %{_prefix}/lib/libsmc-preload.so
%verify_permissions -e %{_libdir}/libsmc-preload.so
%post
2018-11-30 22:39:38 +01:00
%set_permissions %{_prefix}/lib/libsmc-preload.so
%set_permissions %{_libdir}/libsmc-preload.so
%files
2018-11-30 22:39:38 +01:00
%license LICENSE
%doc README.smctools
%{_bindir}/smc_dbg
%{_bindir}/smc_pnet
%{_bindir}/smc_run
%ifarch s390 s390x
%{_bindir}/smc_rnics
%endif
%{_bindir}/smcss
%{_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}
%ifarch s390 s390x
%{_mandir}/man8/smc_rnics.8%{?ext_man}
%endif
2018-11-30 22:39:38 +01:00
%{_mandir}/man8/smc_run.8%{?ext_man}
%{_mandir}/man8/smcss.8%{?ext_man}
%changelog