2014-08-11 10:07:23 +02:00
|
|
|
#
|
|
|
|
# spec file for package mstflint
|
|
|
|
#
|
2018-03-20 12:41:34 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-08-11 10:07:23 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-06-25 08:25:36 +02:00
|
|
|
%define extra_version -3
|
2017-05-10 20:50:21 +02:00
|
|
|
|
2014-08-11 10:07:23 +02:00
|
|
|
Name: mstflint
|
2018-10-25 12:49:12 +02:00
|
|
|
Version: 4.10.0
|
2016-07-18 21:24:12 +02:00
|
|
|
Release: 0
|
2014-08-11 10:07:23 +02:00
|
|
|
Summary: Mellanox Firmware Burning and Diagnostics Tools
|
2018-06-25 08:25:36 +02:00
|
|
|
License: GPL-2.0-only OR BSD-2-Clause
|
2014-08-11 10:07:23 +02:00
|
|
|
Group: System/Console
|
2016-07-18 21:24:12 +02:00
|
|
|
Url: http://www.openfabrics.org
|
2017-05-10 20:50:21 +02:00
|
|
|
Obsoletes: mstflint-devel < %{version}
|
2018-10-25 12:49:12 +02:00
|
|
|
Source: https://github.com/Mellanox/mstflint/releases/download/v%{version}%{extra_version}/mstflint-%{version}%{extra_version}.tar.gz
|
2018-06-25 08:25:36 +02:00
|
|
|
Patch1: Remove-date-time-info-from-build.patch
|
|
|
|
Patch2: Add-s390-s390x-support.patch
|
|
|
|
Patch3: Add-armv6-and-armv7-support.patch
|
|
|
|
Patch4: Fix-gcc7-and-gcc8.patch
|
2018-10-25 12:49:12 +02:00
|
|
|
Patch5: fix-race-condition-during-install.patch
|
2014-08-11 10:07:23 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-06-23 17:51:33 +02:00
|
|
|
BuildRequires: infiniband-diags-devel
|
2018-03-20 12:41:34 +01:00
|
|
|
BuildRequires: libibverbs-devel
|
2014-08-11 10:07:23 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: zlib-devel
|
2016-07-18 21:24:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-08-11 10:07:23 +02:00
|
|
|
|
|
|
|
%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
|
2017-05-10 20:50:21 +02:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2017-05-18 09:14:14 +02:00
|
|
|
%patch4
|
2018-10-25 12:49:12 +02:00
|
|
|
%patch5
|
2014-08-11 10:07:23 +02:00
|
|
|
|
|
|
|
%build
|
2016-07-18 21:24:12 +02:00
|
|
|
./autogen.sh
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -I. -fno-exceptions"
|
2014-08-11 10:07:23 +02:00
|
|
|
|
|
|
|
%install
|
2016-07-18 21:24:12 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
rm -rf %{buildroot}%{_includedir}/mstflint
|
|
|
|
rm -rf %{buildroot}%{_libdir}/mstflint/
|
|
|
|
rm -rf %{buildroot}%{_bindir}/hca_self_test.ofed
|
2014-08-11 10:07:23 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README COPYING LICENSE
|
2016-07-18 21:24:12 +02:00
|
|
|
%{_bindir}/mstconfig
|
2018-10-25 12:49:12 +02:00
|
|
|
%{_bindir}/mstcongestion
|
2016-07-18 21:24:12 +02:00
|
|
|
%{_bindir}/mstflint
|
2017-10-31 16:35:37 +01:00
|
|
|
%{_bindir}/mstfwreset
|
2016-07-18 21:24:12 +02:00
|
|
|
%{_bindir}/mstmcra
|
|
|
|
%{_bindir}/mstmread
|
|
|
|
%{_bindir}/mstmtserver
|
|
|
|
%{_bindir}/mstmwrite
|
|
|
|
%{_bindir}/mstregdump
|
|
|
|
%{_bindir}/mstvpd
|
|
|
|
%{_mandir}/man1/*.1%{ext_man}
|
|
|
|
%{_datadir}/mstflint/
|
2014-08-11 10:07:23 +02:00
|
|
|
|
|
|
|
%changelog
|