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