From e433286d2b1d941f11db3912380f07d1020c83cb17ee64e28f2372ac88bde42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 27 Mar 2017 09:51:15 +0000 Subject: [PATCH] Accepting request 481634 from home:markkp New package for SLES12 SP3 (Fate#322376), per Factory First policy. OBS-URL: https://build.opensuse.org/request/show/481634 OBS-URL: https://build.opensuse.org/package/show/network/smc-tools?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + smc-tools-1.0.0.tar.gz | 3 ++ smc-tools.changes | 10 ++++++ smc-tools.spec | 80 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 smc-tools-1.0.0.tar.gz create mode 100644 smc-tools.changes create mode 100644 smc-tools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/smc-tools-1.0.0.tar.gz b/smc-tools-1.0.0.tar.gz new file mode 100644 index 0000000..997b53e --- /dev/null +++ b/smc-tools-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:906d05c6182c6656d7d9afffc1624c43211770df132087bd521f6fed8f061d46 +size 20106 diff --git a/smc-tools.changes b/smc-tools.changes new file mode 100644 index 0000000..3c27aaf --- /dev/null +++ b/smc-tools.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Mon Mar 20 22:17:15 UTC 2017 - mpost@suse.com + +- Upgraded to version 1.0.0 (Fate#322376). + +------------------------------------------------------------------- +Fri May 6 15:11:24 UTC 2016 - mpost@suse.com + +- Initial packaging of version 0.1.1 (Fate#319569). + diff --git a/smc-tools.spec b/smc-tools.spec new file mode 100644 index 0000000..99f525d --- /dev/null +++ b/smc-tools.spec @@ -0,0 +1,80 @@ +# +# spec file for package smc-tools +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: smc-tools +Version: 1.0.0 +Release: 0 +Url: https://www.ibm.com/developerworks/linux/linux390/ +Summary: Shared Memory +License: EPL-1.0 +Group: System/Kernel +Source: %{name}-%{version}.tar.gz + +# aarch64 and ppc64le don't support 32bit applications, so there's no +# gcc-32bit package that can be installed +%ifarch s390x x86_64 +BuildRequires: gcc-32bit +%define have_32bit 1 +%endif +BuildRequires: libnl3-devel + +# While repos other than Factory have 32bit for s390x, Factory does not +%if 0%{?suse_version} == 1330 +%ifarch s390x +%define have_32bit 0 +%endif +%endif + +%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 +%setup + +%build +MYCFLAGS=$(grep ^CFLAGS Makefile | cut -f2 -d=) +make CFLAGS="${MYCFLAGS} ${RPM_OPT_FLAGS}" + +%install +%make_install + +%ifarch s390 %{ix86} +rm -rf ${RPM_BUILD_ROOT}/usr/lib64 +%endif + +%files +%defattr(-,root,root) +%doc README.smctools LICENSE +%{_bindir}/smc_pnet +%{_bindir}/smc_run +%{_bindir}/smcss +%{_libdir}/ld_pre_smc.so +%if 0%{?have_32bit} +/usr/lib/ld_pre_smc.so +%endif +%{_mandir}/man7/af_smc.7%{ext_man} +%{_mandir}/man8/smc_pnet.8%{ext_man} +%{_mandir}/man8/smc_run.8%{ext_man} +%{_mandir}/man8/smcss.8%{ext_man} + +%changelog