095ac7
%global __remake_config 1
095ac7
095ac7
Name:		mstflint
095ac7
Summary:	Mellanox firmware burning tool
469577
Version:	4.21.0
cc7335
Release:	1%{?dist}
095ac7
License:	GPLv2+ or BSD
469577
Url:		https://github.com/Mellanox/%{name}
469577
Source0: 	https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{name}-%{version}-1.tar.gz
095ac7
Group:		Applications/System
469577
469577
Patch4:	add-default-link-flags-for-shared-libraries.patch
095ac7
Patch6: 	replace-mlxfwreset-with-mstfwreset-in-mstflint-message.patch
469577
469577
BuildRequires:	make
095ac7
BuildRequires:	libstdc++-devel, zlib-devel, libibmad-devel, gcc-c++, gcc
095ac7
BuildRequires:  libcurl-devel, boost-devel, libxml2-devel, openssl-devel
095ac7
%if %{__remake_config}
095ac7
BuildRequires:  libtool, autoconf, automake
095ac7
%endif
095ac7
Obsoletes:	openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0
095ac7
ExcludeArch:	s390 s390x %{arm}
095ac7
Requires:	python3
095ac7
095ac7
%description
095ac7
This package contains firmware update tool, vpd dump and register dump tools
095ac7
for network adapters based on Mellanox Technologies chips.
095ac7
095ac7
%prep
469577
%setup -q -n %{name}-%{version}
469577
095ac7
%patch4 -p1
095ac7
%patch6 -p1
469577
095ac7
find . -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
095ac7
find . -type f -iname '*.cpp' -exec chmod a-x '{}' ';'
095ac7
095ac7
%build
095ac7
%if %{__remake_config}
095ac7
./autogen.sh
095ac7
%endif
095ac7
%configure --enable-fw-mgr
095ac7
%make_build
095ac7
095ac7
%install
095ac7
%make_install
095ac7
# Remove the devel files that we don't ship
095ac7
rm -fr %{buildroot}%{_includedir}
095ac7
find %{buildroot} -type f -name '*.la' -delete
095ac7
find %{buildroot} -type f -name '*.a' -delete
095ac7
095ac7
%files
095ac7
%doc README
095ac7
%_bindir/*
095ac7
%{_sysconfdir}/mstflint
095ac7
%{_libdir}/mstflint
095ac7
095ac7
%{_datadir}/mstflint
095ac7
%{_mandir}/man1/*
095ac7
095ac7
%changelog
469577
* Wed Aug 03 2022 Michal Schmidt <mschmidt@redhat.com> - 4.21.0-1
469577
- Update to upstream release 4.21.0
469577
cc7335
* Sun Dec 05 2021 Honggang Li <honli@redhat.com> - 4.18.0-1
cc7335
- Rebase mstflint to latest upstream release v4.18.0-1
cc7335
- Resolves: rhbz#2029269
cc7335
095ac7
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.17.0-2
095ac7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
095ac7
  Related: rhbz#1991688
095ac7
095ac7
* Thu Jul 01 2021 Honggang Li <honli@redhat.com> - 4.17.0-1
095ac7
- Rebase mstflint to latest upstream release v4.17.0-1
095ac7
- Resolves: rhbz#1858570
095ac7
095ac7
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.16.0-3
095ac7
- Rebuilt for RHEL 9 BETA for openssl 3.0
095ac7
  Related: rhbz#1971065
095ac7
095ac7
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.16.0-2
095ac7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
095ac7
095ac7
* Sun Jan 31 2021 Honggang Li <honli@redhat.com> - 4.16.0-1
095ac7
- Rebase mstflint to latest upstream release v4.16.0-1
095ac7
095ac7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.0-2
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
095ac7
095ac7
* Wed Sep 16 2020 Honggang Li <honli@redhat.com> - 4.15.0-1
095ac7
- Rebase mstflint to latest upstream release v4.15.0-1
095ac7
095ac7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.0-5
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
095ac7
095ac7
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 4.14.0-4
095ac7
- Use make macros
095ac7
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
095ac7
095ac7
* Mon Jun 22 2020 Honggang Li <honli@redhat.com> - 4.14.0-3
095ac7
- Rebase mstflint to latest upstream release v4.14.0-3
095ac7
095ac7
* Sat May 30 2020 Jonathan Wakely <jwakely@redhat.com> - 4.14.0-2
095ac7
- Rebuilt for Boost 1.73
095ac7
095ac7
* Tue Mar 31 2020 Honggang Li <honli@redhat.com> - 4.14.0-1
095ac7
- Rebase mstflint to latest upstream release v4.14.0-1
095ac7
095ac7
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.13.3-3
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
095ac7
095ac7
* Tue Jan 07 2020 Honggang Li <honli@redhat.com> - 4.13.3-2
095ac7
- Rebase mstflint to latest upstream release v4.13.3-2
095ac7
095ac7
* Sun Jan 05 2020 Honggang Li <honli@redhat.com> - 4.13.3-1
095ac7
- Rebase mstflint to latest upstream release v4.13.3-1
095ac7
095ac7
* Thu Oct 17 2019 Honggang Li <honli@redhat.com> - 4.13.1-1
095ac7
- Rebase mstflint to latest upstream release v4.13.1-1
095ac7
095ac7
* Wed Oct 02 2019 Honggang Li <honli@redhat.com> - 4.13.0-1
095ac7
- Rebase mstflint to latest upstream release v4.13.0-1
095ac7
- Resolves: bz1758011
095ac7
095ac7
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.11.0-6
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
095ac7
095ac7
* Mon Apr 15 2019 Honggang Li <honli@redhat.com> - 4.11.0-5
095ac7
- Rebase mstflint to latest upstream release v4.11.0-4
095ac7
095ac7
* Fri Feb 22 2019 Honggang Li <honli@redhat.com> - 4.11.0-4
095ac7
- Fix mstflint segment fault issue for ConnectX-5 HCA
095ac7
- Resolves: 1679844
095ac7
095ac7
* Tue Feb 12 2019 Honggang Li <honli@redhat.com> - 4.11.0-3
095ac7
- Rebase mstflint to latest upstream release v4.11.0-3
095ac7
- Resolves: 1676338
095ac7
095ac7
* Fri Feb  1 2019 Honggang Li <honli@redhat.com> - 4.11.0-2
095ac7
- Rebase mstflint to latest upstream release v4.11.0-2
095ac7
- Resolves: bz1671710
095ac7
095ac7
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.0-4
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
095ac7
095ac7
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 4.10.0-3
095ac7
- Rebuilt for Boost 1.69
095ac7
095ac7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.0-2
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
095ac7
095ac7
* Tue Jul 10 2018 Honggang Li <honli@redhat.com> - 4.10.0-1
095ac7
- Rebase to latest upstream release v4.10.0-1
095ac7
- Resolves: bz1550400
095ac7
095ac7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-5
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
095ac7
095ac7
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 4.8.0-4
095ac7
- Rebuilt for Boost 1.66
095ac7
095ac7
* Fri Dec 15 2017 Honggang Li <honli@redhat.com> - 4.8.0-3
095ac7
- Rebase mstflint to latest upstream release v4.8.0-2
095ac7
- Resolves: bz1526293
095ac7
095ac7
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-4
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
095ac7
095ac7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
095ac7
095ac7
* Mon Feb 27 2017 Honggang Li <honli@redhat.com> - 4.6.0-2
095ac7
- Add man pages.
095ac7
- Resolves: bz1427063
095ac7
095ac7
* Wed Feb 22 2017 Honggang Li <honli@redhat.com> - 4.6.0-1
095ac7
- Rebase to latest upstream release 4.6.0.
095ac7
- Update mstflint package from github.
095ac7
- Resolves: bz1423970
095ac7
095ac7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2.12.gd1edd58.1
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
095ac7
095ac7
* Wed Aug 24 2016 Honggang Li <honli@redhat.com> - 4.4.0-1.12.gd1edd58.1
095ac7
- Rebase to latest upstream release 4.4.0-1.12.gd1edd58 (bz1369683).
095ac7
095ac7
* Fri Apr  8 2016 Honggang Li <honli@redhat.com> - 4.3.0-1.49.g9b9af70.1
095ac7
- Rebase to latest upstream version 4.3.0-1.49.g9b9af70.
095ac7
095ac7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-0.47.gb1cdaf7.1
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
095ac7
095ac7
* Wed Dec 02 2015 Doug Ledford <dledford@redhat.com> - 4.1.0-0.46.gb1cdaf7.1
095ac7
- Update to latest upstream sources (enables ConnectX-4 support)
095ac7
- Drop patch that no longer applies
095ac7
095ac7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.11.g6961daa.1
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
095ac7
095ac7
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0-0.10.g6961daa.1
095ac7
- Rebuilt for GCC 5 C++11 ABI change
095ac7
095ac7
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.9.g6961daa.1
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
095ac7
095ac7
* Fri Jun 20 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.0-0.8.g6961daa.1
095ac7
- Fix FTBFS with -Werror=format-security (#1037207, #1106248)
095ac7
- ExcludeArch: %%arm aarch64
095ac7
- Cleanup spec
095ac7
095ac7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.7.g6961daa.1
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
095ac7
095ac7
* Fri Aug 16 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.6.g6961daa.1
095ac7
- Update to latest upstream version, which resovles some licensing issues
095ac7
  on some of the source files
095ac7
095ac7
* Fri Aug 09 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.5.gff93670.1
095ac7
- Update to latest upstream version, which include ConnectIB support
095ac7
095ac7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
095ac7
095ac7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
095ac7
095ac7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
095ac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
095ac7
095ac7
* Fri Jan 13 2012 Doug Ledford <dledford@redhat.com> - 1.4-7
095ac7
- The upstream tarball as provided is broken.  Clean up the tarball so
095ac7
  the package builds properly
095ac7
095ac7
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.4-6
095ac7
- Initial import into Fedora
095ac7
095ac7
* Wed Oct 26 2011 Doug Ledford <dledford@redhat.com> - 1.4-5.el6
095ac7
- Update to a version that will support the latest Mellanox CX3 hardware
095ac7
- Resolves: bz748244
095ac7
095ac7
* Mon Aug 08 2011 Doug Ledford <dledford@redhat.com> - 1.4-4.el6
095ac7
- Fix a bug in mmio space unmapping
095ac7
- Resolves: bz729061
095ac7
- Related: bz725016
095ac7
095ac7
* Fri Feb 19 2010 Doug Ledford <dledford@redhat.com> - 1.4-3.el6
095ac7
- Don't include mtcr.h as we don't really expect anything to need Mellanox
095ac7
  card register definitions except this program, and we already have the
095ac7
  file.
095ac7
- Change to ExcludeArch instead of ExclusiveArch so we build in all the right
095ac7
  places.
095ac7
- Related: bz543948
095ac7
095ac7
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.4-2.el6
095ac7
- Update to tarball from URL instead of from OFED
095ac7
- Minor tweaks for pkgwrangler import
095ac7
- Related: bz543948
095ac7
095ac7
* Sat Apr 18 2009 Doug Ledford <dledford@redhat.com> - 1.4-1.el5
095ac7
- Update to ofed 1.4.1-rc3 version
095ac7
- Related: bz459652
095ac7
095ac7
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.3-1
095ac7
- Update to OFED 1.3 final bits
095ac7
- Related: bz428197
095ac7
095ac7
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.2-2
095ac7
- Obsolete the old openib-mstflint package
095ac7
095ac7
* Fri Jan 25 2008 Doug Ledford <dledford@redhat.com> - 1.2-1
095ac7
- Initial import into CVS
095ac7
- Related: bz428197
095ac7
095ac7
* Thu Jul 19 2007 - Vladimir Sokolovsky vlad@mellanox.co.il
095ac7
- Initial Package, Version 1.2