Name: mstflint Summary: Firmware Burning and Diagnostics Tools Version: 4.10.0 Release: 13 License: GPLv2+ or BSD Url: https://github.com/Mellanox/mstflint Source: https://github.com/Mellanox/%{name}/releases/download/v4.10.0-1/%{name}-%{version}.tar.gz Patch0000: 0001-Fix-compile-errors.patch Patch0001: fix-return-local-addr.patch Patch0002: mstflint-4.10.0-sw.patch Patch0003: backport-0001-Title-Fix-error-while-burning-mcc-enabled.patch Patch0004: backport-0001-Title-Fix-errors-found-with-checkpatch-script.patch Patch0005: 0005-Allow-building-on-riscv64.patch BuildRequires: libstdc++-devel zlib-devel rdma-core-devel gcc-c++ gcc BuildRequires: libcurl-devel boost-devel libxml2-devel openssl-devel Obsoletes: openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0 %description This package contains a burning tool and diagnostic tools for Mellanox manufactured HCA/NIC cards. It also provides access to the relevant source code. Please see the file LICENSE for licensing details. %package_help %prep %setup %patch0 -p1 %patch1 -p1 %ifarch sw_64 %patch2 -p1 %endif %patch3 -p1 %patch4 -p1 %patch5 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %configure --enable-fw-mgr %make_build %install %make_install strip %{buildroot}/%{_libdir}/mstflint/python_tools/*.so %delete_la_and_a %files %doc README %{_bindir}/* %{_sysconfdir}/mstflint %{_libdir}/mstflint %{_datadir}/mstflint %exclude %{_includedir}/ %files help %{_mandir}/man1/* %changelog * Wed Jun 28 2023 lvxiaoqian - 4.10.0-13 - Add riscv64 patch from v4.17 * Fri Jan 06 2023 chenmaodong - 4.10.0-12 - Fix errors found with checkpatch script * Thu Jan 05 2023 chenmaodong - 4.10.0-11 - Fix error while burning mcc enabled Description * Thu Dec 8 2022 liyanan - 4.10.0-10 - fix strip problem * Tue Nov 29 2022 wuzx - 4.10.0-9 - Add sw64 architecture * Thu Nov 10 2022 liyanan - 4.10.0-8 - Change source * Tue Aug 4 2021 shdluan@163.com - 4.10.0-7 - fix return local addr * Tue Jul 28 2020 lingsheng - 4.10.0-6 - change the libibmad-devel to rdma-core-devel * Tue May 19 2020 lizhenhua - 4.10.0-5 - Fix compile errors for gcc9 * Wed Dec 11 2019 catastrowings - 4.10.0-4 - openEuler init