From 4a2785b49dcf8b53ff37e17dbe30ba16098bdf40786e65085ac49d08628c5da5 Mon Sep 17 00:00:00 2001 From: Nicolas Morey-Chaisemartin Date: Wed, 8 Nov 2017 09:26:07 +0000 Subject: [PATCH] - Initial packaging of version 8.4.8 OBS-URL: https://build.opensuse.org/package/show/science:HPC/libvma?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 16 ++++ libvma-8.4.8.0.49d23ea.tar.gz | 3 + libvma.changes | 4 + libvma.spec | 134 ++++++++++++++++++++++++++++++++++ vma.service | 15 ++++ 7 files changed, 196 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 libvma-8.4.8.0.49d23ea.tar.gz create mode 100644 libvma.changes create mode 100644 libvma.spec create mode 100644 vma.service 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/_service b/_service new file mode 100644 index 0000000..182d863 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git + https://github.com/Mellanox/libvma.git + no + .git + libvma + @PARENT_TAG@.@TAG_OFFSET@.%h + 49d23eac8118eaaf06c0734d51d34fa96f8c3038 + + + libvma*.tar + gz + + + diff --git a/libvma-8.4.8.0.49d23ea.tar.gz b/libvma-8.4.8.0.49d23ea.tar.gz new file mode 100644 index 0000000..e2ef1e3 --- /dev/null +++ b/libvma-8.4.8.0.49d23ea.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:127ffcb53b2323b5be01fa27053cb62a652fe749ca62673798c5bd42ac0c11ce +size 1051097 diff --git a/libvma.changes b/libvma.changes new file mode 100644 index 0000000..7d148a0 --- /dev/null +++ b/libvma.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Nov 8 09:24:55 UTC 2017 - nmoreychaisemartin@suse.com + +- Initial packaging of version 8.4.8 diff --git a/libvma.spec b/libvma.spec new file mode 100644 index 0000000..9f69dc4 --- /dev/null +++ b/libvma.spec @@ -0,0 +1,134 @@ +# +# spec file for package libvma +# +# Copyright (c) 2017 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/ +# + + +# +%define git_ver .0.49d23ea +%define lib_major 8 + + +Name: libvma +Summary: A library for boosting TCP and UDP traffic (over RDMA hardware) +License: GPL-2.0 or BSD-2-Clause +Group: Development/Libraries/C and C++ +Version: 8.4.8 +Release: 0 +Source0: %{name}-%{version}%{git_ver}.tar.gz +Source1: vma.service +Url: https://github.com/Mellanox/libvma +Prefix: %{_prefix} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: pkg-config +BuildRequires: libibverbs-devel +BuildRequires: librdmacm-devel +BuildRequires: pkgconfig(libnl-3.0) +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: systemd-rpm-macros +Requires: libvma%{lib_major} = %{version} +ExclusiveArch: x86_64 aarch64 ppc64le + +%description +VMA library is a performance booster of TCP and UDP traffic +Part of Mellanox enhanced services +Allows application written over standard socket API +To run over Infiniband/Ethernet from userspace with full network stack bypass +and get better throughput, latency and packets/sec rate + +%package -n libvma%{lib_major} +Summary: Libvma runtime libary +Group: System/Libraries + +%description -n libvma%{lib_major} +VMA library is a performance booster of TCP and UDP traffic +Part of Mellanox enhanced services +Allows application written over standard socket API +To run over Infiniband/Ethernet from userspace with full network stack bypass +and get better throughput, latency and packets/sec rate + +%package devel +Summary: Header files and link required to develop with Libvma +Group: Development/Libraries/C and C++ +Requires: libvma%{lib_major} = %{version} + +%description devel +Headers and symbolink link required to compile and link with the Libvma library. + +%prep +%setup -q -n %{name}-%{version}%{git_ver} + +%build +./autogen.sh +%configure --docdir=%{_docdir}/%{name}-%{version} +make %{?_smp_mflags} V=1 + +%install +make DESTDIR=%{buildroot} install +rm -f %{buildroot}%{_libdir}/*.la +rm -f %{buildroot}/etc/init.d/vma + +install -D -m 755 tests/vma_perf_envelope/vma_perf_envelope.sh %{buildroot}/%{_datadir}/%{name}/vma_perf_envelope.sh +install -m 644 src/vma/vma_extra.h %{buildroot}/%{_includedir}/vma_extra.h +install -m 644 src/vma/util/libvma.conf %{buildroot}/%{_sysconfdir}/ +install -s -m 755 src/stats/vma_stats %{buildroot}/%{_bindir}/vma_stats +install -s -m 755 tools/daemon/vmad %{buildroot}/%{_sbindir}/vmad +install -D -m 755 %{S:1} %{buildroot}%{_unitdir}/vma.service + +for service in vma; do ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc${service}; done + +%post -n libvma%{lib_major} -p /sbin/ldconfig +%postun -n libvma%{lib_major} -p /sbin/ldconfig + + +%pre +%service_add_pre vma.service + +%post +%service_add_post vma.service + +%preun +%service_del_preun vma.service + +%postun +%service_del_postun vma.service + +%files +%defattr(-,root,root,-) +%dir %{_datadir}/%{name} +%dir %{_docdir}/%{name}-%{version} +%{_docdir}/%{name}-%{version}/README.txt +%{_docdir}/%{name}-%{version}/journal.txt +%{_docdir}/%{name}-%{version}/VMA_VERSION +%config(noreplace) %{_sysconfdir}/libvma.conf +%{_sysconfdir}/security/limits.d/30-libvma-limits.conf +%{_sbindir}/vmad +%{_sbindir}/rcvma +%{_unitdir}/vma.service +%{_bindir}/vma_stats +%{_datadir}/%{name}/vma_perf_envelope.sh + +%files -n libvma%{lib_major} +%{_libdir}/%{name}*.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/ +%{_libdir}/%{name}.so + +%changelog diff --git a/vma.service b/vma.service new file mode 100644 index 0000000..797d2d1 --- /dev/null +++ b/vma.service @@ -0,0 +1,15 @@ +[Unit] +Description=VMA Monitoring Daemon +StopWhenUnneeded=no +DefaultDependencies=no +# Ensure required kernel modules are loaded before starting +Wants=rdma-load-modules@rdma.service +After=rdma-load-modules@rdma.service +# After basic RDMA hw setup. +After=rdma-hw.target + +[Service] +Type=notify +Restart=always +ExecStart=/usr/sbin/vmad +