mstflint/mstflint.spec
Nicolas Morey-Chaisemartin eef9eba103 Accepting request 728694 from home:NMoreyChaisemartin:branches:science:HPC
- Update to v4.11.0-5 (bsc#1136328)
  - Build related changes
    - Disabled -Werror compiler flag
    - Added the option to choose local system libraries if available in the machine
    - Enhanced python 3 compatibility
    - Removed python shebangs from the scripts
    - Fixed multiple rpmbuild issues
    - Added --enable-all-static configure flag that allows compilation of static executables, when the the option is supported by the compiler
    - All python scripts were aligned to unix encoding
    - Fixed multiple builds and compilation issues
  - mstprivhost tool
    - Added mstprivhost tool to set host privilege configurations
  - mstflint tool
    - Added missing Rom info attribute for legacy FW qq query
    - Fixed query timeout when device is locked
    - Renamed former --next_boot_fw_ver to --flashed_version flag. This flag queries the flashed version.
    - Note that the previous flag is supported to keep compatibility.
    - Fixed an issue with FW upgrade on ConnectX-5 EN
  - mstregdup tool
    - Fixed segfault
  - mstconfig
    - Added new params:
  - mstfwtrace
    - Added fwtracer: in this release, this tool supports secure FW flow only
  - libibmad
    - Added support for libibmad 12 in addition to 5
  - Python tools
    - Fixed Python wrapper to work properly in multiple OSes and multiple Python versions
  - Added adb generic tools
    - Added mstreg tool: To enable this option please use "--enable-adb-genaric-tools" flag

OBS-URL: https://build.opensuse.org/request/show/728694
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mstflint?expand=0&rev=35
2019-09-06 07:06:57 +00:00

88 lines
2.6 KiB
RPMSpec

#
# spec file for package mstflint
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define extra_version -5
Name: mstflint
Version: 4.11.0
Release: 0
Summary: Mellanox Firmware Burning and Diagnostics Tools
License: GPL-2.0-only OR BSD-2-Clause
Group: System/Console
Url: http://www.openfabrics.org
Obsoletes: mstflint-devel < %{version}
Source: https://github.com/Mellanox/mstflint/releases/download/v%{version}%{extra_version}/mstflint-%{version}%{extra_version}.tar.gz
Patch1: Remove-date-time-info-from-build.patch
Patch4: Fix-gcc7-and-gcc8.patch
Patch5: fix-race-condition-during-install.patch
BuildRequires: gcc-c++
BuildRequires: infiniband-diags-devel
BuildRequires: libibverbs-devel
BuildRequires: libopenssl-devel
BuildRequires: libtool
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
This package is based on a subset of the Mellanox Firmware Tools (MFT)
package. For a full documentation of the MFT package, please refer to
the downloads page at the Mellanox web site.
%prep
%setup -q
%patch1
%patch4
%patch5
%build
./autogen.sh
%configure
make %{?_smp_mflags} CFLAGS="%{optflags} -I. -fno-exceptions"
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_includedir}/mstflint
rm -rf %{buildroot}%{_libdir}/mstflint/*.a
rm -rf %{buildroot}%{_bindir}/hca_self_test.ofed
%files
%defattr(-, root, root)
%doc README
%license LICENSE COPYING
%{_bindir}/mstconfig
%{_bindir}/mstcongestion
%{_bindir}/mstflint
%{_bindir}/mstfwreset
%{_bindir}/mstmcra
%{_bindir}/mstmread
%{_bindir}/mstmtserver
%{_bindir}/mstmwrite
%{_bindir}/mstprivhost
%{_bindir}/mstregdump
%{_bindir}/mstvpd
%{_bindir}/mstfwtrace
%{_mandir}/man1/*.1%{ext_man}
%{_libdir}/mstflint/
%{_datadir}/mstflint/
%changelog