mstflint/mstflint.spec
Nicolas Morey-Chaisemartin eca05beeb4 Accepting request 589145 from home:NMoreyChaisemartin:branches:science:HPC
- Update to v4.9.0-1
  * mstfwreset
    * Added support for a hot swap (or hot plug) of the PCIe slot.
  * Secure Firmware Update
    * Added support for Secure Firmware Update to ConnectX-4 adapter cards.
    * Enabled signing the package with an RSA 4096 bit keys.
    * Added support for setting the GUIDs when Secure Firmware Update is enabled.
  * mstconfig
    * Added the following mstconfig configuration parameters:
      * AUTO_RELOAD
      * DRIVER_SETTINGS
      * EXP_ROM_PXE_ENABLE
      * EXP_ROM_UEFI_ARM_ENABLE
      * EXP_ROM_UEFI_X86_ENABLE
      * INTERNAL_CPU_MODEL
      * IPV4
      * IPV6
      * PCI_DATA_WR_ORDERING_MODE
      * PXE_UNDI
      * STATUS_UPDATE
      * TCP
      * TCPIP
      * TRACER_ENABLE
  * mstflint
    * Added support for FreeBSD with BSD license.
  * Secure Boot
    * Added support for secure boot to ConnectX-3 adapter cards.

OBS-URL: https://build.opensuse.org/request/show/589145
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mstflint?expand=0&rev=20
2018-03-20 11:41:34 +00:00

95 lines
3.1 KiB
RPMSpec

#
# spec file for package mstflint
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#
%define extra_version -2
Name: mstflint
Version: 4.9.0
Release: 0
Summary: Mellanox Firmware Burning and Diagnostics Tools
License: GPL-2.0 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}-1/mstflint-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Build libmtcr as shared library
Source1: mstfint-mtcr_ul_no_static_lib.patch
# PATCH-FIX-UPSTREAM Add all needed defines to get it built on s390x
Patch1: mstflint-s390_arch.patch
# PATCH-FIX-UPSTREAM implicit declaration of mset_cr_access
Patch2: mstflint-4.4.0-implicit-declaration.patch
# PATCH-FIX-UPSTREAM no __DATE__ and __TIME__ in codes
Patch3: mstflint-4.4.0-no-date-time.patch
# PATCH-FIX-UPSTREAM Add all needed defines to get it built on armv7
Patch4: mstflint-armv7_arch.patch
# PATCH-FIX-UPSTREAM Ignore fallthrough for GCC7 support
Patch5: mstflint-gcc7.patch
BuildRequires: gcc-c++
BuildRequires: infiniband-diags-devel
BuildRequires: libibverbs-devel
BuildRequires: libtool
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#%%define DT_FLAGS %%{?__commit_date:-D__DATE__=%%__commit_date}' '%%{?__commit_time:-D__TIME__=%%__commit_time}'
%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
%patch2
%patch3
%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/
rm -rf %{buildroot}%{_bindir}/hca_self_test.ofed
%files
%defattr(-, root, root)
%doc README COPYING LICENSE
%{_bindir}/mstconfig
%{_bindir}/mstflint
%{_bindir}/mstfwreset
%{_bindir}/mstmcra
%{_bindir}/mstmread
%{_bindir}/mstmtserver
%{_bindir}/mstmwrite
%{_bindir}/mstregdump
%{_bindir}/mstvpd
%{_mandir}/man1/*.1%{ext_man}
%{_datadir}/mstflint/
%changelog