## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # This is the commit corresponding to the untagged 23.07 release # https://github.com/Mellanox/mlnx-tools/issues/60 %global commit 54a51a79b3f161577e7226c30c3a5c01183fb956 Name: mlnx-tools Version: 23.07 Release: %autorelease Summary: Mellanox userland tools and scripts License: CPL-1.0 OR BSD-2-Clause OR GPL-2.0-only URL: https://github.com/Mellanox/mlnx-tools Source: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz # Add missing license files Patch: %{url}/pull/59.patch BuildRequires: make BuildRequires: sed Requires: ethtool Requires: iproute Requires: pciutils Requires: systemd-udev BuildArch: noarch %description This package provides various Mellanox userland tools and scripts. %prep %autosetup -p1 -n %{name}-%{commit} # Fix Python shebangs sed -i "\|#!/usr/bin/python|d" python/Python/dcbnetlink.py sed -i 's:#!/usr/bin/python:#!/usr/bin/python3:' \ python/mlnx_dump_parser \ python/mlnx_perf \ python/mlnx_qos \ python/mlx_fs_dump \ python/tc_wrap.py sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python3:' \ python/ib2ib_setup \ python/mlnx_tune %build # Nothing to build %install %make_install SBIN_DIR="%{_sbindir}" SBIN_TDIR="%{_sbindir}" %files %license LICENSE.BSD-2-Clause LICENSE.CPL-1.0 LICENSE.GPL-2.0 %doc README.md doc/ib2ib_setup.txt /lib/udev/mlnx_bf_udev %{_bindir}/mlnx_dump_parser %{_bindir}/mlnx_perf %{_bindir}/mlnx_qos %{_bindir}/mlx_fs_dump %{_bindir}/tc_wrap.py %{_sbindir}/cma_roce_mode %{_sbindir}/cma_roce_tos %{_sbindir}/common_irq_affinity.sh %{_sbindir}/compat_gid_gen %{_sbindir}/ib2ib_setup %{_sbindir}/mlnx-sf %{_sbindir}/mlnx_affinity %{_sbindir}/mlnx_bf_configure %{_sbindir}/mlnx_bf_configure_ct %{_sbindir}/mlnx_tune %{_sbindir}/mlnxofedctl %{_sbindir}/set_irq_affinity.sh %{_sbindir}/set_irq_affinity_bynode.sh %{_sbindir}/set_irq_affinity_cpulist.sh %{_sbindir}/show_counters %{_sbindir}/show_gids %{_sbindir}/show_irq_affinity.sh %{_sbindir}/show_irq_affinity_hints.sh %{_sbindir}/sysctl_perf_tuning %{_datadir}/mlnx-tools %{_mandir}/man8/ib2ib_setup.8* %{_mandir}/man8/mlnxofedctl.8* %changelog ## START: Generated by rpmautospec * Thu Jan 25 2024 Fedora Release Engineering - 23.07-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 23.07-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 23.07-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Davide Cavalca - 23.07-1 - Initial import; Fixes: RHBZ#2222041 ## END: Generated by rpmautospec