2019-02-01 12:14:40 +00:00
|
|
|
%global __remake_config 1
|
|
|
|
|
2012-01-11 18:27:30 +00:00
|
|
|
Name: mstflint
|
|
|
|
Summary: Mellanox firmware burning tool
|
2024-04-26 17:56:19 +00:00
|
|
|
Version: 4.26.0
|
2023-02-02 18:09:59 +00:00
|
|
|
Release: %autorelease
|
2024-02-07 11:37:07 +00:00
|
|
|
# COPYING says the license is your choice of OpenIB.org BSD or GPLv2.
|
|
|
|
# kernel/Makefile has the 3-clause BSD.
|
|
|
|
# ext_libs/{iniParser,json,muparser}/ have MIT.
|
|
|
|
# ext_libs/sqlite/ has the SQLite blessing.
|
|
|
|
License: (GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
|
2022-05-25 08:39:17 +00:00
|
|
|
Url: https://github.com/Mellanox/%{name}
|
|
|
|
Source0: https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{name}-%{version}-1.tar.gz
|
2019-02-12 03:39:07 +00:00
|
|
|
Group: Applications/System
|
2022-05-25 08:39:17 +00:00
|
|
|
|
2024-05-25 01:17:56 +00:00
|
|
|
Patch1: 0001-Fix-bind-now-test.patch
|
2023-10-16 23:02:09 +00:00
|
|
|
Patch4: add-default-link-flags-for-shared-libraries.patch
|
2019-02-12 03:39:07 +00:00
|
|
|
Patch6: replace-mlxfwreset-with-mstfwreset-in-mstflint-message.patch
|
2022-05-25 08:39:17 +00:00
|
|
|
|
|
|
|
BuildRequires: make
|
2018-07-11 02:21:27 +00:00
|
|
|
BuildRequires: libstdc++-devel, zlib-devel, libibmad-devel, gcc-c++, gcc
|
2017-12-15 08:15:50 +00:00
|
|
|
BuildRequires: libcurl-devel, boost-devel, libxml2-devel, openssl-devel
|
2023-06-08 18:24:27 +00:00
|
|
|
BuildRequires: expat-devel
|
2019-02-01 12:14:40 +00:00
|
|
|
%if %{__remake_config}
|
|
|
|
BuildRequires: libtool, autoconf, automake
|
|
|
|
%endif
|
2012-01-11 18:27:30 +00:00
|
|
|
Obsoletes: openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0
|
2017-12-15 08:15:50 +00:00
|
|
|
ExcludeArch: s390 s390x %{arm}
|
2019-02-01 12:14:40 +00:00
|
|
|
Requires: python3
|
2012-01-11 18:27:30 +00:00
|
|
|
|
|
|
|
%description
|
2017-12-15 08:15:50 +00:00
|
|
|
This package contains firmware update tool, vpd dump and register dump tools
|
|
|
|
for network adapters based on Mellanox Technologies chips.
|
2012-01-11 18:27:30 +00:00
|
|
|
|
|
|
|
%prep
|
2022-05-25 08:39:17 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
2024-05-25 01:17:56 +00:00
|
|
|
%patch1 -p1
|
2022-05-25 08:39:17 +00:00
|
|
|
%patch4 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
|
2016-04-12 08:48:41 +00:00
|
|
|
find . -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
|
|
|
|
find . -type f -iname '*.cpp' -exec chmod a-x '{}' ';'
|
2012-01-11 18:27:30 +00:00
|
|
|
|
|
|
|
%build
|
2019-02-01 12:14:40 +00:00
|
|
|
%if %{__remake_config}
|
|
|
|
./autogen.sh
|
|
|
|
%endif
|
2024-05-24 22:33:51 +00:00
|
|
|
%configure --enable-adb-generic-tools --disable-openssl
|
2017-12-15 08:15:50 +00:00
|
|
|
%make_build
|
2012-01-11 18:27:30 +00:00
|
|
|
|
|
|
|
%install
|
2020-07-13 23:03:16 +00:00
|
|
|
%make_install
|
2013-08-09 20:48:53 +00:00
|
|
|
# Remove the devel files that we don't ship
|
|
|
|
rm -fr %{buildroot}%{_includedir}
|
2017-12-15 08:15:50 +00:00
|
|
|
find %{buildroot} -type f -name '*.la' -delete
|
2019-02-01 12:14:40 +00:00
|
|
|
find %{buildroot} -type f -name '*.a' -delete
|
2012-01-11 18:27:30 +00:00
|
|
|
|
2023-02-03 14:56:19 +00:00
|
|
|
# Mark these shared libs executable for find-debuginfo.sh to find them.
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Debuginfo/
|
|
|
|
chmod +x %{buildroot}/%{_libdir}/mstflint/python_tools/*.so
|
2024-04-30 21:14:45 +00:00
|
|
|
chmod +x %{buildroot}/%{_libdir}/mstflint/sdk/*.so
|
2023-02-03 14:56:19 +00:00
|
|
|
|
2012-01-11 18:27:30 +00:00
|
|
|
%files
|
|
|
|
%doc README
|
|
|
|
%_bindir/*
|
2017-12-15 08:15:50 +00:00
|
|
|
%{_libdir}/mstflint
|
2012-01-11 18:27:30 +00:00
|
|
|
|
2017-02-27 09:28:37 +00:00
|
|
|
%{_datadir}/mstflint
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2012-01-11 18:27:30 +00:00
|
|
|
%changelog
|
2023-02-02 18:09:59 +00:00
|
|
|
%autochangelog
|