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