import mstflint-4.21.0-1.el8

This commit is contained in:
CentOS Sources 2022-11-08 01:59:56 -05:00 committed by Stepan Oksanichenko
parent f7796b3c11
commit a418793c2d
3 changed files with 21 additions and 19 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/mstflint-2b022989e5f22875284f3fbaccf67361ef5a848d.tar.gz
SOURCES/mstflint-4.21.0-1.tar.gz

View File

@ -1 +1 @@
e5b86610383d89d294092a0edab42808e1945e20 SOURCES/mstflint-2b022989e5f22875284f3fbaccf67361ef5a848d.tar.gz
08367f20899423d62313867e4fb40653df2e139c SOURCES/mstflint-4.21.0-1.tar.gz

View File

@ -1,21 +1,18 @@
%global __remake_config 1
%global forgeurl https://github.com/Mellanox/mstflint
%global commit 2b022989e5f22875284f3fbaccf67361ef5a848d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%forgemeta
Name: mstflint
Summary: Mellanox firmware burning tool
Version: 4.19.0
Release: 0.3%{?dist}
Version: 4.21.0
Release: 1%{?dist}
License: GPLv2+ or BSD
Url: https://github.com/Mellanox/%{name}
Source0: https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{name}-%{version}-1.tar.gz
Group: Applications/System
Source: %{forgesource}
Patch4: add-default-link-flags-for-shared-libraries.patch
Patch4: add-default-link-flags-for-shared-libraries.patch
Patch6: replace-mlxfwreset-with-mstfwreset-in-mstflint-message.patch
Url: %{forgeurl}
BuildRequires: make
BuildRequires: make
BuildRequires: libstdc++-devel, zlib-devel, libibmad-devel, gcc-c++, gcc
BuildRequires: libcurl-devel, boost-devel, libxml2-devel, openssl-devel
%if %{__remake_config}
@ -30,17 +27,19 @@ This package contains firmware update tool, vpd dump and register dump tools
for network adapters based on Mellanox Technologies chips.
%prep
%forgeautosetup -p1
%setup -q -n %{name}-%{version}
%patch4 -p1
%patch6 -p1
find . -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
find . -type f -iname '*.cpp' -exec chmod a-x '{}' ';'
%build
%if %{__remake_config}
# gitversion.sh called from autogen.sh will fail. Just do its work here:
printf '#define TOOLS_GIT_SHA "%s"\n' %{shortcommit} > common/gitversion.h
./autogen.sh
%endif
%configure TOOLS_GIT_SHA=%{shortcommit} --enable-fw-mgr
%configure --enable-fw-mgr
%make_build
%install
@ -60,10 +59,13 @@ find %{buildroot} -type f -name '*.a' -delete
%{_mandir}/man1/*
%changelog
* Wed Aug 17 2022 Michal Schmidt <mschmidt@redhat.com> - 4.21.0-1
- Update to upstream release 4.21.0
- Resolves: rhbz#2049525
* Mon Mar 28 2022 Michal Schmidt <mschmidt@redhat.com> - 4.19.0-0.3
- Rebase to the almost released 4.19.0
- O-Resolves: rhbz#2045017
- Resolves: rhbz#2068077
- Resolves: rhbz#2045017
* Sun Dec 05 2021 Honggang Li <honli@redhat.com> - 4.18.0-1
- Rebase mstflint to latest upstream release v4.18.0-1