2020-08-12 14:47:13 +00:00
|
|
|
%{!?configure_options: %global configure_options %{nil}}
|
|
|
|
|
2020-08-10 10:18:43 +00:00
|
|
|
Name: libvma
|
2022-04-07 08:29:23 +00:00
|
|
|
Version: 9.5.2
|
|
|
|
Release: 1%{?dist}
|
2020-08-10 10:18:43 +00:00
|
|
|
Summary: A library for boosting TCP and UDP traffic (over RDMA hardware)
|
|
|
|
|
|
|
|
License: GPLv2 or BSD
|
|
|
|
Url: https://github.com/Mellanox/libvma
|
2020-08-12 14:47:13 +00:00
|
|
|
Source0: https://github.com/Mellanox/libvma/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
# libvma currently supports only the following architectures
|
|
|
|
ExclusiveArch: x86_64 ppc64le ppc64 aarch64
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: rdma-core-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-route-3.0)
|
2021-01-05 03:03:35 +00:00
|
|
|
BuildRequires: make
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%description
|
2020-08-12 14:47:13 +00:00
|
|
|
libvma is a LD_PRELOAD-able library that boosts performance of TCP and
|
|
|
|
UDP traffic. It allows application written over standard socket API to
|
|
|
|
handle fast path data traffic from user space over Ethernet and/or
|
|
|
|
Infiniband with full network stack bypass and get better throughput,
|
2020-08-10 10:18:43 +00:00
|
|
|
latency and packets/sec rate.
|
2020-08-12 14:47:13 +00:00
|
|
|
|
2020-08-10 10:18:43 +00:00
|
|
|
No application binary change is required for that.
|
2020-08-12 14:47:13 +00:00
|
|
|
libvma is supported by RDMA capable devices that support "verbs"
|
|
|
|
IBV_QPT_RAW_PACKET QP for Ethernet and/or IBV_QPT_UD QP for IPoIB.
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%package devel
|
2020-08-12 14:47:13 +00:00
|
|
|
Summary: Header files required to develop with libvma
|
2020-08-10 10:18:43 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2020-08-12 14:47:13 +00:00
|
|
|
This package includes headers for building programs with libvma's
|
|
|
|
interfaces.
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%package utils
|
2020-08-12 14:47:13 +00:00
|
|
|
Summary: Utilities used with libvma
|
2020-08-10 10:18:43 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description utils
|
2020-08-12 14:47:13 +00:00
|
|
|
This package contains the tool for collecting and analyzing libvma statistic.
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2020-08-12 14:47:13 +00:00
|
|
|
%autosetup -p1
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%build
|
2020-08-12 14:47:13 +00:00
|
|
|
export revision=1
|
|
|
|
if [ ! -e configure ] && [ -e autogen.sh ]; then
|
2022-04-07 08:29:23 +00:00
|
|
|
PRJ_RELEASE=1 ./autogen.sh
|
2020-08-12 14:47:13 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%configure %{?configure_options}
|
|
|
|
%{make_build}
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%install
|
2020-08-12 14:47:13 +00:00
|
|
|
%{make_install}
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' -delete
|
|
|
|
install -D -m 644 contrib/scripts/vma.service $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system/vma.service
|
2021-11-09 09:05:25 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/vma
|
2020-08-10 10:18:43 +00:00
|
|
|
|
2020-08-12 14:47:13 +00:00
|
|
|
%post
|
|
|
|
%systemd_post vma.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun vma.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart vma.service
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%files
|
2020-08-12 14:47:13 +00:00
|
|
|
%{_libdir}/%{name}.so*
|
|
|
|
%dir %{_pkgdocdir}
|
2021-06-17 12:10:15 +00:00
|
|
|
%doc %{_pkgdocdir}/README
|
|
|
|
%doc %{_pkgdocdir}/CHANGES
|
2020-08-10 10:18:43 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/libvma.conf
|
2020-08-12 14:47:13 +00:00
|
|
|
%{_sbindir}/vmad
|
|
|
|
%{_prefix}/lib/systemd/system/vma.service
|
2022-04-07 08:29:23 +00:00
|
|
|
%license LICENSE
|
2020-08-12 14:47:13 +00:00
|
|
|
%{_mandir}/man7/vma.*
|
|
|
|
%{_mandir}/man8/vmad.*
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%files devel
|
2020-08-12 14:47:13 +00:00
|
|
|
%dir %{_includedir}/mellanox
|
|
|
|
%{_includedir}/mellanox/vma_extra.h
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%{_bindir}/vma_stats
|
2020-08-12 14:47:13 +00:00
|
|
|
%{_mandir}/man8/vma_stats.*
|
2020-08-10 10:18:43 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-04-07 08:29:23 +00:00
|
|
|
* Thu Apr 7 2022 Igor Ivanov <igori@nvidia.com> 9.5.2-1
|
|
|
|
- Bump version to 9.5.2
|
|
|
|
|
2022-01-31 18:17:29 +00:00
|
|
|
* Mon Jan 31 2022 Fedora Release Engineering <igori@nvidia.com> - 9.4.0-3
|
|
|
|
- Fix gcc12 compilation issue
|
|
|
|
|
2022-01-20 17:36:06 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-09 09:05:25 +00:00
|
|
|
* Tue Nov 09 2021 Honggang Li <honli@redhat.com> - 9.4.0-1
|
|
|
|
- Bump version to 9.4.0
|
|
|
|
|
2021-07-22 12:43:02 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-17 12:10:15 +00:00
|
|
|
* Thu Jun 17 2021 Igor Ivanov <igori@nvidia.com> 9.3.1-1
|
|
|
|
- Bump version to 9.3.1
|
|
|
|
|
2021-03-02 15:13:32 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 9.2.2-3
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-01-26 18:18:05 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-16 08:11:44 +00:00
|
|
|
* Wed Dec 16 2020 Igor Ivanov <igor.ivanov.va@gmail.com> 9.2.2-1
|
|
|
|
- Bump version to 9.2.2
|
|
|
|
- Fix issues for gcc-11
|
|
|
|
|
2020-12-11 00:20:56 +00:00
|
|
|
* Thu Dec 10 2020 Jeff Law <law@redhat.com> 9.1.1-2
|
|
|
|
- Don't use "register" in C++17. Still FTBFS though.
|
|
|
|
|
2020-11-15 17:05:08 +00:00
|
|
|
* Sun Nov 15 2020 Igor Ivanov <igor.ivanov.va@gmail.com> 9.1.1-1
|
|
|
|
- Bump version to 9.1.1
|
|
|
|
|
2020-08-12 14:47:13 +00:00
|
|
|
* Fri Apr 17 2020 Igor Ivanov <igor.ivanov.va@gmail.com> 9.0.2-1
|
|
|
|
- Align with Fedora guidelines
|
|
|
|
- Bump version to 9.0.2
|
|
|
|
|
|
|
|
* Thu Feb 7 2019 Igor Ivanov <igor.ivanov.va@gmail.com> 8.8.2-1
|
|
|
|
- Improve package update processing
|
|
|
|
|
|
|
|
* Tue Dec 19 2017 Igor Ivanov <igor.ivanov.va@gmail.com> 8.5.1-1
|
|
|
|
- Add systemd support
|
|
|
|
|
|
|
|
* Tue May 9 2017 Ophir Munk <ophirmu@mellanox.com> 8.3.4-1
|
|
|
|
- Add libvma-debug.so installation
|
|
|
|
|
|
|
|
* Mon Nov 28 2016 Igor Ivanov <igor.ivanov.va@gmail.com> 8.2.2-1
|
|
|
|
- Add daemon
|
|
|
|
|
|
|
|
* Mon Jan 4 2016 Avner BenHanoch <avnerb@mellanox.com> 7.0.12-1
|
2020-08-10 10:18:43 +00:00
|
|
|
- Initial Packaging
|