SHA256
1
0
forked from pool/libvma

- Initial packaging of version 8.4.8

OBS-URL: https://build.opensuse.org/package/show/science:HPC/libvma?expand=0&rev=1
This commit is contained in:
Nicolas Morey-Chaisemartin 2017-11-08 09:26:07 +00:00 committed by Git OBS Bridge
commit 4a2785b49d
7 changed files with 196 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/Mellanox/libvma.git</param>
<param name="package-meta">no</param>
<param name="exclude">.git</param>
<param name="filename">libvma</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.%h</param>
<param name="revision">49d23eac8118eaaf06c0734d51d34fa96f8c3038</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">libvma*.tar</param>
<param name="compression">gz</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:127ffcb53b2323b5be01fa27053cb62a652fe749ca62673798c5bd42ac0c11ce
size 1051097

4
libvma.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Nov 8 09:24:55 UTC 2017 - nmoreychaisemartin@suse.com
- Initial packaging of version 8.4.8

134
libvma.spec Normal file
View File

@ -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

15
vma.service Normal file
View File

@ -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