+++ /dev/null
---- mstflint-4.4.0/common/compatibility.h.orig 2016-05-24 14:52:16.000000000 +0200
-+++ mstflint-4.4.0/common/compatibility.h 2016-06-26 13:10:41.042393009 +0200
-@@ -40,7 +40,7 @@
-
- #include <stdio.h>
-
--#if defined(__ia64__) || defined(__x86_64__) || defined(__PPC64__)
-+#if (defined(__ia64__) || defined(__x86_64__) || defined(__PPC64__)) && !defined(__ILP32__)
- #define U64L "l"
- #else
- #define U64L "ll"
-@@ -92,8 +92,8 @@
- #define U16H_FMT "0x%04x"
- #define U8H_FMT "0x%02x"
-
--#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD)
--# if defined(__MINGW32__) || defined(__MINGW64__)
-+#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD) || defined(__ILP32__)
-+# if defined(__MINGW32__) || defined(__MINGW64__) /* || defined(__GNUC__) */
- # include <inttypes.h>
- # define U64D_FMT "0x%"PRId64
- # define U64H_FMT "0x%"PRIx64
---- mstflint-4.4.0/mtcr_ul/packets_common.h.orig 2016-05-24 14:52:19.000000000 +0200
-+++ mstflint-4.4.0/mtcr_ul/packets_common.h 2016-06-26 13:26:41.285456968 +0200
-@@ -162,7 +162,7 @@
- /* define macros for print fields */
- //#if defined (ARCH_ia64) || defined(ARCH_x86_64) || defined(ARCH_ppc64) || defined(__MINGW64__)
- /*
--#if !defined(UEFI_BUILD) && (defined (ARCH_ia64) || defined(ARCH_x86_64) || defined(ARCH_ppc64) || defined(__MINGW64__))
-+#if !defined(UEFI_BUILD) && !defined(__ILP32__) && (defined (ARCH_ia64) || defined(ARCH_x86_64) || defined(ARCH_ppc64) || defined(__MINGW64__))
- # define U64H_FMT "0x%016lx"
- # define U64D_FMT "%lu"
- # define U32H_FMT "0x%08x"
-@@ -170,7 +170,7 @@
- # define U8H_FMT "0x%02x"
- # define U32D_FMT "%u"
- # define STR_FMT "%s"
--#elif defined(ARCH_x86) || defined(ARCH_ppc) || defined(__MINGW32__) || defined(UEFI_BUILD)
-+#elif defined(ARCH_x86) || defined(ARCH_ppc) || defined(__MINGW32__) || defined(UEFI_BUILD) || defined(__ILP32__)
- # define U64H_FMT "0x%016llx"
- # define U64D_FMT "%llu"
- # define U32H_FMT "0x%08x"
---- mstflint-4.4.0/tools_layouts/adb_to_c_utils.h.orig 2016-06-26 13:28:56.112446417 +0200
-+++ mstflint-4.4.0/tools_layouts/adb_to_c_utils.h 2016-06-26 13:28:59.142603500 +0200
-@@ -169,7 +169,7 @@
- #define U16H_FMT "0x%04x"
- #define U8H_FMT "0x%02x"
-
--#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD)
-+#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD) || defined(__ILP32__)
- # if defined(__MINGW32__) || defined(__MINGW64__)
- # include <inttypes.h>
- # define U64D_FMT "0x%"PRId64
Summary: Firmware burning and diagnostic tools for Mellanox HCA/NIC cards
Summary(pl.UTF-8): Narzędzia modyfikujące firmware i diagnostyczne dla kart HCA/NIC Mellanox
Name: mstflint
-Version: 4.4.0
-Release: 3
+Version: 4.10.0
+%define upstream_ver %{version}-3
+Release: 1
License: BSD or GPL v2
Group: Networking/Utilities
-Source0: http://www.openfabrics.org/downloads/mstflint/%{name}-%{version}.tar.gz
-# Source0-md5: 8846152be0581c76396e60e94e953c59
-Patch0: %{name}-types.patch
-URL: http://www.openfabrics.org/
+Source0: https://github.com/Mellanox/mstflint/releases/download/v%{upstream_ver}/%{name}-%{upstream_ver}.tar.gz
+# Source0-md5: 0fd75b78de3fc46d2cf951eead225a5b
+Patch0: openssl-1.1.patch
+URL: https://github.com/Mellanox/mstflint
BuildRequires: libibmad-devel
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel
%build
%configure \
- --enable-cs
+ --enable-cs \
+ --enable-fw-mgr \
+ --enable-xml2 \
+ --enable-openssl
%{__make}
%install
%files
%defattr(644,root,root,755)
%doc LICENSE README
-%attr(755,root,root) %{_bindir}/hca_self_test.ofed
+%{_sysconfdir}/mstflint/ca-bundle.crt
%attr(755,root,root) %{_bindir}/mstconfig
%attr(755,root,root) %{_bindir}/mstflint
%attr(755,root,root) %{_bindir}/mstmcra
%attr(755,root,root) %{_bindir}/mstmwrite
%attr(755,root,root) %{_bindir}/mstregdump
%attr(755,root,root) %{_bindir}/mstvpd
+%attr(755,root,root) %{_bindir}/mstcongestion
+%attr(755,root,root) %{_bindir}/mstfwmanager
+%attr(755,root,root) %{_bindir}/mstfwreset
+%dir %{_libdir}/mstflint
+%dir %{_libdir}/mstflint/python_tools
+%attr(755,root,root) %{_libdir}/mstflint/python_tools/c_dev_mgt.so
+%attr(755,root,root) %{_libdir}/mstflint/python_tools/ccmdif.so
+%{_libdir}/mstflint/python_tools/cmdif.py
+%attr(755,root,root) %{_libdir}/mstflint/python_tools/cmtcr.so
+%{_libdir}/mstflint/python_tools/dev_mgt.py
+%dir %{_libdir}/mstflint/python_tools/mstfwreset
+%dir %{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/__init__.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/logger.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/mcra.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlnx_peripheral_components.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlxfwreset_mlnxdriver.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlxfwreset_status_checker.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlxfwreset_utils.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mlxfwresetlib/pci_device.py
+%{_libdir}/mstflint/python_tools/mstfwreset/mstfwreset.py
+%{_libdir}/mstflint/python_tools/mtcr.py
+%{_libdir}/mstflint/python_tools/regaccess.py
+%attr(755,root,root) %{_libdir}/mstflint/python_tools/rreg_access.so
+%{_libdir}/mstflint/python_tools/tools_version.py
%{_datadir}/mstflint
%{_mandir}/man1/mstconfig.1*
%{_mandir}/man1/mstflint.1*
%files devel
%defattr(644,root,root,755)
-%dir %{_libdir}/mstflint
%{_libdir}/mstflint/libmtcr_ul.a
%{_includedir}/mstflint